This guide is for all Edgy users running a RT61 chipset WLAN card. If you follow all the steps described below, you should have running a WPA (WPA-PSK/TKIP) connection to your Access Point.
Please let me know if you have any suggestions or if something is wrong.
I've got everything running doing all these steps on a fresh and clean installation of Kubuntu Edgy Eft with standard options.
1.) Download the latest original Ralink RT61 drivers from:
Note: I wrote the guide for 22.214.171.124, but it is no longer available for download. However, it should work with the new driver as well. If it does, please post that.
$> wget http://www.ralinktech.com/drivers/Linux/RT61_Linux_STA_Drv126.96.36.199.tar.gz
2.) Compile the Module
Install the kernel headers corresponding to your kernel (In most cases it should be installed by default, but it seems there are derivates which won't do that)
sudo apt-get install linux-headers-`uname -r`
3.) Get root
$> tar xvfz RT61_Linux_STA_Drv188.8.131.52.tar.gz
$> cd RT61_Linux_STA_Drv184.108.40.206/Module/
$> cp -f Makefile.6 Makefile
$> make all
4.) Prepare Config directory for the module
5.) Install Kernel Module
#> mkdir -p /etc/Wireless/RT61STA/
#> cp *.bin /etc/Wireless/RT61STA/
#> cp rt61sta.dat /etc/Wireless/RT61STA/
6.) Configure module via rt61sta.dat (use binary edit mode)
#> cp rt61.ko /lib/modules/`uname -r`/kernel/drivers/net/
See readme file in Modules directory for description.
#> vi -b /etc/Wireless/RT61STA/rt61sta.dat
For WPAPSK Authentification I've changed settings as following:
NOTE: For some reason there seem to be problems if the WPA key is longer than 52 characters and/or contains non-alphanumeric characters.
SSID=<SSID of Access Point>
WPAPSK=<Secret WPA key>
7.) Remove broken preinstalled Module
8.) Load module rt61
#> modprobe --remove rt61pci
9.) Check whether device ra0 has been loaded
10.) Configure and test device
Now everything SHOULD work!
#> ifconfig ra0 <IpAddress> netmask 255.255.255.0 up
#> ping <Access Point>
Of course we want the device to be up after next reboot, so let's edit some more files:
Edit modprobe and network config files
Add broken module to blacklist:
Add the new module to module autostart
#> echo 'blacklist rt61pci' >> /etc/modprobe.d/blacklist
and create an alias
#> echo 'rt61' >> /etc/modules
Now add the interface with your settings to /etc/network/interfaces
#> echo 'alias ra0 rt61' >> /etc/modprobe.d/aliases
comment out the preconfigured wlan0 interface and add following lines (with your ips)
#> vi /etc/network/interfaces
For a static IP address:
If you want to use DHCP (thanks to neveceral):
iface ra0 inet static
address <your ip>
gateway <ip of your access point>
iface ra0 inet dhcp
Reboot - Try - Be Happy!