Jan 23, 2011

How to install Gajim nightly on Ubuntu Linux

So I wanted to run the latest Gajim and wondered if there was anyone kind enough to provide nightly builds of Gajim for Ubuntu or Debian distributions.

GajimRepositories, on the Gajim wiki, lists two repositories, one PPA for Ubuntu and one Debian repository. The PPA didn't seem to work when I tried it, the server was probably down, so here's how to add the Debian repository for Gajim nightly builds to your favourite Debian-based distro, Ubuntu Linux ;).
Before that, I just want to mention that there's another PPA on Launchpad for Ubuntu (gajim-ppa) but that one isn't as up to date. When I checked my revision number, it was only one rev behind, which is fairly up to date while at the same time you can take advantage of the package manager to maintain all necessary dependencies and system wide installation/removal.

First, become super user by running "sudo -i", then:
nano /etc/apt/sources.list.d/yann-leboulanger-gajim-nightly.list
Insert the following text in the new empty file:
deb ftp://ftp.gajim.org/debian unstable main
Now press Ctrl+X to exit and say Y (yes) when nano asks you if you want to save the file before you exit. If you update your package lists right now, apt will complain that the repository you just added doesn't have a GPG key on the server but it does refer to one. To get that key and add it to your trusted list, while you are still the super user, do:
gpg --keyserver pgp.mit.edu --recv-key 838BC5151E5526DE
gpg --export --armor 838BC5151E5526DE | apt-key add -
apt-get update
apt-cache search gajim
You will see all the gajim packages, including the new one, gajim-nightly. First remove the old gajim and then install the nightly:
apt-get remove gajim
apt-get autoremove
apt-get install gajim-nightly gajim-dev-keyring
That's all folks. Happy Jabbering! Thanks to Yann Leboulanger - main Gajim developer - for hosting and building the packages!