Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #WPA WIFI Networking for Linux from the shell
- #Manually
- sudo ip link set wlan0 up
- #check if it's up
- ip link show wlan0
- #check if connected
- iw wlan0 link
- #scan networks
- sudo /sbin/iw wlan0 scan
- sudo /sbin/iw wlan0 scan|grep ESSID
- #create key and config
- wpa_passphrase <ESSID> >> /etc/wpa_supplicant.conf
- cat /etc/wpa_supplicant.conf
- #connect
- sudo wpa_supplicant -B -D wext -i wlan0 -c /etc/wpa_supplicant.conf
- #check connection
- iw wlan0 link
- #get ip settings
- sudo dhclient wlan0
- #check if connected
- ip addr show wlan0
- ping 8.8.8.8
- ping google.com
Add Comment
Please, Sign In to add comment