Projekt trac@job2
Jump to navigation
Jump to search
Install and Setup Trac Test Installation on my Notebook
- check trac opensuse install documentation for changes to below steps
- prerequisites: opensuse 11.4 with apache2 and python (add module python in /etc/sysconfig/apache2 if not yet enabled)
- add [1] as trac buildservice repo to yast
- install trac and optionally trac plugins. I also installed trac-mercurial-plugin and trac-plugin-tocmacro
- add "SVN_TRAC TRAC_MODPYTHON" or "SVN_TRAC TRAC_CGI" to /etc/sysconfig/apache2 APACHE_SERVER_FLAGS
- change owner to apache user: chown -R wwwrun /srv/trac/TestProject
- restart apache2, check trac url. Should display "Available Projects", May hint on migration tasks for existing old projects
- Create a trac project with trac-admin /srv/trac/TestProject initenv if needed
- edit /srv/trac/TestProject/conf/trac.ini (add a logo, enable hg support):
[header_logo] alt = Joachims Trac src = site/star.png (site is /srv/trac/TestProject/htdocs)
[components] tracext.hg.* = enabled
- add a hg repo: trac-admin /srv/trac/TestProject repository add DB2_sys-auth /home/joachim/workspace/DB2_sys-auth hg
- create users and add permisions (done like this with basic authentication is unsafe unless https is used!). NOTE: there is a admin module available for this now (V1.0). Not tried that yet
mkdir /srv/trac/user_access htpasswd2 -c /srv/trac/user_access/passwdfile admin htpasswd2 /srv/trac/user_access/passwdfile joachim chown -R wwwrun /srv/trac/user_access trac-admin /srv/trac/TestProject permission add admin TRAC_ADMIN
- add desired components for tickets
trac-admin /srv/trac/TestProject component list trac-admin /srv/trac/TestProject component remove component1 trac-admin /srv/trac/TestProject component remove component2 trac-admin /srv/trac/TestProject component add database joachim trac-admin /srv/trac/TestProject component add app-server jürgen
- login as admin and check the admin interface for more customization (versions, logging, plugins ...)