This is a tutorial for getting Ralink's RT2760/RT2790/RT2860/RT2890-based (m)PCI(e) cards running on Intrepid with the latest Linux drivers provided on Ralink's website. You will need a wired connection to download the pertinent files.

First you are going to need the driver package, which can be downloaded from:

You are looking for the "RT2860PCI/mPCI/PCIe/CB(RT2760/RT2790/RT2860/RT2890)" package. Download it and save it to your home directory.

Start a terminal and install the build-essential and linux-headers packages (if you don't have them already):

sudo aptitude install linux-headers-`uname -r` build-essential
Now, in your home folder untar the Ralink package:

tar -xvjf 2008_0918_RT2860_Linux_STA_v1.8.0.0.tar.bz2
Edit the 2008_0918_RT2860_Linux_STA_v1.8.0.0/os/linux/ file to allow network-manager to manage the card:

gedit 2008_0918_RT2860_Linux_STA_v1.8.0.0/os/linux/
Where it says:

# Support Wpa_Supplicant

# Support Native WpaSupplicant for Network Manager
Make sure that both lines have a "y" after them (by default they have an "n"), then save the file.

Now enter the 2008_0918_RT2860_Linux_STA_v1.8.0.0 directory, compile and install the driver as root:

cd 2008_0918_RT2860_Linux_STA_v1.8.0.0/
sudo su
make && make install
It is important here not to use "sudo" alone, but "sudo su" because with sudo for some reason the installation script fails to create the necessary files and folders in among others /etc. This is what caused me some trouble before I figured it out.

Now, while still root modprobe the driver module:

modprobe rt2860sta
Give it a minute to create the ra0 device node, and network manager should now be able to display all visible wireless networks in your area, meanwhile you can stop being root and make sure that the module was probed correctly by checking the output of lsmod looking for the rt2860sta module.

lsmod | grep rt2860sta
It should output something like "rt2860sta 525400 1". To make sure that ra0 is up and running as it's supposed to you can run "iwconfig" which should output something like this:

lo        no wireless extensions.

eth1      no wireless extensions.

ra0       RT2860 Wireless  ESSID:""  Nickname:"RT2860STA"
          Mode:Managed  Frequency=2.412 GHz  Access Point:   
          Bit Rate=54 Mb/s   
          RTS thr:off   Fragment thr:off
          Link Quality=100/100  Signal level:-29 dBm  Noise level:-71 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
Hopefully all of this worked and your wireless card is now functional. Use network manager to set your WEP/WPA(2) or what have you and connect to your network.

To make sure the module is loaded when you reboot, add it to the /etc/modules file:

sudo echo rt2860sta >> /etc/modules
Hopefully this will be of service to someone. :)