Git: Installation eines eigenen Servers auf Basis von Ubuntu 9.10 (samt Trac)

Leider haben sowohl Posterous als auch Blogger mich dazu gezwungen, das Dokument nur im PDF-Format anbieten zu können, da sich beide System entweder an der Länge und/oder den Sonderzeichen im Text verschluckt haben.

Fragen und Kommentare bitte trotzdem in die Kommentare.

(download)

Loading mentions Retweet
Filed under  //   git   github   lighthouseapp   trac   ubuntu  

Comments [0]

Running trac-git on Ubuntu 9.04 Server

It took me around two hours to figure out, why Trac was always throwing the following error, when launched using tracd:

Warning: Can't synchronize with the repository (Unsupported version control system "git":
Can't find an appropriate component, maybe the corresponding plugin was not
enabled? ). Look in the Trac log for more information.

The Ubuntu package trac-git was perfectly installed and seemed to work fine. The real reason was that the Ubuntu package trac-git depends on python2.6, which obviously doesn't work with trac-git.

So I did an

aptitude install python2.5 && rm /usr/bin/python && ln -s /usr/bin/python2.5 /usr/bin/python

which did the trick. After that, tracd was able to use the trac plugin for Git.

If it still doesn't work make sure that you have at least the following lines in your project's trac.ini:

[components] 
# for plugin version 0.10
gitplugin.* = enabled

# for plugin version 0.11.0.1+
tracext.git.* = enabled

[git]
cached_repository = true
git_bin = /usr/bin/git
persistent_cache = true
shortrev_len = 7

[trac]
repository_dir = /path/to/git/repository.git
repository_type = git

If everything above is set a

tracd --port 8000 /var/trac/yourpath

should start tracd and make it available via port 8000 on your machine.

 

Loading mentions Retweet
Filed under  //   git   python   trac   ubuntu  

Comments [2]

About

This is the new centre of my digital life. Almost everything I commit to my personal Web 2.0 you'll find here. Please bookmark or subscribe to this place to stay in touch :-).

Follow me: http://twitter.com/ulfklose
Read my German-only blog: http://www.netzlogger.de/
See my tumble log: http://ulfklose.name
My Flickr galleries: http://flickr.com/photos/ulfklose