Installing Trac with Mercurial on Ubuntu
This is a modified version of the Ubuntu-11.04-Subversion guide written for a 10.04.4/Lucid installation with Mercurial 2.3.
The goal of this tutorial is to demostrate how to setup a Mercurial ↔ Trac enviroment on Ubuntu 10.04. A MySQL database and Mercurial Python bindings are going to be used. Please note that only general instructions are provided, and it's asummed that you have basic knowledge on Linux administration.
Note: for a full installation tutorial on Trac, please read TracInstall
Installation Steps
Installing the software and its dependencies
Base packages
Make sure your system is updated.
sudo apt-get update sudo apt-get upgrade
In order to get Trac and Mercurial installed, you will need to get a few packages listed below.
sudo apt-get install apache2 libapache2-mod-python python-setuptools python-genshi mysql-server python-mysqldb
Mercurial
For this guide we will use a newer Mercurial than the one in the 10.04/Lucid repository. Mercurial 2.3 binaries can be found at Launchpad:
https://launchpad.net/~mercurial-ppa/+archive/releases/+packages
More specific for 10.04/Lucid:
32-bit: https://launchpad.net/~mercurial-ppa/+archive/releases/+files/mercurial_2.3-0ppa2%7Elucid1_i386.deb
Download the Common binary and either the 32- or 64-bit binary to the server.
Install the Mercurial packages by running:
sudo dpkg -i mercurial*.deb
Trac
The same goes for Trac, we want a newer version. Download the Trac 0.12.3 binary for Ubuntu:
https://launchpad.net/ubuntu/+source/trac/0.12.3-1/+build/3547374/+files/trac_0.12.3-1_all.deb
Install it with:
sudo dpkg -i trac*.deb
Progress indication, to be removed
To be continued… trac 0.12.x requires python 2.7 which is non-trivial to install on 10.04/Lucid.
Updates paused for now…