John Leach

Category: Ubuntu

Booting Thinkpad firmware updater from a USB key

Created · Tech, Ubuntu · 8 comments

I have a Lenovo Thinkpad T431s running Ubuntu. For those of us not running Windows, Lenovo provide a bootable CD image for their firmware updates. The Thinkpad T431s does not have a CD drive and the ISOs Lenovo provide will not boot from a USB key.

It's trivial to provide images that can boot from a USB key, but Lenovo instead just assume you have an external USB drive because they're dickheads; or incompetent. Or both. Let's assume both!

Continue reading “Booting Thinkpad firmware updater from a USB key” →

Reliable rake task execution

Created · Last updated · Debian, Ruby on Rails, Tech, Ubuntu · 3 comments

My News Sniffer project needs to regularly do some back-end stuff like checking a bunch of rss feeds and downloading web pages. I do this with some rake tasks, which I call using the cron daemon.  Recently I've been having problems where some tasks take a bit longer than usual to complete and end up running in parallel. This slows things down, which means more tasks end up running in parallel and then my little virtual machine eventually falls on it's face under memory pressure.

I could implement some locking in my application, but it's always good to avoid as much new code as possible so, in the good old *NIX fashion, I cobbled together a short bash script taking advantage of existing tools. What this does is executes the given rake task in the given rails root using the Debian/Ubuntu tool start-stop-daemon (provided by the dpkg package, which is therefore always installed). start-stop-daemon uses a pid file to keep track of the rake program for the given task, so it will never run a second concurrent instance of rake for this task. Cron just keeps trying to run it every 5 minutes or whatever, but it only runs once concurrently.

Continue reading “Reliable rake task execution” →

Xen on Ubuntu Edgy broken - Debian to the rescue

Created · Last updated · Debian, GNU/Linux, Tech, Ubuntu

Xen LogoI found a great HOWTO on getting a Xen virtual machine up and running on Ubuntu Edgy. Unfortunately, Xen is pretty broken on Edgy. I managed to get one virtual machine running easily but on starting a second one, Dom0 panics and the whole box freezes. It's been reported on launchpad but as it's in universe I guess it's just not a priority.

Continue reading “Xen on Ubuntu Edgy broken - Debian to the rescue” →

Encrypted partitions with Ubuntu/Debian

Created · Last updated · GNU/Linux, Security, Tech, Ubuntu · 16 comments

I figured out how to set up an encrypted partition on Ubuntu the other day. There are a bunch of ways of doing it but I found this to be the simplest. It should work on Debian too, since all the relevant packages are Debian ones anyway. In my example I'm encrypting an LVM partition (logical volume), but it should work with any device, including removable USB keys (see end notes). UPDATE: This is broken in Edgy but I figured out a simple fix, see below.

Continue reading “Encrypted partitions with Ubuntu/Debian” →

IPSEC VPN problems upgrading to Ubuntu Edgy

Created · Last updated · GNU/Linux, Networks and Firewalls, Tech, Ubuntu · 1 comment

I upgraded my home gateway firewall to Edgy today in the hope of fixing some SATA problems I've been experiencing. The new Edgy kernel might help - we'll see.

Anyway, it went pretty well. Two runs (?) of apt-get dist-upgrade -u, a reboot and there I was.

Unfortunately I had two problems with my Openswan IPSEC VPNs. I'm not so sure if these count as bugs. I'll be investigating further and reporting if so. Anyway, techie details follow...

Continue reading “IPSEC VPN problems upgrading to Ubuntu Edgy” →

Epiphany and Firefox Dapper packages for Breezy

Created · Last updated · Tech, Ubuntu · 3 comments

I've built Ubuntu Dapper Epiphany 1.9 and Firefox 1.4.99 packages for Ubuntu Breezy. I've also enabled the Epiphany Adblock extension which seems to work fine. You can't specify your own advert signatures with a GUI yet (afaikt) but the built-in database seems to cover most bases.

I've only built for i386 as that's all I need it for right now. Tbh, it's really not that difficult to build you own, but here they are anyway:
UPDATE: I've setup an apt repository for all this nonsense.

Continue reading “Epiphany and Firefox Dapper packages for Breezy” →

Hula calendar and mail server proprietaryness

Created · Last updated · Tech, Ubuntu

I played with Hula a few weeks ago. I really didn't spend very long with it, but managed to get it working on Ubuntu Breezy and connected to it with Evolution IMAP client. A big fat tip if you're planning on having a go with it: don't use the official Ubuntu packages. The ones I used were old and really sucked; I got nowhere with them. There are packages for Debian on the Hula site that worked well for me.

Continue reading “Hula calendar and mail server proprietaryness” →

Xorg xserver $HOME/xorg.conf

Created · Last updated · Tech, Ubuntu · 1 comment

It turns out that xorg will use $HOME/xorg.conf if it finds it, rather than the default in /etc/X11/xorg.conf.

I didn't know this, and didn't notice that it was telling me this in the logs. I've now wasted a bunch of time troubleshooting a font problem on Ubuntu where xorg couldn't find my fonts and I was working from the WRONG CONFIG FILE. AGH!

Continue reading “Xorg xserver $HOME/xorg.conf” →