Last active
May 19, 2017 12:21
-
-
Save rummanwaqar/52b2965e0cce6d614ebfe283114cb9c1 to your computer and use it in GitHub Desktop.
Wifi
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
### METHOD 1 | |
# install wpa tools | |
sudo apt install wpasupplicant | |
# get essid of network | |
sudo iwlist scan | |
# create wpa configuration file | |
wpa_passphase ESSID > wpa.conf # type password | |
# connect -D can also be wext | |
sudo wpa_supplicant -Dnl80211 -iwlan0 -cwpa.conf -B | |
sudo dhclient -r | |
sudo dhclient wlan0 | |
### METHOD 2 | |
# list network devices | |
nmcli dev | |
# list wifi connections | |
nmcli dev wifi list | |
# connect | |
nmcli dev wifi connect <YOUR_SSID_HERE> password <YOUR_KEY_HERE> | |
### METHOD 3 | |
sudo nmtui |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment