- GPL wins in Skype case
- TorrentSpy Won't Pay $111 Million Fine
- MPAA Demands $15 Million from The Pirate Bay
- First look: OpenOffice.org 3.0 beta a big step forward
- Parental Fail
- OpenOffice.org 3.0 Beta Released!
- Comic for May 8, 2008
- Books On Electronics For the Lay Programmer?
- Possible Storm in a Miniature Tea Cup
- What can you do with a second Ethernet port?
- Dive Fail
- 6 Excellent Firefox Extensions Made To Save You Time
- Scoble Sellout Part Three? - Twitter Adverts
- What To Do With Failed Startup IP?
- 14 Old-Timey Smoking Accessories that Nobody Should Own
- Here’s A Hosting Provider You’ll Probably Want To Avoid
- James Tauber: Reusable Django Apps And Introducing Tabula Rasa
- Google Reader Gets More Social: Now With Notes
- Allen & Co. Pitching LinkedIn At $1 Billion
- Citi’s Mahaney Says Microsoft/Yahoo Merger Still 15% Likely
trac 0.11b2 installed and running within $HOME
Submitted by rene on Wed, 03/26/2008 - 20:40.
Installing applications and libraries on systems from source isnt a very pleasant experience especially when you want the very latest version of a particular application.
Back in the day it was accepted and common practice to install the libraries your application depended on plus the application from source by running './configure && make install' and hope for the best. You'd consider yourself lucky if your applications Makefile supported PREFIX= so you could use PREFIX=/opt or PREFIX=/usr/local.
Enough of that.. thank you.
Below is how ive been able to install trac with confining everything within a users $HOME directory on a debian etch system running python 2.4.
Prepare your new $PYTHONPATH and install easy_install
$ mkdir -p ~/lib/python2.4/site-packages $ export PYTHONPATH=~/lib/python2.4/site-packages:$PYTHONPATH $ mkdir ~/bin $ mkdir -p ~/src/easy_install $ cd ~/src/easy_install $ wget http://peak.telecommunity.com/dist/ez_setup.py $ python ez_setup.py --prefix ~/Add ~/bin to your path
$ export PATH=~/bin:$PATHInstall trac and related libraries
$ sudo apt-get install python-pygments python-genshi \
python-pysqlite1.1 python-subversion \
python-setuptools
$ easy_install --prefix ~/ Trac
Setup a subversion repository
$ mkdir -p ~/var/repos/svn $ svnadmin create ~/var/repos/svnAt this stage you should be right to create a trac project
$ mkdir -p ~/var/repos/trac $ trac-admin ~/var/repos/trac/my-project initenvUse /home/$USERNAME/var/repos/svn for the path to the svn repository. Substitute $USERNAME. You can run the tracd daemon to view an instance of my-project within trac
$ tracd --port 8000 ~/var/repos/trac/my-projectOr you can use modpython and hook trac into Apache. The following apache virtualhost configuration file should get you there
<VirtualHost *:80>
ServerName $TRAC_HOSTNAME
<Location "/">
SetHandler mod_python
PythonHandler trac.web.modpython_frontend
PythonInterpreter main_interpreter
PythonPath "sys.path + ['/home/$USERNAME/lib/python2.4/site-packages/Trac-0.11b2-py2.4.egg/']"
PythonOption TracEnv /home/$USERNAME/var/repos/trac/my-project
PythonDebug On
</Location>
<Location "/login">
LoadModule auth_digest_module /usr/lib/apache2/modules/mod_auth_digest.so
AuthType Digest
AuthName "trac"
AuthDigestDomain /trac
AuthUserFile /home/$USERNAME/var/repos/trac/trac.htpasswd
Require valid-user
</Location>
ErrorLog /home/$USERNAME/var/log/apache2/$TRAC_HOSTNAME.error.log
CustomLog /home/$USERNAME/var/log/apache2/$TRAC_HOSTNAME.access.log combined
</VirtualHost>
Dont forget to setup your htpasswd, create your log directories and make the trac repository writable by the system user running apache. Also substitute $USERNAME with your username and $TRAC_HOSTNAME with your servers hostname.
$ mkdir -p ~/var/log/apache2/ $ sudo chown -R www-data: ~$USERNAME/var/repos/trac/my-project $ htdigest -c ~/var/repos/trac/trac.htpasswd trac adminIf ive missed anything i apologise.. my head hurts.






















Post new comment