Upgrading Debian Etch to Lenny

Debian Etch has been serving me well for a few years with wonderfully easy and infrequent maintenance.

However it's at the end of its life

http://www.debian.org/News/2010/20100121

So I've upgraded to Lenny following these instructions

http://www.debian.org/releases/lenny/i386/release-notes/ch-upgrading.en....

It was remarkably painless

One small problem with the mail system.

Errors were encountered while processing:
exim4-config
imapproxy
exim4-base
exim4-daemon-light
courier-imap
at
bsd-mailx
courier-imap-ssl
mailx

Read more

Getting Calibre working on Debian Lenny

I recently bought a Sony e-reader, the main Linux package to support this is calibre but I found that it wouldn't automatically sync my ebooks.

 The FAQ says 

 "The linux kernel can export two version of SYSFS, one of which is deprecated."

Apparently Debian Lenny exports the deprecated version and you have to recompile the kernel to undo this.

Read more

Installing Lame on Debian

Debian has a very strict policy on free and legal software. This helps keep everyone honest, but sometimes a pragmatic approach is called for. MP3 is a file format that is patent encumbered - but also in universal use.

I could use the supplied Ogg Vorbis tools but then my music wouldn't work everywhere I want it to.

So I want to install Lame which is only available in source.

http://sourceforge.net/projects/lame/files/

Download and extract

Read more

Configuring WIFI with Debian

I've just installed Debian Lenny and generally am impressed with how well things are auto detected and configured - so much easier than a few years ago - and in many ways easier than a Windows install where you have to constantly find 3rd party drivers to get things working.

 However getting wifi running was a bit trickier (largely because of FCC regulations  affecting licenses and default settings).

This document got me most of the way

http://wiki.debian.org/iwlwifi

Additional lines in /etc/.network/interfaces

Read more

How to read compressed Apache docs

One of the great things about Debian/Ubuntu is the consistency with which system documentation is placed in /usr/share/doc/

Assuming you have a web server installed this documentation is then available at http://localhost/doc/

But to keep filesize down - many files are compressed and have to be decompressed before you can read them.

The browser can actually do that compression on the fly - if it receives the right headers - what it needs to be told is that the content is compressed plain text.

Read more

Aptitude Search

The basic search is:

aptitude search apache

Returns all packages that match

To search only for the installed versions

aptitude search ~iapache

To search for the packages that aren't installed

aptitude search \!\(~i\)apache2

Search Term reference

http://algebraicthunk.net/~dburrows/projects/aptitude/doc/en/ch02s03s05.html

Read more

APC Back-UPS CS 500Ei and Debian etch

Just got a new UPS and it’s working nicely :-)

Running on Debian Etch I had to upgrade the NUT package but this
worked very simply by bringing in the one from Lenny (in testing)

added to /etc/apt/sources.list
deb-src http://ftp.uk.debian.org/debian/ lenny main contrib non-free

then ran
apt-get build-dep nut

as normal user
apt-get source nut
cd to nut dir
dpkg-buildpackage -rfakeroot -uc -b

then as root installed the .deb created

Read more

Reconfiguring the X server on Debian

This is one of those tasks that I do infrequently and forget how it works…

I just got a nice big new monitor :-)

The command is

dpkg-reconfigure xserver-xfree86

But this will silently fail to update the XF86Config-4 file if the
file has been modified, if you read the file carefully you will see a
useful explanation - but I missed this.

Read more