Friday 2 December 2011

How to install a D-LinkN 150 DWA-525 wireless network card in Ubuntu 10.10


How to install a D-Link  WIRLESS N 150 (DWA-525) wireless network card in Ubuntu 10.10
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: www.ralinktech.com, clicked on Software at the top then chose Linux from the side menu on the left and then downloaded the RT3062PCI/mPCI/CB/PCIe(RT3060/RT3062/RT3562/RT3592) file because it says 3060 which is the dwa-525.

4: 4. Extract the package and cd to the directory.

5. We need to make a slight modification to the configuration for the driver:

vim 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: 6. From the top level directory, compile and install the driver:

sudo su
make && make install

if it gives you the error of building library Then update your pae- by the following procedure
go to system from top menue select synptic manager
go to the tab status
select the Not installed (residual config..) and
select linux-backports----
mark for installation and apply.
OR
search pea.. and select the desired version and mark for installation and apply.
after installation complete open your terminal and cd in to the donwonloded package directory then apply the same command of make && make install

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 vim /etc/modprobe.d/blacklist.conf

and enter the following line at the bottom of the file:

blacklist rt2800pci
:wq!
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.

Regards:
shahmeer

2 comments: