ubuntu

01 Nov

Open Source Drama

Published by will

I've had a few dramas with the Open-source software we use at work, and I need to have a slight rant to get some things off my chest.

Our boxes run the long-term support releases of Ubuntu server edition - which has to date been a solid and reliable baseline.

libstdc++5

The biggest drama is that the latest LTS version of Ubuntu (Lucid) does not provide libstdc++5. Apparently the package maintainers for gcc-3.3 decided it was too old to continue supporting (not unreasonable). What they didn't realise (or rather, didn't care about) was that it was the last release to support glibc v2.

Unfortunately nobody picked up on this until after the feature-freeze and release of Lucid, which means that a whole swag of commercial third party applications that have to target wide install bases (including RHEL, etc) - will no longer run on Lucid, which we're stuck with for the next few years.

This isn't such a big deal, except for the fact that this includes MySQL Enterprise - the big important database boxes on our network.

12 Jul

Encrypting Casper Persistence

Published by will

After finally getting a basic, but not-so-straightforward usb key running with the Ubuntu livecd environment (read more here), the next step was to set up encryption on the persistence partition.

This is actually pretty straightforward, given that modernish distributions have inbuilt LUKS support which lets you (amongst other things), easily access encrypted devices.

First thing is first, we'll use the partition on the usb key to create an empty encrypted partition. Because we want to specifically set the partition label, we can't use the helpful luksformat script, instead we take three easy steps:

Create the encrypted block store:
cryptsetup create NAME /dev/sdXN

Open the block store
cryptsetup luksOpen NAME /dev/sdXN

Create filesystem
mkfs -L casper-rw /dev/mapper/NAME

All done! Well, almost. Because the filesystem label lives inside of the encrypted block store - the LiveCD isn't gong to try to mount it or unlock it, and because the casper scripts only use partitions it can see - we won't have a very happy livecd.

10 Jul

Live Linux USBKey

Published by will

For a while now I've been wanting to put together a system-on-disk, a USB stick I can use on the road which gives me a comfortable linux desktop with all the apps I might need.

It turns out that the Ubuntu Desktop LiveCDs already have a nifty persistent mode, where it will save any filesystem changes to a seperate partition with the label 'casper-rw'. That's great, and a lot of the work out of the way towards getting the project done.

There are a few guides out there for getting this going on a USB key, most notably on the PenDriveLinux website. Following this guide is pretty straightforward, and can get you up and running in no time.

Unless of course, you run certain Phoenix-based BIOS firmwares on your computer. My work Dell (the primary use for this project) runs such a BIOS, and misreports the device IDs for bootable USB keys. The good fellows who put together Syslinux have a patch in place, so if you use the latest Syslinux (newer than that which is available in Ubuntu 10.04) this is supposed to fix it.

Tags 

technology, ubuntu

Pages