[ Content | Sidebar ]

Archives for linux

Blurry Chinese Characters on Linux

For future reference, this fixes all woes: sudo apt-get install xfonts-wqy UPDATE: a much better solution is to install a pretty TTF font and then make all the characters bigger. sudo apt-get install fonts-wqy-zenhei fonts-wqy-microhei Then create a file ~/.config/fontconfig/fonts.conf with the following contents: <?xml version = "1.0"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <fontconfig> <match target="font"> […]

Best Feature

If you needed any convincing that Clementine is the best Linux music player since Amarok 1.4, here it is: Nyanalyser mode!

Conky BBC weather

I’ve written a Ruby script called bbc-weather.rb that parses the BBC weather RSS for a particular location and formats the data for conky. Here’s an example: To use it insert the following in your .conkyrc: ${execpi 600 ruby /path/to/bbc-weather.rb 4197} This will refresh every hour. Replace 4197 with the number of your local weather station. […]

Reducing DVD drive noise

Fan noise from CD/DVD drives can be very loud. It probably doesn’t matter if you’re just reading something off it but if you’re watching a DVD for example, it can get annoying. The fans are required in modern drives when the disc is spinning very fast – e.g. 16x – and by default it spins […]

Samsung Q320 Fn-keys in Linux 2.6.32

If you’ve been following my attempts to get the brightness up/down and other fn-keys on my Samsung Q320 laptop to work in Linux, you might like to know the saga has reached a happy conclusion. Previously I published a hack to the atkbd kernel driver to get these problematic keys to send key release events. […]

Getting GRUB2 to dual boot Debian and FreeBSD

Just installed FreeBSD 8 on a spare partition of my computer. Was planning to use the Debian-installed GRUB to boot it, but when I went to edit GRUB config files they had changed beyond recognition. GRUB 2, it seems, is very different to GRUB 1. For the benefit of anyone else who has a similar […]

Samsung Q320 Fn-key release hack update

Earlier I posted a hack to get the Linux kernel to send synthetic key release events for the Fn-keys on a Samsung Q320. But I forgot about actually submitting the patch to the kernel developers until today. However, it looks like this hack will be unnecessary as of 2.6.32: Hi Nick, On Sep 19, 2009, […]

Self-signed certificates on Nokia S40 phones

I’ve been having a problem for a while with my Nokia 6300 phone not accepting the self-signed SSL certificate I use on my IMAP server (dovecot). This is a bit annoying because I can’t read emails on my phone. Various Nokia forums suggest that you need to download the certificate over HTTP to install it. […]

Linux on a Samsung Q320: Part 7

Argh! Another problem! Over the last couple of days I’ve being trying to figure out why the brightness fn-keys on my laptop don’t seem to work: they either set the brightness to maximum-bright or maximum-dim. (Although they inexplicably sometimes work.) At first I thought it was a problem with my earlier HAL hackery, but this […]

Shutting down and rebooting via HAL

You know how GNOME/KDE have “shutdown” and “reboot” buttons that normal users can use to turn off the computer? Rather than using sudo or making /sbin/shutdown setuid, they use HAL which provides a nice power management interface. Turns out this is pretty easy to call from the command line so you can use it in […]