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
Installing the software and its dependencies
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
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:
More specific for 10.04/Lucid:
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
The same goes for Trac, we want a newer version. Download the Trac 0.12.3 binary for Ubuntu:
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…