Cannot get my N300 (DWA-130) D-link wireless USB to work on Ubuntu 14.04
Solution 1:
Remove the device and in a terminal, do:
gksudo gedit /etc/modprobe.d/network_drivers.conf
Add one long single line:
install rt2800usb /sbin/modprobe --ignore-install rt2800usb $CMDLINE_OPTS; /bin/echo "2001 3c25" > /sys/bus/usb/drivers/rt2800usb/new_id
Use nano or kate or leafpad if you don't have the text editor gedit. Caps, brackets, punctuation, etc. are crucial. Proofread twice, save and close the text editor. Insert the device. If it doesn't start immediately, you might have to do:
sudo modprobe rt2800usb
Be certain that ndiswrapper is removed:
sudo apt-get purge ndiswrapper-common ndiswrapper-utils*
It may take a reboot.