
Daniel Dalton wrote:
I'm attempting to connect my linux laptop to my government school's wifi network via wpa_supplicant.
Headless wifi/DHCP client using WPA2-PSK (or WPA-PSK): 1. apt-get install wpasupplicant 2. make /etc/network/interfaces look something like this:: auto lo iface lo inet loopback #auto eth0 iface eth0 inet dhcp auto wlan0 iface wlan0 inet manual wpa-roam /etc/wpa_supplicant.conf wpa-roam-default-iface wlan0-default iface wlan0-default inet dhcp 3. make /etc/wpa_supplicant.conf look something like this:: network={ ssid="foo" psk="UNPRINTABLE" } 4. as the PSK is clear text, be sure to:: chown root: /etc/wpa_supplicant.conf chmod 600 /etc/wpa_supplicant.conf You may also wish to use wpa_passphrase(8) to hash the SSID and PSK together, making it harder (but not impossible) to convert it back into plain text. See /usr/share/doc/wpasupplicant/README.Debian.gz for more info. To debug, try:: ip link set wlan0 up wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf # wpa_supplicant will run in foreground. Once it indicates that # it's up, open a second shell and try to talk to the DHCP server # over wlan0: dhclient -v wlan0 -- http://cyber.com.au/~twb/doc/wifi.txt