How to install a D-Link N-150 DWA-525 wireless network card in Ubuntu

Summary:How to install a D-Link WIR-LESS N-150 DWA-525 wireless network card in Ubuntu. Most of the time this card have an issue of connectivity when you setup it with your server. To resolve this issue follow the steps list below.


Step-1: Install the card and power up the machine.
Step-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.
Step-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.
Step-4: Extract the package and cd to the directory.
Step-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.

Step-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

Step-7: After compilation, and whist still root, modprobe the driver:

modprobe rt3562sta

You should get no output signalling success.

Step-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.

Step-9: Restart the machine.

Step-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

Step-11: Now, launch the Network Manager and it should have detected the available wireless networks and you can configure the one you want.
I spent more then a day in resloving this issue. At last i resolved it sucessfully and realize to blog it for other people.
Hope this will help. If there is any issue comments here i will be assisting on how to resolve the middle ware issues.

Leave a Reply

Your email address will not be published. Required fields are marked *