rawsontetley.org

Getting WPA working on Debian (4.0/Etch)

(These examples all assume your card is identified as wlan0)

First, install the wpa supplicant:

apt-get install wpasupplicant

Setup /etc/network/interfaces to start up the supplicant program.

iface wlan0 inet dhcp
	wpa-driver wext
	wpa-conf /etc/wpa_supplicant.conf

Create the /etc/wpa_supplicant.conf file:

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=1

# Pre-shared Key Security
network={
	ssid="securednetwork"
	psk="sharedkey"
	# psk=0adeadbeef - no quotes for Hex
	# key_mgmt=WPA-PSK
	# proto=WPA
}

# Open
network={
        ssid=""
        key_mgmt=NONE
}

Now, you should be able to bring up your wireless card and see it connect.

ifup wlan0