Projekt trac@job2

From JoBaPedia
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 trac buildservice repo to yast
  • install trac (and python-setuptools if not dependency selected). I also installed trac-mercurial-plugin and trac-plugin-tocmacro
  • add "SVN_TRAC TRAC_MODPYTHON" to /etc/sysconfig/apache2 APACHE_SERVER_FLAGS
  • restart apache2, check trac url. Should display "Available Projects"
  • Create a trac project with trac-admin /srv/trac/TestProject initenv
  • change owner to apache user: chown -R wwwrun /srv/trac/TestProject
  • edit /srv/trac/TestProject/conf/trac.ini (add a logo, enable hg support)
[header_logo]
alt = Joachims Trac
src = site/star.png
[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 (this is unsafe unless https is used!)
mkdir /srv/trac/user_access
htpasswd2 -c /srv/trac/user_access/passwdfile admin
htpasswd2 /srv/trac/user_access/passwdfile joachim
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