wifi-qr attempts to simplify the process of sharing passwords with mobiles by generating a wifi qr code where mobile uses can scan to connect to the wifi network.
wifi-qr depends on qrencode
Currently this script only supports macOS and linux (with Network Manager).
Inspired by wifi-password
With Homebrew:
$ brew install qrencode
With apt for Ubuntu 18.04 (might work with other Linux distributions too)
$ sudo apt install qrencode
With curl
:
$ curl -L https://raw.github.com/aranw/wifi-qr/master/wifi-qr.sh -o ~/bin/wifi-qr && chmod +x ~/bin/wifi-qr
If you don't have ~/bin
in your $PATH
, replace it with /usr/local/bin
or
similar.
To get the password for the WiFi you're currently logged onto:
$ wifi-qr
To get it for a specific SSID:
$ wifi-qr <ssid>
MIT