I recently purchased a new wireless adapter in order to take full advantage of the Wireless N networking currently present at my place of residence. Unfortunately, conflicting drivers resulted in system instability and frequent connection drops. Rather than re-installing Windows 7 (like any sane person), I decided to give Ubuntu 10.04 a try. My previous attempts at installing the popular linux distro were thwarted by an incompatible DVD drive (non-SATA: “Could not find live file system errors”) and by my lack of patience towards getting wireless networking properly configured. I had a slight hope that Ubuntu would perhaps recognize the new network adapter and automatically configure it for use. Unfortunately, this was not the case and countless hours were spent (Also thanks to Fifa 2010 World Cup) in order to get the device fully functioning within the OS.
As a long-time windows and OS X user, driver installation has always been easy thanks to the graphical interface. In Ubuntu however, installation and configuration is almost entirely done through a text-based terminal. Needless to say, the learning curve associated with the terminal can be quite overwhelming to new users like myself who have been dumbed down by the simplicity of mainstream operating systems. In hopes of avoiding the terminal (It gives me nightmares), my first attempt at enabling wireless networking was to make use of a program called ndiswrapper. Ndiswrapper is a utility that has the sole function of emulating Windows drivers within the Linux environment and is obtainable from the Ubuntu Software Center. After multiple failed attempts, I decided that ndiswrapper was simply not an option for the adapter in question. As a result, I was forced to look through the internet for guides to manually compiling and installing linux drivers for the DWA-125. Below I have attached the findings that did the trick for me in hopes that it will save you precious time:
Enabling the Wireless adapter:
- Step 1: Obtain the Correct Linux Driver for the Device in Question. If you have a D-link adapter, go to:
ftp://www.dlinkia.com/pub/drivers/ http://ftp.dlink.ru/pub/Wireless/ for Linux drivers for your device.
- Step 2: Transfer the tar.gz driver file to the desktop of your Linux installation and rename it to something simple such as Drivers.tar.gz.
- Step 3: Double click on the Drivers.tar.gz file and extract it to the desktop. A folder should now be present on your desktop. Rename this folder to Drivers.
- Step 4: Open the terminal and change the current directory to the locati
on of the drivers
- The current directory can be changed by using the cd command. For example, if my drivers were located at the path: /home/manthan/desktop/drivers/ I would enter cd /home/manthan/desktop/drivers/. To figure out the path, right click on the drivers folder and click on the properties button.
- Step 5: Once the terminal is pointing to our drivers folder, we must execute the command:
- make && sudo make install (Enter the entire line all at once)
- Step 6: Restart the computer and the wireless adapter should be activated.
Connecting to wireless access point:
- Step 7: If you can see your wireless access point but cannot connect to it, go to your routers settings and disable the security. By temporarily disabling the security, we can determine whether the problem lies within the router configurations.
- Step 8: If connection is established after disabling security here are my current router settings which work well on Ubuntu:
- 802.11 Mode: Mixed 802.11n, 802.11g, and 802.11b
- Channel Width: Auto 20/40 MHz
- Authentication Type: WEP (Open System)
- Mode: HEX
- WEP Key: 128-bit
After following the steps above, my connection is working flawlessly on Ubuntu. Streaming audio and video content across the network is faster than ever with minimal connection interruptions. If this guide helped you in any way or if you are a linux guru who wishes to mock my incompetence feel free leave a comment!
After installing the latest security updates through the built-in GUI update tool, my wireless device once again became inactive. In order to enable the device, I had to reinstall the drivers. In order to install the drivers, I had to first enter the terminal with root access. This was done by entering the command sudo su and then entering the password associated with the account. For some reason, the command sudo make && install returned an error this time. To bypass this error message, I had to split the command and first enter sudo make, followed by sudo install.