This article describes how to use the excellent package management mechanism of javastuserver8.04 to quickly build a unified collaboration platform. The server includes the source code management system subversion, task/issue/bug Management System trac, and the client includes eclipse, subclipse -- subversion plug-in of eclipse, eclipse plug-in of pydev -- python, and task management plug-in of mylyn -- eclipse. I. Ubuntu
This article describes how to use the excellent package management mechanism of Ubuntu Server 8.04 to quickly build a unified collaboration platform. The server includes the source code management system subversion, task/issue/bug Management System trac, and the client includes eclipse, subclipse -- subversion plug-in of eclipse, eclipse plug-in of pydev -- python, and task management plug-in of mylyn -- eclipse.
1. Install trac in Ubuntu
Trac is an excellent task, issue, and bug Management System. It supports multiple versions such as SVN, CVS, BZR, and HG. However, Trac has become one of the major obstacles to its popularity due to its complexity.
Now in ubuntu, it is very easy to install trac. Follow these steps to install Trac on Ubuntu 8.04 Server:
$ Sudo aptitude install trac
Ubuntu automatically downloads and installs necessary components such as trac, apache, and subversion (if trac supports BZR, use sudo aptitude install trac-bzr ).
Ii. Configure trac
After Trac is installed, configure
1. Create an svn version Library
$ Sudo mkdir-p/home/svn/repo
$ Sudo admin create/home/svn/repo
$ Sudo chown-R www-data.www-data/home/svn/repo
2. Create a Trac Environment
$ Sudo mkdir-p/home/trac/myproject
$ Sudo trac-admin/home/trac/myproject initevn
Trac-admin will ask a few questions. Fill in/home/svn/repo in the svn library path. For other template-related questions, the default setting is correct.
$ Sudo chown-R www-data.www-data/home/trac/myproject
3. Configure apache
$ Ln-s/usr/share/trac/cgi-bin/trac. cgi/usr/lib64/cgi-bin/trac. cgi
Add trac configurations:
$ Cd/etc/apache2/conf. d
$ Sudo vi trac
Add the following content:
CODE:
AllowOverride None
Order allow, deny
Allow from all
SetEnv TRAC_ENV "/home/trac/myproject"
SetEnv PYTHON_EGG_CACHE "/tmp"
AuthType Basic
AuthName "Leo's Projects"
AuthUserFile/home/trac. htpasswd
Require valid-user
4. Generate the authorization file trac. htpasswd
$ Htpasswd-c/home/trac. htpasswd leo
New password: mypassword
Re-type new password: mypassword
Adding password for user leo
5. Restart apache
$ Sudo/etc/init. d/apache2 restart
Access http: // localhost/cgi-bin/trac. cgi to view the trac image.
6. Plug-ins
We recommend that you install the following plug-ins:
Tracrpc -- xml rpc plug-in★★★★★
Webadmin-WEB management plug-in★★★★★
Tracpygments -- source code syntax highlighting plug-in★★★★☆