XFCE: Unable to perform shutdown

At some point during the Jaunty test cycle shutting down and rebooting the machine stopped working with the Action Buttons menu applet – It would fail with the message “Unable to perform shutdown” and some HAL-related messages. While annoying I didn’t put any real effort into solving the problem, until today. I didn’t have to look long though as the answer was in the Arch Linux forum. Open the file /etc/PolicyKit/PolicyKit....

May 5, 2009 · 1 min · alj

Fixing unknown locale in Python 2.6

The fix itself is the same as for Python 2.5 – only the line numbers have changed. Open the file /usr/lib/python2.6/locale.py and find the line containing en_gb (line 855) and add these lines (this works for Danish locales): 'en_dk': 'en_DK.ISO8859-1', 'en_dk.iso88591': 'en_DK.ISO8859-1', 'en_dk@euro': 'en_DK.ISO8859-15', In order to avoid this change getting overwritten by packages updates, I use dpkg-divert: $ sudo dpkg-divert --add --rename --divert /usr/lib/python2.6/locale.py.real /usr/lib/python2.6/locale.py $ sudo cp /usr/lib/python2....

March 25, 2009 · 1 min · alj

Running Windows applications on Linux with KVM and SeamlessRDP

Please go to the updated article. Since I wrote the post about running Windows applications on Linux with Sun xVM VirtualBox and SeamlessRDPI have been using the system almost daily to run some applications needed at work. It has been running well except for crashes in VirtualBox from time to time. Two new releases of VirtualBox has not fixed the problem.<p class="wp-caption-text"> Setting connection limit in Terminal Services </p> <p class="wp-caption-text"> Redirected local resource in RDP </p> ...

March 8, 2009 · 1 min · alj

Using hdapsd in Ubunty (Jaunty Jackalope)

One of the cool features in a Thinkpad is HDAPS or IBM Active Protection System as it’s called. The system consist of two parts. The driver that enables reading the acceleration data and some sort of userspace software that does the actual parking of the harddrive heads, usually hdapsd. The hdaps driver is part of the kernel but the driver maintainers actually recommend using the tp-smapi driver instead. So that’s what we’ll do....

February 17, 2009 · 2 min · alj

Pimpin' your Firefox

People often ask me “what’s that browser you’re using” or “how the hell did you make it look like that”. This article serves two purposes: answer these questions remind me what to do when Firefox frags the profile 😎 Theme Nothing special here but my GTK and xfwm themes are dark so Firefox is … dark. I know I am wasting some space on toolbars but I need them so I just have to live with them....

February 7, 2009 · 3 min · alj

Tip: Determining UUID of a LUN on Linux

Once in a while you need to identify a given LUN on your server (to delete it, move data, expand it or what ever). The easiest way is to use the UUID. If you use HP’s driver support pack you simply use the command lssd. lssd is a wrapper for scsi_info, both part of the fibreutils package. # lssd -w -l sda 4,0,2,19 HP HSV210 6100 5000-1fe1-5005-ee50 600508b400013133-0001100000740000 # scsi_info /dev/sda SCSI_ID="4,0,2,19":VENDOR="HP":MODEL="HSV210":FW_REV="6100":WWN="50001fe15005ee50":LUN="600508b400013133-0001100000740000" If you are on a non-HP machine use the command scsi_id (part of udev)...

January 26, 2009 · 1 min · alj

Pidgin: Unable to retrieve MSN address book

Apparently Microsoft have changed something that have caused Pidgin to be shut out. I’m not sure what the problem is but according to this ticket it’s a server side thing and limited to MSP15 clients. The quick fix is to switch to the Pecan Messenger protocol for Pidgin. It is available in Debian/Ubuntu as msn-pecan $ apt-get install msn-pecan if your distribution does not include this plugin or you are running Windows, get it from the download page...

January 12, 2009 · 1 min · alj

Tip: Building a cheap external DVD burner

Even though my laptop has an internal DVD burner I needed another because the internal one could not reliably burn dual layer discs. I could have just bought any USB-based burner but I asked around and the general consensus was that the best you can get is the Pioneer DVR-112 (an IDE burner). I did some further investigation and it turned out that DVR-212 is the same drive with SATA interface...

December 29, 2008 · 1 min · alj