assuming your wirelesscontroller is named “wlan0”
First, stop network-manager:
sudo /etc/init.d/networkmanager stop
Then make a config for wpa_supplicant:
wpa_passphrase "ssid" "password" > wpaconfig
sudo wpa_supplicant -iwlan0 -cwpaconfig
When you see from the output that you are connected, press [ctrl+z] to run wpa_supplicant in the background temporarily and type $bg to run it in background.
To be assigned to a IP:
sudo dhclient wlan0
Thank you very much – this is a lifesaver! Clean, simple, quick solution, too.
Great to know such old posts is still useful to some people 🙂
Awsome
still very helpful
apt-get purge wicd
[…] https://wilhelmsen.wordpress.com/2009/10/18/connect-to-wpa-with-terminal-ubuntu Share and Enjoy: This entry was posted in Uncategorized and tagged linux, ubuntu, wireless, wpa by Stu. Bookmark the permalink. […]
Thanks a lot!