Edgewall Software
Home
Trac
Trac Hacks
Genshi
Babel
Bitten
Home
Download
Documentation
Mailing Lists
License
FAQ
Search:
Login
Preferences
Help/Guide
About Trac
Wiki
Timeline
Roadmap
Browse Source
View Tickets
New Ticket
Search
Context Navigation
+0
Start Page
Index
History
Editing Ubuntu-11.04-Subversion
Adjust edit area height:
8
12
16
20
24
28
32
36
40
Edit side-by-side
= 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 [[PageOutline(2-3,Installation Steps,inline)]] == 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. === Trac === ==== Initiate the enviroment ==== Explicit syncronization ==== ===== Automatic reference to the SVN changesets in Trac tickets ===== === Apache === ==== Set up Trac handling ==== ==== Authentication ==== == Workflow examples ==
Note:
See
WikiFormatting
and
TracWiki
for help on editing wiki content.
Change information
Your email or username:
E-mail address and name can be saved in the
Preferences
Comment about this change (optional):
Note:
See
TracWiki
for help on using the wiki.