![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
|
Tutorials & Tips The place to find Ubuntu related Tips & Tricks. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Ubuntu Green Coffee Beans
![]() Join Date: Oct 2005
Beans: 0
|
0. Preface
First of all, I'd like to thank luca_linux for posting the great ipw2200+wpa HOWTO, which helped me get my own WPA set up. However, that HOWTO is a little old (based on an older wpasupplicant and Ubuntu 5.04?) and assumed that one had internet access from the WPA-needing system (how else to apt-get wpasupplicant?). Also, the newer wpasupplicant package provides its own startup script. So here is my updated version, most specifically targeted at newer users not as familiar with Linux. 1. Assumptions
2. Download wpasupplicant On the internet-enabled computer, download wpasupplicant from the Ubuntu repository. On a Linux machine, it would look like this: Code:
wget http://us.archive.ubuntu.com/ubuntu/pool/universe/w/wpasupplicant/wpasupplicant_0.4.5-0ubuntu1_i386.deb Code:
mount /media/floppy cp wpasupplicant_0.4.5-0ubuntu1_i386.deb /media/floppy umount /media/floppy Now get on your Breezy Badger machine, mount the disk with wpasupplicant, and install it: Code:
mount /media/floppy sudo dpkg -i /media/floppy/wpasupplicant_0.4.5-0ubuntu1_i386.deb First I would recommend backing up the default configuration files: Code:
sudo cp /etc/default/wpasupplicant /etc/default/wpasupplicant_backup sudo cp /etc/wpa_supplicant.conf /etc/wpa_supplicant.conf_backup Code:
sudo gedit /etc/default/wpasupplicant Code:
ENABLED=1 Code:
OPTIONS="-D madwifi -i ath0 -c /etc/wpa_supplicant.conf -w" Now we will edit /etc/wpa_supplicant.conf: Code:
sudo gedit /etc/wpa_supplicant.conf Code:
#network={
# ssid=""
# key_mgmt=NONE
#}
Code:
wpa_passphrase your_ssid | grep -v "#psk" | sudo tee -a /etc/wpa_supplicant.conf Code:
sudo chmod 600 /etc/wpa_supplicant.conf 5. Configure wpasupplicant to start when booting It is essential that wpasupplicant run after your wireless card driver is loaded but before Ubuntu attempts to configure it via DHCP or whatever. Since the scripts in /etc/rcS.d are executed in ascending alphanumeric order, this meant, in the case of my setup, after the hotplug (run level 40) but before networking (also run level 40). Therefore, I needed the startup script to be alphabetically between "hotplug" and "networking", so I called it "iwpa": Code:
cd /etc/rcS.d sudo ln -s ../init.d/wpasupplicant S40iwpa 6. Start wpasupplicant Fortunately, we don't have to reboot to enjoy the newly configured WPA. Just bring up the startup script and restart your networking: Code:
sudo invoke-rc.d wpasupplicant start sudo invoke-rc.d networking restart |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|