备忘-ubuntu下trac的安装
来源:互联网 发布:如何删除淘宝评论 编辑:程序博客网 时间:2024/05/29 16:12
OS: Ubuntu 8.10
以前在项目开发中使用bugtracker,虽然使用简单,但不能和eclipse有机的结合,操作多少有点繁琐。这两天研究了一下mylyn,发现这是个不错的工具。虽然还没有领悟它的所有功能,至少我发现mylyn可以和其他缺陷跟踪工具集成使用,如bugzilla和trac等。
以下为trac在ubuntu 8.10下的安装过程,subversion之前已经安装,所以本文没有涉及subversion的安装问题。
1. 安装trac
#sudo apt-get install trac
2. 建立项目环境
#cd /home/arthur/www
#mkdir trac
#mkdir python-eggs
Creating a Project Environment
trac-admin will prompt you for the information it needs to create the environment, such as the name of the project, the type and the path to an existing source code repository, the database connection string, and so on. If you're not sure what to specify for one of these options, just leave it blank to use the default value. The database connection string in particular will always work as long as you have SQLite installed.
Please note: if using Subversion, Trac must be installed on the same machine. Remote repositories are currently not supported.
#trac-admin trac initenv
根据提示输入信息。值得注意的是,如果使用subversion,trac必须和subversion安装在同一台机器上,因为trac目前不支持远程repository。这就是trac不适合大型项目的原因?
编辑trac的配置文件
#vi conf/trac.ini
default_charset = utf8 //我的环境是utf8,如果不改,svn源码中的中文显示不了
restrict_owner = true //drop list for assign to
#sudo chown -R www-data:www-data trac python-eggs
3. 安装mod-python
trac是个python写的web应用,我想使用apache2+mod-python,性能应该很好。
#apt-get install libapache2-mod-python libapache2-mod-python-doc
4. 配置apache
#sudo vim /etc/apache2/conf.d/trac.conf
<Location /trac>
SetHandler mod_python
PythonInterpreter main_interpreter
PythonHandler trac.web.modpython_frontend
PythonOption TracEnv /home/arthur/www/trac
PythonOption TracUriRoot /trac
SetEnv PYTHON_EGG_CACHE /home/arthur/www/python-eggs
</Location>
<Location /trac/login>
AuthType Basic
AuthName "My Project"
AuthUserFile /etc/apache2/svn-auth-file
Require valid-user
</Location>
添加用户
#sudo htpasswd -b svn-auth-file user1 pwd1
5. 重启apache2
#sudo /etc/init.d/apache2 restart
6. 安装Web Admin Plugin
这个plugin在trac 0.11中已经包含了,但是需要给某个用户加上这个管理权限。
#sudo trac-admin /home/arthur/www/trac
Trac [/home/arthur/www/trac]> permission add arthur TRAC_ADMIN
重新访问 http://localhost/trac,多了一个admin的菜单。
7. 安装Trac XML-RPC Plugin
#sudo easy_install http://trac-hacks.org/svn/xmlrpcplugin/trunk/
重启apache2
eclipse可以使用这个功能,界面会富客户端化一些。
- 备忘-ubuntu下trac的安装
- ubuntu下安装trac
- ubuntu 下的subversion,trac,apache2安装配置
- Ubuntu 下Trac+Subversion+Apache安装
- Ubuntu下libpcap的安装备忘
- Ubuntu安装Trac svn
- ubuntu 安装trac
- Ubuntu 安装Trac
- RHEL5下trac的安装配置
- Linux下Trac的安装设置
- linux下安装Trac
- CentOS下安装Trac
- ubuntu下安装pygame备忘
- Trac 手记(一) : Windows 下安装 Trac
- Trac 手记(一) : Windows 下安装 Trac
- 在ubuntu上安装trac
- Trac 在ubuntu上安装
- ubuntu svn svnmanager trac 安装
- sql2005 没有有效所有者 不能打开 关系图
- 类模板与模板类
- reactos操作系统实现(27)
- MySQL数据类型及列类型(一)
- MySQL数据类型及列类型(二)
- 备忘-ubuntu下trac的安装
- 显IP功能
- Oracle数据类型简介
- 项目中要用jeditable 在此做个记号
- 绘制UML活动图的步骤和要点
- uml 活动视图活动图
- 权限数字
- Tomcat5.5虚拟目录配置
- 序------>