↓ Archives ↓

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 pre­vi­ous ver­sion of Ubuntu. Addi­tion­ally, the driver com­pile instruc­tions ref­er­enced should work for any mod­ern Linux dis­tri­bu­tion (2.6+ ker­nel). YMMV.

Over­view

The default driver for the D-Link DWA-125 wire­less 150 USB adapter cur­rently avail­able as part of the Ubuntu Linux dis­tri­bu­tion has errors. This art­icle offers a method for fix­ing this issue.

Require­ments

You will need a default Ubuntu install (ideally), a D-Link DWA-125 wire­less USB adapter and access to an account on the machine in ques­tion that has super­user capabilities.

Method

Firstly, plug the device into a USB port and identify it using the fol­low­ing command:

lsusb | grep D-Link

This should return the fol­low­ing text as output:

Bus 001 Device 003: ID 07d1:3c0d D-Link System

If the USB device ID is 07d1:3c0d, then con­tinue to the next step. If not, then the device is not the D-Link we are look­ing for and is out of scope.

The issue can be con­firmed by check­ing the sys­tem out­put using one of the fol­low­ing commands:

  • grep rt2 /var/log/messages which should return some­thing like this:
    rt2800usb 1-6:1.0: firmware: requesting rt2870.bin
    ; or
  • dmesg | grep rt2which should return some­thing sim­ilar to the above output.

The next step is to grab the most cur­rent Linux driver from D-Link, com­pile it and install it. The GNU make pro­gram is needed for this step, but it should already be installed as part of a base Ubuntu install­a­tion. Run the fol­low­ing com­mands to down­load the cur­rent driver source, extract it, com­pile 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 com­mands above com­plete suc­cess­fully, the new driver has been installed and the incor­rect driver has been pre­ven­ted from auto­mat­ic­ally load­ing. Restart the com­puter and the device will be avail­able for use.

Happy CSS Naked Day for 2010

What happened to the design?

To know more about why styles are dis­abled on this web­site visit the Annual CSS Naked Day web­site for more information.

A PHP APC module packaging caveat

For any­one try­ing to build the PHP APC mod­ule, beware. The ver­sion avail­able as a Gzip’d TAR archive is miss­ing a key file, so pull the tagged release out of the PHP repos instead.

Save your­self the wasted 20 minutes I spent debug­ging the issue!

Happy Easter

It's a miracle!

Resizing an ext3 LVM2 volume

The pro­cess of res­iz­ing an LVM volume is pretty straight­for­ward, but it’s import­ant to take care in per­form­ing them — one false step and say good­bye to the data on that disk.
  1. Shut the machine down
  2. Boot off a live CD or res­cue disk
  3. Skip mount­ing your exist­ing volumes
  4. Run lvm vgchange -a y
  5. Ensure that the volume group and logical volumes are visible
  6. Run e2fsck -f VOLUME to ensure the exist­ing data on the volume is intact and the file sys­tem is sane
  7. Run resize2fs -p VOLUME SIZE[M|G] to res­ize the file sys­tem on the volume to the inten­ded size
  8. Run lvm lvreduce -L VOLUME to res­ize the logical volume to the pre­ferred size
  9. Run resize2fs VOLUME again to fill up the logical volume

The Imaginarium of Doctor Parnassus

The trailer for Terry Gilliam’s new film, “The Ima­gin­arium of Doc­tor Parnas­sus”, is out. Behold:This video was embedded using the YouTuber plugin by Roy Tanck. Adobe Flash Player is required to view the video.I for one can’t wait to see it.

Back to the new school

New school

do too many ‘social’ friend con­nec­tions harm innov­a­tion? http://ping.fm/8A1Fr

Drunken funk

Lame­book is awe­some. Bad things happen after 6 beers Non-sense Good frind Ran-dumb

Post grammar anarchy

narchy, post grammar