De Ubuntuguide.org :
Wireless
Network Manager
Network Manager has been redesigned for Ubuntu and now works quite well. You should not require other network managers, and, in fact, more than one network manager can cause conflicts. It can be accessed from the tray icon.
Manual configuration from the command-line
3 steps for WEP:
sudo iwconfig eth[N] essid [SSID] sudo iwconfig eth[N] key restricted s:[PASSWORD] sudo dhclient
WPA is more complicated:
su mkdir /etc/wpa_supplicant cd /etc/wpa_supplicant echo network = { > wpa_supplicant.conf echo ssid="SSID" >> wpa_supplicant.conf echo key_mgmt=WPA-PSK >> wpa_supplicant.conf echo psk="PRESHAREDKEY" >> wpa_supplicant.conf echo } >> wpa_supplicant.conf cd /etc/network vim interfaces
Now add after "auto eth[N] ..." & "iface eth[N] .." (press 'i'):
wpa-driver wext # or whatever driver your network card needs wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
Save the file ('Esc', ':x', 'Enter') and restart your system.