http://forum.ubuntu.org.cn/viewtopic.php?f=116&t=186240
iwlist wlan0 scan ##列出有效的无线网络
iwconfig wlan0 essid <wireless network name> ## 连接没有设密码的无线网络
iwconfg wlan0 essid <wireless network name> key <password> ##连接有密码的无线网络
ifconfig wlan0 up ## 转用无线网卡
dhclient wlan0 or dhcpcd wlan0 ## 让无线自动获得IP.