Linux

iBook G4 Upgrade to Ubuntu 10.04 LTS

Upgrading all the gear to the newest Ubuntu release also includes Apple’s iBook. It took some time, but was in the end straightforward. Only 2 issues are currently worth mentioning, one about chvt, the other about Gnome Keyring.

Reduce Kernel Messages in rsyslogd

In the standard rsyslog setup of Ubuntu a kernel message goes to 3 log files (syslog, messages and kern.log), i.e. running LOG targets in your firewall setup can really hog your /var/log volume.

I decided to simply discard the kernel messages after logging them to kern.log.

iBook running Ubuntu Karmic Koala

A few days ago I managed to connect a new power adapter to the iBook G4 to reanimate it after more than a year of deep freeze.

I soon realized that the installed MacOS is definitely out-of-date including many of the applications (e.g. Safari, Firefox, iPhoto).

Since an upgrade would not only cost money, but the latest MacOS is no longer available for this architecture, I downloaded the unofficial Ubuntu PPC release.

Special Characters in IMAP Folders

I was always wondering, why folders on an Exchange server, containing special characters in the name, show up that different in the IMAP protocol (e.g. using Mail::IMAPClient in Perl scripts).

But now I understand, this is just the result of the IMAP specification, that uses a modified UTF-7 encoding for non-ASCII characters (see RFC 2060, section 5.1.3).

If you ever need to automatically convert folder names into that modified UTF-7, the Perl module Encode::IMAPUTF7 may render useful.

monit as Fix for APC Back-UPS CS-500

To fix the recent failure of Network UPS Tools on my APC Back-UPS attached to Debian Etch, I used a pragmatic approach:

  • The problem with a missing or changing USB device is fixed by udev providing a static device name.
  • The 2nd problem with a crashing newhidups driver is solved by monit.

gzip or bzip2

Using bzip2 instead of gzip will sometimes save you valuable storage capacity.

Quite some time ago I already wrote a simple script to replace a gzip archive in case bzip2 compression is doing a better job.