Skip to content

Instantly share code, notes, and snippets.

@daltonnyx
Created May 11, 2017 14:54
Show Gist options
  • Save daltonnyx/a036d4b84aa7342b2236d334396dcb2c to your computer and use it in GitHub Desktop.
Save daltonnyx/a036d4b84aa7342b2236d334396dcb2c to your computer and use it in GitHub Desktop.
#Use iw to scan wifi
iw wlp7s0 scan
#get SSID then use wpa_passphase to generate config for that wifi
wpa_passphase <ssid> > ./output.conf
#use wpa_supplicant to connect wifi
wpa_supplicant -B -D wext -i wlp7s0 -c ./output.conf
# -B for background running
# -D select driver for wifi. wext is generic
# -i select interface
# -c select file
#use iw link to verify connection
iw wlp7s0 link
#use dhclient to get IP from router
dhclient wlp7s0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment