内容从我博客里复制粘贴而來http://blog.sina.com.cn/s/blog_53a99cf301015rey.html
Setting Up Ralink Wireless on Ubuntu
------------------------------------
Step 1
Download latest RT2860 driver source code from Ralink.
http://www.ralinktech.com/en/04_support ... php?sn=501
Step 2
Open and extract the downloaded file to your home directory - do not change the name.
Open a terminal window and perform the following commands:
cd ~/2010*
gedit ./os/linux/config.mk
Step 3
Find the following lines (by default set to "n") and set them to be "y":
HAS_WPA_SUPPLICANT=y
HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y
Save and close the file.
Step 4 这一步可做可不做,不影响驱动安装
Back in the terminal window perform the following command:
gedit ./common/cmm_wpa.c
For the warning message choose "Western" then "Retry".
Use the find command to locate "MIX_CIPHER_NOTUSE". Replace the entire line with this code:
WPA_MIX_PAIR_CIPHER FlexibleCipher = WPA_TKIPAES_WPA2_TKIPAES;
Save and close the file.
Step 5
Make sure gcc is installed (usually is by default but if not install it via synaptic) then from the terminal window perform the following commands:
sudo make
sudo make install
sudo ifconfig wlan0 down (on some hardware it is ra0)
sudo rmmod rt2860sta
sudo mv /lib/modules/3.2.*/kernel/drivers/staging/rt2860/rt2860sta.ko rt2860sta.ko.dist
NOTE: Replace the * in the last command with the actual directory name of the current kernel (if you are unsure what it is, navigate to the directory in nautilus to check).
Step 6
Still in the terminal window perform the following commands:
sudo depmod -a
sudo modprobe rt2860sta
sudo ifconfig wlan0 up (on some hardware it is ra0)
Step 7
Check that network manager can now select networks and connect to them.
Step 8
Back in the terminal window perform the following command:
sudo cp rt2860sta.ko /lib/modules/3.2.*/kernel/drivers/staging/rt2860/
NOTE: Replace the * in the last command with the actual directory name of the current kernel (if you are unsure what it is, navigate to the directory in nautilus to check).
Step 9
In the terminal window perform the following command:
sudo gedit /etc/modules
Add "rt2860sta" on a line at the end of the file then save and close it.
Step 10
Reboot and check that wireless still works.