Friday, 16 December 2011

In this blog post I am going to explain about how to install 'trac' on linux. 'trac' is a nice project management tool which is written in python, that can be used to track your projects. And it is open-source :D (Win)

I am using 'trac' with 'git' revision control system, for my project. In my next blog post I will be explain how to use 'trac' along with 'git', using the 'GitPlugin'

Ok, now if you follow the following instructions hopefully you will have a working 'trac' site.

Install 'trac'

Make sure you have the latest version of python installed, otherwise apt will install an older version of 'trac'

sudo apt-get install python python-babel trac

Yes, apt may ask you to install few dependencies including apache2. So please install all of them.

'trac' uses SQLite as its default data store. So if you have not already got it installed. Then do the following

sudo apt-get install sqlite3

It is possible to get 'trac' working with other database systems. If you are interested, click on the following URL.http://trac.edgewall.org/

Upgrade python packages

There are two ways you can do this

With easy_install

easy_install Babel
easy_install Trac

or

With 'pip'

pip install --upgrade Babel
pip install --upgrade Trac

If you have not got pip installed, install pip as follows. Please skip this step if you were successfully able to do the previous step.

sudo apt-get install python-pip

Now you have successfully installed all the software that you need to run 'trac'.

Configuration

Change the directory locations as desired.

Create a directory for 'trac'
Then change it's access permissions.

sudo mkdir -p /var/local/trac && chown www-data: /var/local/trac

Initialise the 'trac' environment

sudo trac-admin /var/local/trac initenv

Now create the configuration file using your favourite text editor. I use emacs.