第 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 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

目录
相关文章
UVa11714 - Blind Sorting
UVa11714 - Blind Sorting
69 0
|
人工智能 BI C语言
1346:【例4-7】亲戚(relation)
1346:【例4-7】亲戚(relation)
125 0
|
存储 机器学习/深度学习 算法
【PAT甲级】1087 All Roads Lead to Rome
【PAT甲级】1087 All Roads Lead to Rome
91 0
HDLBits(2)——Procedures(下)
HDLBits——Procedures 问题28 Always blocks(combinational) (Alwaysblock1) A bit of practice 问题29: Always blocks(clocked) (Alwaysblock2) Blocking vs. Non-Blocking Assignment A bit of practice 问题30: If statement(Always if) A bit of practice 问题31If statement latches(Always if2) 常见的错误来源:如何避免锁存。 问题32: Case st
326 0
HDLBits(2)——Procedures(下)
|
C语言
HDLBits(2)——Procedures(上)
HDLBits——Procedures 问题28 Always blocks(combinational) (Alwaysblock1) A bit of practice 问题29: Always blocks(clocked) (Alwaysblock2) Blocking vs. Non-Blocking Assignment A bit of practice 问题30: If statement(Always if) A bit of practice 问题31If statement latches(Always if2) 常见的错误来源:如何避免锁存。 问题32: Case st
207 0
HDLBits(2)——Procedures(上)
|
开发者
牛客第六场-Combination of Physics and Maths
题意:选出一个子矩阵,使得所求的压强最大,压强是指这个子矩阵中每个元素之和 / 这个子矩阵最下面一行的元素之和
70 0
牛客第六场-Combination of Physics and Maths
Determination of movement type in SAP STO outbound delivery
Determination of movement type in SAP STO outbound delivery
Determination of movement type in SAP STO outbound delivery
1087. All Roads Lead to Rome (30)
#include #include #include #include using namespace std; int n, k; const int inf = 99999999; const int msize...
912 0
|
JavaScript 前端开发 开发工具
|
Apache Python Ubuntu