Skip to content

Instantly share code, notes, and snippets.

@rummanwaqar
Last active May 19, 2017 12:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rummanwaqar/52b2965e0cce6d614ebfe283114cb9c1 to your computer and use it in GitHub Desktop.
Save rummanwaqar/52b2965e0cce6d614ebfe283114cb9c1 to your computer and use it in GitHub Desktop.
Wifi
### 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