After installed the the graphical card driver in Ubuntu, the gnome desktop was not working anymore, needs to install and setup the wireless network in command line, herewith the procedure,
1, scan the available wifi network,
sudo iwlist scan
wpa_passphrase YOURSSID YOURWIFIPASSWORD
network={ ssid="YOURSSID" #psk="YOURWIFIPASSWORD" psk=fe727aa8b64ac9b3f54c72432da14faed933ea511ecab1 5bbc6c52e7522f709a }
sudo vim /etc/network/interfaces
auto wlan0 allow-hotplug wlan0 gateway 192.168.2.1 wpa-psk "the password psk just generated" wpa-ssid "YOURSSID"
sudo /etc/init.d/networking restart
sudo ifdown wlan0 sudo ifup wlan0
ping 8.8.8.8 failed,
ping www.google.com failed.
ping local area network successful,
found the network go through the wired interface eth0, deleted the eth0 configuration in the /etc/network/interfaces, then restart the network service and wlan0, problem resolved.
Ubuntu wireless network connection in command line
原文地址:http://blog.csdn.net/scruffybear/article/details/39085771