For Ubuntu, how do I set up a wireless network? Here we will unveil the curtain for us. I believe you will feel like setting yourself on the cloud.
For a long time, a major reason I haven't replaced my book with a Linux system is that wireless Internet access is too troublesome, and I don't want to drag a network cable to the room every day, so I have not made up my mind. It was very easy to achieve wireless Internet access in Ubuntu.
First, install wpa_supplicant. The command is as follows:
Apt-get install wpasupplicant
Then, create/etc/wpa_supplicant.conf to include the following content:
- Network = {ssid = "your wireless network ssid" psk = "Your wpa password" key_mgmt = WPA-PSK proto = WPA pairwise = TKIP}
Then, edit/etc/network/interfaces:
- iface eth1 inet dhcp
- pre-up wpa_supplicant -Bw -Dwext -i eth1 -c/etc/wpa_supplicant.conf
- post-down killall -q wpa_supplicant
Note: eth1 is your network card, and assume that you use dhcp protocol.
Finally, start your Nic and you will be able to access the Internet wirelessly.
Ifup eth1 if there is any problem, you can disable your wired network ifdown eth0) to prevent Routing Problems.