trac -

Trac is an enhanced wiki and issue tracking system for software development projects. Trac uses a minimalistic approach to web-based software project management. Our mission; to help developers write great software while staying out of the way. Trac should impose as little as possible on a team’s established development process and policies.

安裝於 Debian

  • 安裝:

sudo apt-get install trac libapache2-svn libapache2-mod-python

  • 設定 Subversion:

mkdir -p /svn/

svnadmin create /svn/

chown -R www-data.www-data /svn/

編輯 /etc/apache2/mods-available/dav_svn.conf:

DAV svn

SVNPath /svn

SVNAutoVersioning On

AuthType Basic

AuthName "Subversion Repository"

AuthUserFile /etc/apache2/svn.passwd

AuthzSVNAccessFile /etc/apache2/svn.authz

Require valid-user



htpasswd -c -m /etc/apache2/svn.passwd thomas

chown www-data /etc/apache2/svn.passwd

chmod 600 /etc/apache2/svn.passwd



thomas = rw

  • = r


thomas = rw

  • =


chown www-data /etc/apache2/svn.authz

chmod 600 /etc/apache2/svn.authz

svn import: 採用 macblog 之範例,不熟的人需要學習SVN

tar jxvf gcin-1.2.1.tar.bz2

mv gcin-1.2.1 gcin

svn import gcin http://ibook/svn/gcin/trunk -m "initial import for gcin-1.2.1" --username candyz

svn mkdir http://ibook/svn/gcin/tags -m "mkdir tags" --username candyz

svn mkdir http://ibook/svn/gcin/branches -m "mkdir branches" --username candyz

svn copy http://ibook/svn/gcin/trunk http://ibook/svn/gcin/tags/release-1.2.1 -m "Tagging the 1.2.1 release of gcin project." --username candyz

svn checkout http://ibook/svn/gcin/trunk gcin --username candyz

tar jxvf gcin-test.tbz

cp -a gcin-1.2.2/* gcin/

cd gcin

svn status

svn add config.h eggtrayicon.c tray.c eggtrayicon.h gcin-tray.png trad2sim gcin-tray-sim.png

svn commit -m "update to 1.2.2 preview version"

svn status

svn up

  • 建立 Trac Environment:

mkdir -p /trac

trac-admin /trac initenv

chown -R www-data.www-data /trac

  • apache2 的設定:

編輯 /etc/apache2/sites-available/default 加在 </VirtualHost> 之前即可:

SetHandler mod_python

PythonHandler trac.web.modpython_frontend

PythonOption TracEnv /trac

PythonOption TracUriRoot /trac

AuthType Basic

AuthName "trac"

AuthUserFile /etc/apache2/svn.passwd

Require valid-user

restart apache2:

sudo /etc/init.d/apache2 restart


trac-admin trac permission remove anonymous WIKI_CREATE

trac-admin trac permission remove anonymous WIKI_MODIFY

trac-admin trac permission add thomas TRAC_ADMIN

convert from Thomas blog post id 131 old convert log: ./175421/tag%3E2007%2007%20linux)

@2007 @07 @linux