Posted by: noorul | June 4, 2008

Setting up wpa_supplicant on Debian etch (linux 2.6.25.3)

Recently, I was trying to connect to a WiFi access point in my room. Some how the system not able to associate to the access point. It took lots of time for me to find out that WPA-PSK encryption is used. Following steps helped me to setup wpa_supplicant which encrypts the stream.

1. Create wpa_supplicant.conf. Mine is located at /etc/

ctrl_interface=/var/run/wpa_supplicant
network={
	ssid="Access Point SSID"
	scan_ssid=1
	proto=WPA
	key_mgmt=WPA-PSK
	psk="Really Secret"
	priority=5
}

2. Put following commands inside a shell script

#!/bin/sh
wpa_supplicant -Dwext -ieth2 -c/etc/wpa_supplicant.conf -Bw
dhclient eth2

3. Run the above script to bring the link up.

Now have fun with browsing!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: