Pages

October 12, 2012

Getting the DWA-125 Wireless Dongle to Work in CentOS 5.8

I use an old IBM Thinkpad X32 which doesn't come with a built-in wireless networking card. Fortunately, I still have my D-Link DWA-125 wireless USB adapter lying around. I used this on a previous computer before and it didn't let me down. I was hoping that this time around, it wouldn't let me down either; and I can say that it didn't as I am typing this post using the successful setup of a wireless connection. This time around, I am using CentOS 5.8 as my operating system. Here's how I got it working.

July 2, 2011

Beautifying Xterm via .Xresources

Xterm is the default terminal emulator of the X Window System. And its default state is very, well, default. It is usable but, IMO, it's not very pleasing to the eyes. For a lack of a better word, it looks bland.

Behold Xterm in all its default glory!

Some might say why fuss around with the terminal when clearly there are GUI tools available. I believe that doing some things via the command line are faster.

I will be using .Xresources file to do the configuration of Xterm. It's just a text file located at your home directory so doing a nano ~/.Xresources will create it there. You only then need to edit it with your configuration (of course, you can replace nano with your editor of choice).

Here's my .Xresources file:

! xterm ----------------------------------------------------------------------

xterm*geometry:           80x25
xterm*faceName:           droid sans mono:regular:pixelsize=14
!xterm*font:             -*-dina-medium-r-*-*-16-*-*-*-*-*-*-*
xterm*foreground:         white
xterm*background:         RosyBrown1
xterm*dynamicColors:      true
xterm*utf8:               2
xterm*eightBitInput:      true
xterm*saveLines:          512
xterm*scrollTtyKeypress:  true
xterm*scrollTtyOutput:    false
xterm*scrollBar:          true
xterm*rightScrollBar:     true
xterm*jumpScroll:         true
xterm*multiScroll:        true
xterm*toolBar:            false

If you may notice, I used the Droid Sans Mono font and the RosyBrown1 background. Of course you can change these settings to your liking. Note that the .Xresources does not only cater to Xterm but many more X-applications as well. If you are using Arch Linux, like me, then you can start reading this wiki.

Oh, if you are not using a desktop environment (I'm only using a window manager, Openbox), you may need to add the command xrdb -merge ~/.Xresources to your .xinitrc file.

Here's my "beautified" Xterm:

PIIIIIIIINK!!! Xterm

Happy configuring!

June 7, 2011

Getting the DWA 125 Wireless Dongle to Work in Ubuntu 10.04 LTS

I have a laptop with networking interfaces eth0 (Atheros AR8152) and wlan0 (Broadcom 4727) which are not supported by the kernel version of 10.04 LTS (2.6.32-21-generic). I needed a kernel version 2.6.37 or higher to get these 2 interfaces working. But since I had no Internet connection, the best way, based on the answer(s) to my query, was to download the kernel manually from http://packages.ubuntu.com and install it in it's binary (.deb) format. When I tried searching for them in the package site, I saw that these linux-generic or linux-*-generic files had multiple dependencies so I thought twice of installing them this way. Dependencies is actually one of the top reason why I get freaked out about installing Linux distros without an Internet connection.