Posted in Apache Debian/Ubuntu Howto Versioning

Howto : installing TRAC on Debian Etch

October 5, 2007 - 4 comments

Howto available here : http://www.wains.be/pub/howto/trac-debian.txt

This howto explains the steps from creating the SVN project to publishing it with TRAC.

Along with this howto, you can download a script that automates the process of creating the SVN repository and TRAC environment.
This script was made according to this howto and works under Debian. YOU SHOULD FIRST GO THROUGH THE HOWTO BEFORE USING THIS SCRIPT.

http://www.wains.be/pub/create_svntrac_project

Usage :

# create_svntrac_project.sh project_name (0|1)
project_name = NO space or special char
0 = SVN repository creation
1 = TRAC environment creation, SVN repository must exist and project must ALREADY BE imported

I like TRAC because it provides a nice diff viewer (among other things).

I tried ViewCVS from the stable repo but I had several issues (broken images, no color in the diff viewer, etc.)
I noticed in the code it was calling images from incorrect paths, etc.
Maybe I did something wrong, I don’t know..

Anyway, TRAC is far better !

Comments

Daniel Sturm

October 18, 2007 - 18:06

Thanks for providing this howto. After several tries this finally brought me to the point where everything works!

Thanks a lot!

dagobart

November 11, 2008 - 6:57

Thanks for your Howto.

Here are some suggestions of mine to push the script a bit further:

* Fix the TRAC permissions before you restarts apache (otherwise you’ll be exposed to the net with pants down for a few seconds).

* Why not cd first to the project directory, chmod -R from there, then?

* As parts of the script remain the same (e.g. find commands), one could set up a separate function for them.

Lillo

March 16, 2009 - 13:45

I think there is a bug in your script. The line

echo ” SetEnv TRAC_ENV “/home/trac/${PROJECT}”" >> ${APACHECONFIG}

should say:

echo ” SetEnv TRAC_ENV “${TRACDIR}/${PROJECT}”" >> ${APACHECONFIG}

Sébastien Wains

March 17, 2009 - 23:10

Fixed.. Thanks !

Leave Comment

Please consider visiting the partners below if you enjoyed this article :

If this post saved you time and money, please consider checking my Amazon wishlist.

Before submitting, some rules :
- Is your comment related to the article ?
- You're having a problem ? Have you checked Google, other howtos, docs, manpages ?
- You're still having the problem ? Have you raised log verbosity, checked traces, ran tcpdump ?
- Have you checked your configuratoin for typo ?
Unless your comment is providing additional info or respect the rules above, DON'T comment.
If you don't understand what you are doing, I urge you to read the documentation, I'm not your free Level 1 helpdesk guy.