Not enough free disk space for Ubuntu software updater

Sometimes the Ubuntu software updater finds it doesn’t have enough temporary space to download and apply updates – you get a message like this:


And even running the “sudo apt-get clean” doesn’t help.

Read More

Installing CyanogenMod Android 4.4.2 on Samsung Galaxy S4 Mini


These notes are based on the instructions at

Read More

Setting up PhoneGap on Ubuntu for Android app development

This is just some notes I made, mostly taken from

I was installing PhoneGap 3.0.0 on Ubuntu 12.04.

Read More

Copy to clipboard without the mouse using xclip

Another quick command line utility thing, this time to copy the contents of a file onto your clipboard without having to use the mouse (this is on Ubuntu, with the bash shell, incidentally).

First install xclip:

sudo apt-get install xclip

Read More

XDebug, PHP and Sublime Text 2 on Ubuntu 12.04

Getting Xdebug for PHP working with Sublime Text 2 is slightly tricky.

Most of the instructions are at – these notes are just a bit extra as a reminder to myself.

Read More

Enable trackpad coasting in Ubuntu 10.04

I like the way trackpad edge-scrolling allows you to “coast” (start scrolling with the edge of the trackpad, then release it, and the scrolling continues until you tap the trackpad again).

It’s not enabled by default on Ubuntu 10.04, but here’s how to turn it on (put it in a startup script):

xinput set-prop –type=float “AlpsPS/2 ALPS DualPoint TouchPad” “Synaptics Coasting Speed” 1

Installing Ruby Active Record on Ubuntu 10.04

I had to jump through a few hoops..

I tried the obvious “sudo gem install activerecord”, but it gave an error – it needs to install the i18n gem, but that needs rubygems version >= 1.3.6, and I had rubygems 1.3.5.

So I had to upgrade  rubygems first, which would normally be :

sudo gem update --system

but that reports that it’s been disabled on Debian, and directs you to use apt-get instead (which doesn’t have a better version). So I had to use the gem-updater gem:

sudo gem install rubygems-update
sudo update_rubygems
after which I had rubygems 1.3.7. Then I could get active record:
sudo gem install activerecord

I still needed to get the mysql gem installed, which in turn needed the libmysql-dev stuff installed

sudo apt-get install libmysqlclient15-dev
sudo gem install mysql

Ubuntu and CloudInit on Amazon EC2

Alestic and Canonical have released new Ubuntu AMIs for EC2 – the EBS version in the eu-west-1 region has AMI ID “ami-38bf954c”, and the source is “099720109477/ebs/ubuntu-images/ubuntu-lucid-10.04-i386-server-20100827″.

Ubuntu images support CloudInit, which runs scripts on startup to allow you to configure the server (set up ssh keys, update the repos etc). There’s a load of different ways to specify what should get run (see for full details).

One of the simplest is just to give it a script in the User Data, like this:

echo "Hello World.  The time is now $(date -R)!" | tee /root/output.txt

It runs as the root user, so you can do pretty much anything you want to configure the box.