Code:
wpa_passphrase your_ssid your_psk
2) Now copy the psk string you got as output.
3) Type:
Code:
sudo gedit /etc/wpa_supplicant.conf
Code:
ctrl_interface=/var/run/wpa_supplicant
#ap_scan=2
network={
ssid="your_ssid"
scan_ssid=1
proto=WPA RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk=your_psk
}
Here is an example:
Code:
luca@laptop1:~$ wpa_passphrase mywlan thisisthepassword
network={
ssid="mywlan"
#psk="thisisthepassword"
psk=b22ec921c254c73f99b31b76ff876692ecde36839a1f2d92150829e6afcb5515
}
Code:
ctrl_interface=/var/run/wpa_supplicant
#ap_scan=2
network={
ssid="mywlan"
scan_ssid=1
proto=WPA RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk=b22ec921c254c73f99b31b76ff876692ecde36839a1f2d92150829e6afcb5515
5) Now we have to make wpa_supplicant load when system boots, so go back to the terminal window and type:
Code:
sudo gedit /etc/network/interfaces
Code:
pre-up wpa_supplicant -Bw -Dwext -ieth0 -c/etc/wpa_supplicant.conf
post-down killall -q wpa_supplicant
Here is an example:
Code:
iface eth0 inet static
address 192.168.1.15
netmask 255.255.255.0
wireless-essid my_essid
gateway 192.168.1.1
pre-up wpa_supplicant -Bw -Dwext -ieth0 -c/etc/wpa_supplicant.conf
post-down killall -q wpa_supplicant
Code:
sudo wpa_supplicant -Bw -Dwext -i eth0 -c/etc/wpa_supplicant.conf
Troubleshooting:
You can run wpa_supplicant with -dd flag for a detailed debug output.
1) If you don't manage to connect to the AccessPoint, try to uncomment line 2 in /etc/wpa_supplicant.conf.
2) If that doesn't help, try change its value to 0 or 1.
3) If you get troubles while authenticating, try removing "RSN" and/or "CCMP" strings from /etc/wpa_supplicant.conf.
source: http://www.ubuntuforums.org/showthread.php?t=263136
No comments:
Post a Comment