Posted by mpapet on Fri 12 Jan 2007 at 14:29
KWLAN is a very handy network connections manager for the KDE desktop. The main features are auto-detection of multiple interfaces, ability to use wpa_supplicant wireless security, and scripts that run for each connection profile created.
I first built it from source on Suse 9.3 and it worked great. I was pleased to see it included in the Etch repositories. The only configuration required is a sudo entry and an optional wpa_supplicant entry.
Installation is easy:
apt-get install kwlan
But don't start kwlan yet.
Configuring sudo
In Etch, sudo editing is still called as root with visudo, the default editor is nano, which IMHO is a little easier for the vi uninitiated. Be extra careful editing the sudoers file. Do not delete the root entry, just add the following entry below it.
USERNAME HOSTNAME=NOPASSWD: /sbin/wpa-supplicant /sbin/dhclient /sbin/iwconfig
That command is loosely decoded as :
Configuring WPA Supplicant
You need to create a wpa_supplicant.conf file. I put mine in the directory /etc/wpa_supplicant. It needs to look like the following:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
eapol_version=1
# ap_scan=2 was the one for me you may try 0 or 1 indstead of 2
ap_scan=2
fast_reauth=1
network={
ssid="NETGEAR"
proto=WPA
key_mgmt=WPA-PSK
pairwise=TKIP
group=TKIP
psk="PASSWORD"
}
This wpa_supplicant.conf file should be pretty self-explanatory.
Now you can start kwlan and configure multiple network connections easily.
This article can be found online at the Debian Administration website at the following bookmarkable URL (along with associated comments):
This article is copyright 2007 mpapet - please ask for permission to republish or translate.