red &trac

red
Redmine的FAQ管理插件
http://chaoqun2003.iteye.com/blog/224772

cvs to svn
http://svn.collab.net/repos/svn/trunk/doc/user/cvs-crossover-guide.html


Windows下Trac的安装与基本配置
http://hi.baidu.com/xuexiba/blog/item/4fcb6b8166b05cdabd3e1e55.html

windows下Apache+SVN+Trac安装及配置(二)
http://luchar.iteye.com/blog/151051




http://trac.edgewall.org/wiki/TracInstall

Python 手册

http://doc.chinahtml.com/Manual/Python/tut/
http://linux.chinaitlab.com/manual/Python_chinese/ch03s02.html
=====================

svn ok


1.安装Python,下载:python-2.5msi,进行默认安装。
2.安装Genshi模板系统,属于页面表示层,下载Genshi-0.4.4.win32.exe,安装时会识别Python安装目录。
3.安装Subversion Python Bindings :svn-python-1.4.6.win32-py2.5.exe,安装时会识别Python安装目录。
4.安装PySQLite, 下载pysqlite-2.4.1.win32-py2.5.exe,安装时会识别Python安装目录。PySQLite是SQLite和Python 绑定的轻量级数据库引擎,它是Trac默认的数据库。

在安装Trac之前,首先要安装setuptools ,安装步骤如下:在主页中将ez_setup.py的文件右击另存给下载下来(如保存到D:\python下面),以CMD命令窗口方式进入python该目录执行python ez_setup.py即可安装和python版本对应的setuptools了.
注意:ez_setup.py文件最好放在安装python的根目录下,这样进入该目录以后就可以直接执行>python ez_setup.py命令即可完成setuptools的安装了.

然后使用cmd命令窗口进入到下载的trac根目录下输入:
>D:\python\python setup.py install (如果trac与python放在同一目录下或者将python增加到path环境变量中,可直接写成python setup.py install)等待安装完成。

================

Using d:\python25\lib\site-packages
Searching for setuptools==0.6c8
Best match: setuptools 0.6c8
Processing setuptools-0.6c8-py2.5.egg
setuptools 0.6c8 is already the active version in easy-install.pth
Installing easy_install-script.py script to d:\Python25\Scripts
Installing easy_install.exe script to d:\Python25\Scripts
Installing easy_install-2.5-script.py script to d:\Python25\Scripts
Installing easy_install-2.5.exe script to d:\Python25\Scripts

Using d:\python25\lib\site-packages\setuptools-0.6c8-py2.5.egg
Finished processing dependencies for Trac==0.11.2.1.ja1
================

完成上述的安装后,就可以创建一个TracEnvironment,它是Trac存储信息的地方,如 wiki pages, tickets, reports, settings 等。

1. 通过trac-admin创建一个Trac Environment
在本例中首先在D盘的var目录下新建一个trachome目录,然后以CMD命令窗口方式进入D: \python\Scripts目录下输入:>trac-admin D:/var/trachome/projects initenv,
然后根据提示输入项目的名字(本例中为projects),然后提示询问数据库连接字符串类型,本例中使用的是sqlite,故采用默认就可以了。直接回车接下来是的是:

Please specify the type of version control system,
By default, it will be svn.
If you don't want to use Trac with version control integration,
choose the default here and don't specify a repository directory.
in the next question.

。。。。。
Path to repository [/path/to/repos]> D:/var/svnhome/projects

var\trachome\projects\conf下的trac.ini与trac.ini.sample两个文件,只需将其中repository_dir值修改成:D:/trachome/testTrac即可。

@@ 注意,我这里出过一个错误
--------------
Trac detected an internal error: SubversionException: ("Expected FS format '2'; found format '3'", 160043)
--------------

svn-win32-1.4.6.zip匹配 svn-python-1.4.6
svn-win32-1.5.3.zip匹配 svn-python-1.5.3

D:\Python25\Scripts:
tracd --port 8000 D:\trachome\testTrac

安装:
mod_python-3.3.1.win32-py2.5-Apache2.2.exe
自动设置mod_python.so

LoadModule python_module modules/mod_python.so

# TRAC
#Alias /trac "D:/Trac/cgi-bin/trac.cgi"
<Location /trac/projects>
SetHandler mod_python
PythonInterpreter main_interpreter
PythonHandler trac.web.modpython_frontend
PythonOption TracEnv D:/trachome/testTrac
PythonOption TracUriRoot /trac/projects
</Location>

<Location /trac/projects/login>
AuthType Basic
AuthName "Projects"
AuthUserFile "G:\svnproject\trac\tracpwd"
Require valid-user
</Location>



set admin
htpasswd -m(这里是增加 -c是新建) D:/software_tools/var/trachome/projects/conf/trac.passwd admin     

D:\Python25\Scripts:
D:\Python25\Scripts>trac-admin  D:/trachome/testTrac permission add admin TRAC_ADMIN





你可能感兴趣的:(linux,SVN,python,sqlite,cvs)