Score:1

How can I scan a QR code to connect to a Wi-Fi network on Ubuntu?

bd flag

On various devices, both smartphones and computers, it is possible to generate a QR code for a Wi-Fi network. You can connect to that Wi-Fi network by scanning the QR code.

Ubuntu 23.04 has this functionality. You can open the Settings app, and navigate to the "Wi-Fi" section, then click the QR code button next to a Wi-Fi network.

Screenshot (image from OMGLinux)

How can I connect to a Wi-Fi network on my Ubuntu computer by scanning a QR code? I can't find the "scan QR code" button.

Score:2
gt flag

Use wifi-qr command

wifi-qr option
    
           g    GUI Main Menu
    
           c    WiFi QR Create GUI
    
           t    WiFi QR Create Terminal
    
           s    QR Scan and Auto Connect WiFi
    
           q    QR Scan and Connect WiFi GUI
    
           v    WiFi-QR Version is 0.1.1

There is a project in github, that contain a script to easily accomplish this task. The project is called wifi-qr by kokoye2007. It can be cloned here.

To use the script, we need to clone the project from github.

$ git clone https://github.com/kokoye2007/wifi-qr

Once cloned, go into the project directory.

$ cd wifi-qr

To scan a QR code, and connect to the wifi information contained in the code

$ ./wifi-qr s

A camera interface will be displayed. Show our wifi QR code to the computer's webcam, and the script will read the QR code and automatically connect to the wifi using the information in the QR code. Connect to a wifi by scanning a QR code in Linux WiFi Share and Connect with QR

bd flag
I can install `wifi-qr` by running `sudo apt install wifi-qr` . Is there a reason to download it from GitHub instead?
Talaat Etman avatar
gt flag
@Flimm just i trying to add more ways and sources
Keith Bennett avatar
th flag
I suggest changing the answer to use apt install. I tried cloning the repo and got this error: "./wifi-qr: line 205: zbarcam: command not found". apt install installs this and other dependencies: The following additional packages will be installed: qrencode zbar-tools Suggested packages: zbarcam-gtk zbarcam-qt The following NEW packages will be installed: qrencode wifi-qr zbar-tools
nz flag
This answer should include the apt install command, and also mention that the gui does everything you want.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.