How to install a D-Link DWA-525 wireless network card in Ubuntu 10.04(不一定哟,我的就是10.10)
I was having an issue with an old network card in my Ubuntu machine (x86 arch), so I went out and got a new one that supports 802.11n. It’s been some time since I swapped out hardware, and Linux has matured greatly since then: the last install of Ubuntu detected everything perfectly, first time, including the network devices!
Not so for this network card. After much searching it turns out it’s actually unsupported [1] out of the box. Bah! I finally found the information I need to get it running. This article is a combination of several articles [2], [3], [4], I had to borrow bits and pieces from all of them, listed below.
Here’s how to get up and running with the D-Link DWA-525 on Ubuntu 10.04:
1. Install the card and power up the machine.
2. Open the terminal and run
lspci
In the list you will see:
Network Controller: Ralink Device 3060 0
So now we know what device we need drivers for.
3. Go to http://www.ralinktech.com/support.php?s=2 and download theRT3062PCI/mPCI/CB/PCIe(RT3060/RT3062/RT3562/RT3592) drivers.
You’ll be prompted for your name and email but you don’t need to sign into anything.
4. Extract the package and cd to the directory.
5. We need to make a slight modification to the configuration for the driver:
nano os/linux/config.mk
And set:
# Support Wpa_Supplicant
HAS_WPA_SUPPLICANT=y
# Support Native WpaSupplicant for Network Manager
HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y
By default they are both set to ‘n’. Save and close the file.
6. From the top level directory, compile and install the driver:
sudo su
make && make install
You need to use ‘sudo su’ and not just ‘sudo’ so it creates the directories properly.
7. After compilation, and whist still root, modprobe the driver:
modprobe rt3562sta
You should get no output signalling success.
8. Now an important step. We need to blacklist a conflicting driver that will be loaded preferentially for this network card.
sudo nano /etc/modprobe.d/blacklist.conf
and enter the following line at the bottom of the file:
blacklist rt2800pci
Save and close.
9. Restart the machine.
10. When the machine is back up, verify the driver has been loaded and is being used by the device:
lsmod
You should see the following in the list:
rt3562sta 924607 1
11. Now, launch the Network Manager and it should have detected the available wireless networks and you can configure the one you want.
References, in order of usefulness:
[1] https://help.ubuntu.com/community/HardwareSupportComponentsWirelessNetworkCardsDlink
[2] http://ubuntuforums.org/showpost.php?p=10055176&postcount=4
[3] http://ubuntuforums.org/showthread.php?t=1045703
[4] http://ubuntuforums.org/showthread.php?t=1559576
经验分享:
1,先切换到超级用户态,即sudo su,不然后面的make和make install有无法正确安装。
2,驱动程序最好别用光盘自带的那个,到ralink官网去下载最新的,网址在上面有给出。
3,安装ubuntu系统时最好别用wubi安装(为啥?我也不知道现在,求解 ~),我就是用这个安装后,最后怎么弄都不行,具体当时的状况就是当我把rt3562的驱动装好后,用iwlist scanning发现可以搜索到网络,但在network-manager上却死活搜不出来,一顿无语,无奈换回grub安装,这个安装方法在网上一搜一大把,另外个人觉得wubi这玩意安装后,等到哪天在windows上一误操作(啪,格式化了),那就泪流满面了。。其它的就基本上按照这篇文章这样做就是了。。
PS:
个人尝试过wicd,当时是想代替network-manager去做网络搜索功能,貌似确实可以搜索到无线网络,不过在连接的过程中出错了,原因可能是wicd依赖的其它文件安装不对,所以wicd安装起来还是比较麻烦的,所以觉得吧network-manager就够用了。
呵呵,当然连无线,几个常用命令还得知道啊:iwconfig/iwlist scanning/lspci -k