Edgewall Software

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

  1. Installing the software and its dependencies
    1. Base packages
    2. Mercurial
    3. Trac

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


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:

Common: https://launchpad.net/~mercurial-ppa/+archive/releases/+files/mercurial-common_2.3-0ppa2%7Elucid1_all.deb

64-bit: https://launchpad.net/~mercurial-ppa/+archive/releases/+files/mercurial_2.3-0ppa2%7Elucid1_amd64.deb

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


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…

Last modified 5 years ago Last modified on Aug 31, 2012, 2:14:22 PM
Note: See TracWiki for help on using the wiki.