Projekt trac@job2: Difference between revisions

From JoBaPedia
Jump to navigation Jump to search
 
(4 intermediate revisions by the same user not shown)
Line 3: Line 3:
* check [http://trac.edgewall.org/wiki/TracOnSuSE trac opensuse install documentation] for changes to below steps
* check [http://trac.edgewall.org/wiki/TracOnSuSE 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)
* prerequisites: opensuse 11.4 with apache2 and python (add module python in /etc/sysconfig/apache2 if not yet enabled)
* add [http://download.opensuse.org/repositories/devel:/tools:/scm/openSUSE_11.4/ trac buildservice repo] to yast  
* add [http://download.opensuse.org/repositories/devel:/tools:/scm/openSUSE_12.2/] as trac buildservice repo to yast  
* install trac (and python-setuptools if not dependency selected). I also installed trac-mercurial-plugin and trac-plugin-tocmacro
* install trac and optionally trac plugins. I also installed trac-mercurial-plugin and trac-plugin-tocmacro
* add "SVN_TRAC TRAC_MODPYTHON" to /etc/sysconfig/apache2 APACHE_SERVER_FLAGS
* add "SVN_TRAC TRAC_MODPYTHON" or "SVN_TRAC TRAC_CGI" to /etc/sysconfig/apache2 APACHE_SERVER_FLAGS
* restart apache2, check [http://localhost/trac 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
* change owner to apache user: chown -R wwwrun /srv/trac/TestProject
* edit /srv/trac/TestProject/conf/trac.ini (add a logo, enable hg support)
* restart apache2, check [http://localhost/trac 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]
  [header_logo]
  alt = Joachims Trac
  alt = Joachims Trac
  src = site/star.png
  src = site/star.png   (site is /srv/trac/TestProject/htdocs)


  [components]
  [components]
Line 19: Line 19:


* add a hg repo: trac-admin /srv/trac/TestProject repository add DB2_sys-auth /home/joachim/workspace/DB2_sys-auth hg
* 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!)
* 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
  mkdir /srv/trac/user_access
  htpasswd2 -c /srv/trac/user_access/passwdfile admin
  htpasswd2 -c /srv/trac/user_access/passwdfile admin
  htpasswd2 /srv/trac/user_access/passwdfile joachim
  htpasswd2 /srv/trac/user_access/passwdfile joachim
chown -R wwwrun /srv/trac/user_access
  trac-admin /srv/trac/TestProject permission add admin TRAC_ADMIN
  trac-admin /srv/trac/TestProject permission add admin TRAC_ADMIN


Line 31: Line 32:
  trac-admin /srv/trac/TestProject component add database joachim
  trac-admin /srv/trac/TestProject component add database joachim
  trac-admin /srv/trac/TestProject component add app-server jürgen
  trac-admin /srv/trac/TestProject component add app-server jürgen
* login as admin and check [http://localhost/trac/TestProject/admin the admin interface] for more customization (versions, logging, plugins ...)

Latest revision as of 13:51, 22 March 2013

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 ...)