This is the archive for March 2006. Recent posts can be found at the main blog page.

Temporary files on Debian

Debian (and derived distributions such as Ubuntu) automatically cleans the /tmp directory on boot. In my opinion, this is basically a good thing. However, I’m a laptop user and it’s not uncommon to boot several times a day if you’re travelling around, so to keep my temporary files across reboots I have to save them elsewhere. This of course has the problem that you never get around to removing your old ‘temporary’ files…

Luckily, I’ve found a solution that comes standard with any Debian system. Snippet from /etc/default/rcS:

# Time files in /tmp are kept in days.
TMPTIME=7

So, the system keeps my temporary files (like PDF files opened from a browser) for a week, and then they are purged automatically on boot.

Muine notifications

I’ve added support for notification bubbles (using libnotify) to Muine, showing some information when the currently playing song changes.

Muine notifications

Click for a larger image

If you want to give it a shot, get the patch from bugzilla and see it in action!

Update: it seems Mandriva is shipping my patch!

Make up your mind

GNU Make is a really great tool to automate repeating tasks when you’re working on a project. I’m not only using Make to compile sofware (duh!), but also to do other things: