Install DWA-140 D-Link USB Adapter on Lucid

Open baby

Install DWA-140 D-Link USB Adapter on Lucid

Postby intodis » 13 Apr 2010, 01:12

I have fought with this adapter for sometime now how every this seems to be working on Lucid and seems to be thorough


My shrunk down instruction for my setup

Blacklisting Modules:
Code: Select all
gksudo gedit /etc/modprobe.d/blacklist.conf

add these lines to the end of the file:
Code: Select all
blacklist rt2x00usb
blacklist rt2x00lib
blacklist rt2800usb
Save the file

Need a compiler and Linux headers installed
Code: Select all
sudo apt-get install build-essential linux-headers-generic

Download a copy of Ralink's rt2870 USB driver from
Save to desktop
Code: Select all
cd ~/Desktop
tar -xvf ~/Desktop/RT2870_LinuxSTA*.tgz
cd ~/Desktop/*2870*

Configure for Network Manager ...
Code: Select all
gedit ~/Desktop/*2870*/os/linux/

change to this
Code: Select all
# Support Wpa_Supplicant
# Support Native WpaSupplicant for Network Maganger

Code: Select all
cd ~/Desktop/*2870*
sudo make install

(If you're trying to compile a second time, please note: Run "make clean" before running "make" to remove your previous attempt.)

This installs the module rt2870sta.ko, but now you have 2 copies of it:
one in /lib/modules/`uname -r`/kernel/drivers/net/wireless and another at /lib/modules/`uname -r`/kernel/drivers/staging/rt2870.
The one in the staging directory is the one that came with Ubuntu, which obviously doesn't work for you.

Before you delete your old driver, run the following commands to see if your newly compiled driver actually functions with your USB device. The first line requires the device unplugged.
Code: Select all
sudo modprobe -r rt2870sta
sudo insmod /lib/modules/`uname -r`/kernel/drivers/net/wireless/rt2870sta.ko
sudo /etc/init.d/networking restart
sudo restart network-manager

If NetworkManager now works, congratulations.

Now delete the version of the rt2870sta module that came with Ubuntu, otherwise, you will have to run the above commands whenever you want to use the new driver.
Code: Select all
sudo rm -rf /lib/modules/`uname -r`/kernel/drivers/staging/rt2870

You will need to recompile this module every time a new Linux kernel is installed.
Site Admin
Posts: 204
Joined: 30 Mar 2006, 20:57

Return to Ubuntu/Linux

Who is online

Users browsing this forum: No registered users and 1 guest