Using the D-Link DWA-125 with Ubuntu 10.04
Caveat
This method has only been tested under Ubuntu 10.04 (Lucid Lynx), but should work for any previous version of Ubuntu. Additionally, the driver compile instructions referenced should work for any modern Linux distribution (2.6+ kernel). YMMV.
Overview
The default driver for the D-Link DWA-125 wireless 150 USB adapter currently available as part of the Ubuntu Linux distribution has errors. This article offers a method for fixing this issue.
Requirements
You will need a default Ubuntu install (ideally), a D-Link DWA-125 wireless USB adapter and access to an account on the machine in question that has superuser capabilities.
Method
Firstly, plug the device into a USB port and identify it using the following command:
lsusb | grep D-Link
This should return the following text as output:
Bus 001 Device 003: ID 07d1:3c0d D-Link System
If the USB device ID is 07d1:3c0d, then continue to the next step. If not, then the device is not the D-Link we are looking for and is out of scope.
The issue can be confirmed by checking the system output using one of the following commands:
grep rt2 /var/log/messageswhich should return something like this:rt2800usb 1-6:1.0: firmware: requesting rt2870.bin
; ordmesg | grep rt2which should return something similar to the above output.
The next step is to grab the most current Linux driver from D-Link, compile it and install it. The GNU make program is needed for this step, but it should already be installed as part of a base Ubuntu installation. Run the following commands to download the current driver source, extract it, compile it and finally install it for use:
wget --quiet ftp://www.dlinkla.com/pub/drivers/DWA-125/*LINUX*DWA-125*.tar.gz --directory-prefix=/tmp
tar -xzf /tmp/*LINUX*DWA-125*.tar.gz
cd /tmp/*RT3070*Linux*
make && sudo make install
echo "blacklist rt2800usb" | sudo tee --append /etc/modprobe.d/blacklist.conf
If the commands above complete successfully, the new driver has been installed and the incorrect driver has been prevented from automatically loading. Restart the computer and the device will be available for use.
Happy CSS Naked Day for 2010
What happened to the design?
To know more about why styles are disabled on this website visit the Annual CSS Naked Day website for more information.
A PHP APC module packaging caveat
For anyone trying to build the PHP APC module, beware. The version available as a Gzip’d TAR archive is missing a key file, so pull the tagged release out of the PHP repos instead.
Save yourself the wasted 20 minutes I spent debugging the issue!
Resizing an ext3 LVM2 volume
The process of resizing an LVM volume is pretty straightforward, but it’s important to take care in performing them — one false step and say goodbye to the data on that disk.- Shut the machine down
- Boot off a live CD or rescue disk
- Skip mounting your existing volumes
- Run
lvm vgchange -a y - Ensure that the volume group and logical volumes are visible
- Run
e2fsck -f VOLUMEto ensure the existing data on the volume is intact and the file system is sane - Run
resize2fs -p VOLUME SIZE[M|G]to resize the file system on the volume to the intended size - Run
lvm lvreduce -L VOLUMEto resize the logical volume to the preferred size - Run
resize2fs VOLUMEagain to fill up the logical volume








