Hibernate that doesn’t – Ubuntu 10.04

Last night I tried putting my Ubuntu 10.04 into hibernation. When that failed (apparently my system doesn’t support it) I was left with a machine in limbo, so the power button was all that could save me. This morning I turned the machine on to find no network connectivity, “Network manager disabled” was the friendly greeting – with no apparent way to enable it.

Here’s the solution:
sudo service network-manager stop
sudo rm /var/lib/NetworkManager/NetworkManager.state

sudo service network-manager start

There are posts in forums all over the place about this. It seems silly behaviour, why not just restart it on boot?

Linux desktop managers have come a long way in their time, but it’s behaviour like this that sets them back just as far.

How to install Sun Java 1.5 on Ubuntu 10.04

I recently had to do some work on Sakai 2.4 but was having trouble building and running it in Java 1.6. This gave me the chance to blow away and re-install an old PC I had lying around, with the latest version of Ubuntu (10.04). However, with the default software source repositories, it only supports Java 1.6 (and prefers OpenJDK too). Here’s how to get Sun Java 1.5 installed on Ubuntu 10.04:

Add the following to /etc/apt/sources.list:

deb http://us.archive.ubuntu.com/ubuntu/ jaunty-updates multiverse

Update the package list:

sudo apt-get update

Install Sun Java 1.5:

sudo apt-get install sun-java5-jdk

Depending on your setup you might need to set this as the default. Check what version is default:

java -version

And list all Java versions installed:

sudo update-java-alternatives -l

Then if necessary:

sudo update-java-alternatives -s java-1.5.0-sun

If you want to get Sun Java 1.6 installed, instead of OpenJDK, just enable the partner repositories in the Package Manager > Software Sources and it will show up in the list for you to install.

Profile2 new feature: Kudos

I am very pleased to announce the inclusion in Profile2 of a kudos ranking system.

Your kudos rank is calculated based on weightings for various parts of profile completeness and usage. The more complete your profile is (having an image, filling out various fields etc), the higher your score. Likewise the more you use Profile2 (sending messages, adding connections etc), the higher your score.

This adds a widget to your Profile to show your kudos:






as well as a Preference pane to control it:



This is available now in trunk, and in the upcoming 1.4 release.

I’m now a Sakai kernel committer

I woke to some very pleasing news this morning – I have been accepted as a Sakai kernel committer! I have attached a number of patches and enhancements to various Sakai JIRA tickets in the past, but now it’s great that I can push ahead in helping make Sakai even better! I’ll be announcing new additions to the mailing lists (sakai-dev@collab.sakaiproject.org) so make sure you check the lists.

Much kudos to the Kernel team!