How to generate QR Code for Wifi network from Linux Terminal

To create a QR code for a WiFi SSID on Linux terminal, you can use the qrencode tool. Here are the steps to follow:

  1. Install qrencode using the command sudo apt install qrencode.
  2. Prepare the WiFi information using the following format: WIFI:S:{SSID name of your network};T:{security type - WPA or WEP};P:{the network password};;. For example, if your WiFi SSID is “mysecurewifi”, it is using WPA, and the password is “mysecurewifipassword”, the format would be WIFI:S:mysecurewifi;T:WPA;P:mysecurewifipassword;;.
  3. Generate the QR code image file using the command qrencode -o mywifi.png 'WIFI:S:mysecurewifi;T:WPA;P:mysecurewifipassword;;'. If the generated image is too small, you can increase the size of the dot pixel using the -s option, for example: qrencode -o mywifi.png -s 10 'WIFI:S:mysecurewifi;T:WPA;P:mysecurewifipassword;;'.

You can then share the file with anyone or print it for people who would like to use your WiFi[2].

Citations: [1] https://unix.stackexchange.com/questions/628789/generate-a-qr-code-to-log-into-wireless-wifi-with-wpa-encryption [2] https://www.linuxwave.info/2021/10/create-qr-code-for-wifi-in-linux.html?m=1 [3] https://thelinuxexperiment.com/share-your-wifi-info-via-qr-code/comment-page-1/ [4] https://www.thierolf.org/blog/2020/creating-qr-code-for-wireless-networks/ [5] https://www.adamsdesk.com/posts/share-wifi-using-a-qr-code/ [6] https://github.com/kokoye2007/wifi-qr