Version 2 (modified by 13 years ago) ( diff ) | ,
---|
Installing Trac with Subversion on Ubuntu
The goal of this tutorial is to demostrate how to setup a Subversion ↔ Trac enviroment on Ubuntu 11.04. A MySQL database and Subversion 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
In order to get Trac and Subversion installed, you will need to get a few packages listed below. Also, make sure your system is updated.
sudo apt-get install apache2 libapache2-mod-python python-setuptools python-genshi mysql-server python-mysqldb
Subversion
Installing Subversion (SVN) is pretty straight forward. Just run:
sudo apt-get install subversion
Trac
There are different ways of installing Trac. But since this tutorial is focused on Ubuntu, you'll do the Ubuntu way:
sudo apt-get install trac
Configuring
This part is maybe the most important section on this tutorial. You'll learn how to syncronize Trac and Subversion in order to be able to see on your Trac Project website what's going on in your repository and also how to automate some tasks.
Subversion
Creating the project
Hook scripts
Setup the MySQL database
Before installing Trac, you'll need to setup the MySQL database.
Log into MySQL database, using the root credentials you've setup during the installation:
mysql -u root -p
Once logged in, create the database for Trac:
CREATE DATABASE trac DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;
Now create the username which Trac is going to use to connect to the database:
GRANT ALL ON trac.* TO trac@localhost IDENTIFIED BY 'yourpassword';
You can now exit the MySQL command line.