In recent weeks I've gone on a major binge of installing Debian Linux. In the last few months have seen a lot of new environments appear in my setup. I've acquired a new desktop machine which I installed Windows XP on, a Powerbook laptop with MacOS X, and a new work laptop with windows XP. All of these involve various amounts of work, even my work laptop, which came with a ThoughtWorks configured Windows XP already on it, needed work to install the various applications that I use in my work.

The Debian part of the this saga is twofold. Firstly switching my Linux basement server from RedHat to Debian, and secondly adding a Debian desktop to my primary desktop machine.

The server part always is the most tense, because I really do like servers to just work. It's an old box (I got it about six years ago) but works well primarily a file server (smb and cvs) and a music server (Slimp3). The OS on the server is old (RedHat 7.2) basically because upgrading is such a pain that I didn't do it. I picked Debian because they don't upgrade very often and have a reputation for being very conservative with their stable distribution.

Of course the install process for Debian is famously awful, but the good thing about a server is that you don't have to deal with X, which does a great deal to remove the pain of the process. It still turned out to be rather involved. Although Debian installed fine on the machine, it didn't properly recognize the shiny new 250G hard drive I decided to stick in it. To do that needed a new version of the kernel, one that was just a rev higher than what was available as a package. I thus had the joy of a kernel recompile. I'd not done this before, so this wasn't likely to decrease my stress level, but thanks to this and this, I coped.

Once things were installed, I busied myself with getting things that were working under RedHat working under Debian. The bottom line is that if the application is properly supported under Debian's package management system (apt-get), everything is so easy it feels like cheating. The complications arise when either the packages aren't available with apt-get (Java), or the apt-get packages aren't quite up to date (rexml). Even then it's no worse than any other unix, it's just that it feels so much worse because it isn't done with apt-get.

The desktop system was rather less fraught, but still involved a fair bit of trial and error. I'd actually been using a Debian desktop system for a couple months on my old desktop machine. Once I got my new laptop I felt it was time to configure Debian as an alternative boot on my primary (and much faster) desktop machine. My number one tip for playing with Debian desktop systems is don't use the official installer – not even the brand new one developed for Debian Sarge. The Sarge installer is good as far as it goes, but it doesn't go far enough to include configuring X – and configuring X is a horror which involves the installer asking you a bevy of questions that I don't even understand, let alone answer. The contrast between setting up Windows on a new desktop and getting X to go can't get more stark.

Fortunately you can dodge this pain by using Knoppix, or one of its customizations. My previous experimental desktop had used Morphix Lite GUI, a Knoppix customization with a lightweight UI that runs better on older machines. For my new machine I wanted something more powerful, KDE or Gnome. As it turned out this was rather messier than I hoped. While the installs went without incident, three times the system was hosed during the apt-get upgrade. On two of those the boot record was broken and I had to reboot and reinstall from the live CD. I eventually managed to get a working and up to date KDE desktop, but without google and some educated guessing I would have been stuck.

All in all I can say that while the Knoppix-like installs help, it still was not a straightforward process. I haven't had the time yet to work with KDE to see if I like it. Other distributions are probably much easier, certainly the RedHat 9 install was easier, but still caught me out on the upgrades.  [Martin Fowler's Bliki]

Leave a comment