Last active
February 15, 2016 06:33
-
-
Save pachacamac/77680620d38c0c1fe1f8 to your computer and use it in GitHub Desktop.
Workaround for the Ubuntu (NetworkManager?) problem of not being able to connect to a new WiFi network. Or maybe you just prefer to do things conveniently from the CLI.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
echo "WiFi Networks in range:" | |
nmcli device wifi list | |
echo "-----------------------" | |
echo -n "To which SSID do you want to connect? " | |
read ssid | |
echo -n "What is the password for '$ssid'? " | |
read pass | |
sudo nmcli dev wifi con "$ssid" password "$pass" name "$ssid" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment