Sunday, January 22, 2012
5:22 PM

Connecting to wireless AP with WPA/2 security using wpa_supplicant

Recently, my cooker updated perl packages and it broke all of drak* family especially drakconf and net_applet. net_applet is the network manager for Mandriva in applet form. I can also use draknetcenter. Now the problem is I cant open net_applet and knetcenter due to this error:
/usr/bin/perl: symbol lookup error: /usr/lib/libDrakX/auto/c/stuff/stuff.so: undefined symbol: Perl_Gthr_key_ptr
So how do I connect to wireless AP? I dont know how to use iwconfig to connect to such AP or can I? After googling, I found a solution: wpa_supplicant. In Mandriva, I just have to run this command (as root):
wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf &
If you have setup the connection before with draknetcenter, you dont have to edit the file wpa_supplicant.conf. If not, you have to manually edit the file to suit your environment. it is heavily documented. 

Then you have to run dhclient to get IP address from the AP or other dhcp server:
 dhclient wlan0

wlan0 is my wireless interface. Please change it according to your environment. I bet the broken packages will be updated sooner so that I can use net_applet again.

Have fun!

0 comments:

Post a Comment