第 172 章 TRAC

172.1. Ubuntu 安装

172.1.1. source code

过程 172.1. TRAC - source

  1. setup.py

    wget http://peak.telecommunity.com/dist/ez_setup.py
    python ez_setup.py
    					
  2. Trac

    wget http://download.edgewall.org/trac/Trac-1.1.1.tar.gz
    tar zxvf Trac-1.1.1.tar.gz
    cd Trac-1.1.1
    sudo python ./setup.py install
    cd ..
    					
172.1.2. easy_install

过程 172.2. TRAC - easy_install

  1. easy_install

    $ sudo apt-get install python-setuptools
    					
  2. Installing Trac

    sudo easy_install Pygments
    sudo easy_install Genshi
    sudo easy_install Trac
    					

    ClearSilver

    sudo apt-get install python-clearsilver
    					

    python svn

     sudo apt-get install python-svn python-svn-dbg
    					

    create svn repos

    $ svnadmin create /home/netkiller/repos
    					
172.1.3. Apache httpd
			
# cat /etc/httpd/conf.d/trac.conf
<VirtualHost *:80>
  # Change this to the domain which points to your host, i.e. the domain
  # you set as "phabricator.base-uri".
  ServerName trac.repo

  <Location />
    SetHandler mod_python
    PythonInterpreter main_interpreter
    PythonHandler trac.web.modpython_frontend
    PythonOption TracEnv /gitroot/trac/default
    PythonOption TracUriRoot /
  </Location>
# Replace all occurrences of /srv/trac with your trac root below
# and uncomment the respective SetEnv and PythonOption directives.
#  <LocationMatch /cgi-bin/trac\.f?cgi>
#	SetEnv TRAC_ENV /srv/trac
#  </LocationMatch>
#  <IfModule mod_python.c>
#    <Location /cgi-bin/trac.cgi>
#      SetHandler mod_python
#      PythonHandler trac.web.modpython_frontend
#      #PythonOption TracEnv /srv/trac
#    </Location>
#  </IfModule>
</VirtualHost>
			
			




原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值