CHAPTER 8 GETTING EVERYTHING UP AND RUNNING (My space web page)

CHAPTER 8 GETTING EVERYTHING UP AND RUNNING 89 3. In the list of results, click the check box next to wpasupplicant and opt to install it. 4. Open a GNOME Terminal window (Applications . Accessories . Terminal) and type the following to open in Gedit the first wpasupplicant configuration file you ll need to edit: sudo gedit /etc/default/wpasupplicant 5. Look for the line that reads ENABLED=0. Change it to ENABLED=1. 6. Beneath this, you ll see a line that reads OPTIONS=”-w”. Change this to read as follows: OPTIONS=”-D drivername -i adaptername c /etc/wpa_supplicant.conf w” Replace drivername with the name of the driver you discovered earlier. Enter it in lowercase (for example, prism54 or atmel). Replace adaptername with the name Ubuntu assigns your card, which you also discovered earlier (such as eth0, ath0, wlan0, or something similar). 7. Save the file and close Gedit. 8. Now you need to edit the second wpasupplicant configuration file. In the GNOME Terminal window, type the following: sudo gedit /etc/wpa_supplicant.conf 9. At the bottom of the file will be four lines, the first one of which will read network={and the last of which will be a } symbol by itself. At the beginning of each of these lines, insert a # symbol. In other words, the first line will now read #network={, and the last will read #}. Then save the file. 10. It s now time to enter the WPA passphrase. Typing the following will immediately prompt you for the passphrase and also automatically update your configuration files: wpa_passphrase wifi_station_name | sudo tee -a /etc/wpa_supplicant.conf Replace wifi_station_name with the SSID name of your wireless base station. The SSID name is how the base station identifies itself and, provided the base station is set to broadcast its name, you can discover it by using the Network Settings applet and looking in the Network Name (ESSID) drop-down list for your wireless card. 11. The cursor will move to a blank line. Type the WPA passphrase for your router, and then press Enter. 12. Now you need to make wpasupplicantstart at bootup. Type the following in the terminal window: sudo ln s /etc/init.d/wpasupplicant /etc/rc2.d/S40wpa 13. Reboot, and you should now find that you are able to connect to the WPA-protected wireless network.

Leave a Reply