Connect to wpa with terminal (ubuntu)

18 10 2009

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



5 responses

15 09 2011
James JamWaffles Waples

Thank you very much – this is a lifesaver! Clean, simple, quick solution, too.

15 09 2011

Great to know such old posts is still useful to some people :-)

26 10 2011

still very helpful
apt-get purge wicd

23 04 2012
Connect to wpa with terminal (ubuntu) | Wilhelmsen | Stuart Dines

[…] Share and Enjoy: This entry was posted in Uncategorized and tagged linux, ubuntu, wireless, wpa by Stu. Bookmark the permalink. […]

6 08 2012

Thanks a lot!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Get every new post delivered to your Inbox.

%d bloggers like this: