Results 1 to 10 of 283

Thread: HOWTO: RT61 on Egdy Eft with WPA

Threaded View

  1. #1
    Join Date
    Nov 2006
    Location
    Germany
    Beans
    39
    Distro
    Kubuntu 6.10 Edgy

    Arrow HOWTO: RT61 on Egdy Eft with WPA

    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:
    Code:
    $> wget http://www.ralinktech.com/drivers/Linux/RT61_Linux_STA_Drv1.1.0.0.tar.gz
    Note: I wrote the guide for 1.0.4.0, but it is no longer available for download. However, it should work with the new driver as well. If it does, please post that.
    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)
    Code:
    sudo apt-get install linux-headers-`uname -r`
    Code:
    $> tar xvfz RT61_Linux_STA_Drv1.0.4.0.tar.gz
    $> cd RT61_Linux_STA_Drv1.0.4.0/Module/
    $> cp -f Makefile.6 Makefile
    $> make all
    3.) Get root
    Code:
    $> sudo su
    4.) Prepare Config directory for the module
    Code:
    #> mkdir -p /etc/Wireless/RT61STA/
    #> cp *.bin /etc/Wireless/RT61STA/
    #> cp rt61sta.dat /etc/Wireless/RT61STA/
    5.) Install Kernel Module
    Code:
    #> cp rt61.ko /lib/modules/`uname -r`/kernel/drivers/net/
    #> depmod
    6.) Configure module via rt61sta.dat (use binary edit mode)
    Code:
    #> vi -b /etc/Wireless/RT61STA/rt61sta.dat
    See readme file in Modules directory for description.
    For WPAPSK Authentification I've changed settings as following:
    Code:
    SSID=<SSID of Access Point>
    NetworkType=Infra
    AuthMode=WPAPSK
    EncrypType=TKIP
    WPAPSK=<Secret WPA key>
    NOTE: For some reason there seem to be problems if the WPA key is longer than 52 characters and/or contains non-alphanumeric characters.

    7.) Remove broken preinstalled Module
    #> modprobe --remove rt61pci
    8.) Load module rt61
    Code:
    #> modprobe rt61
    9.) Check whether device ra0 has been loaded
    Code:
    #> iwconfig
    10.) Configure and test device
    Code:
    #> ifconfig ra0 <IpAddress> netmask 255.255.255.0 up
    #> ping <Access Point>
    Now everything SHOULD work!

    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:
    Code:
    #> echo 'blacklist rt61pci' >> /etc/modprobe.d/blacklist
    Add the new module to module autostart
    Code:
    #> echo 'rt61' >> /etc/modules
    and create an alias
    Code:
    #> echo 'alias ra0 rt61' >> /etc/modprobe.d/aliases
    Now add the interface with your settings to /etc/network/interfaces
    Code:
    #> vi /etc/network/interfaces
    comment out the preconfigured wlan0 interface and add following lines (with your ips)
    For a static IP address:
    Code:
    iface ra0 inet static
    address <your ip>
    netmask 255.255.255.0
    gateway <ip of your access point>
    auto ra0
    If you want to use DHCP (thanks to neveceral):
    Code:
    iface ra0 inet dhcp
    wireless-essid YOURESSID
    auto ra0

    Reboot - Try - Be Happy!
    Last edited by phq; November 23rd, 2006 at 08:49 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •