WPA Wireless Networks from Shell
Firstly, make sure you have wpa supplicant installed, it should be on most default installations. Chances are, its already installed if you can or have been able to connect with network manager.
Once you’ve verified it is installed try this one liner (as root):
Press Ctrl + Z, then type bg to put it in the background, then you are able to get a DHCP lease with dhclient
What this does is generates the passphrase for your access point and writes it to the file /etc/wpa_supplicant. Once it is written, it then fires up the last line of wpa_supplicant (tail -n 1) which is the example:
wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf.
Of course, you can run this manually if you wish or run with the -B option to skip the manual backgrounding.
Firstly, make sure you have wpa supplicant installed, it should be on most default installations. Chances are, its already installed if you can or have been able to connect with network manager.
Once you’ve verified it is installed try this one liner (as root):
dhclient wlan0
wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf.
Of course, you can run this manually if you wish or run with the -B option to skip the manual backgrounding.
0 comments
Post a Comment