Wifi
From Attie's Wiki
NetworkManager tends to get in the way... big time. Don't forget to kill him.
WEP
<srouce lang="bash"> stop network-manager ifconfig wlan0 down iwconfig wlan0 essid my_network iwconfig wlan0 key s:my_passphrase iwconfig wlan0 mode managed ifconfig wlan0 up dhclient -v wlan0 </source>
Alternatively you can specify the hex value for the key:
iwconfig wlan0 key ...