#tar zxvf cvsgraph-1.1.3.tar.gz
#cd cvsgraph-1.1.3
#./configure
#make
#cp cvsgraph /usr/bin
#mkdir /etc/cvsgraph
#cp cvsgraph.conf /etc/cvsgraph
#rpm -ivh egenix-mx-base-2.0.3-py2.1_1.i386.rpm
#rpm -ivh MySQL-python-0.9.1-1py2.i386.rpm
#tar zxvf viewcvs-0.9.2.tar.gz
#cd viewcvs-0.9.2
#./viewcvs-install
#cp /usr/local/viewcvs-0.9.2/cgi/viewcvs.cgi /var/www/cgi-bin
#cp /usr/local/cvsview-0.9.2/PyFontify* /usr/lib/python2.1/
#cp /usr/local/cvsview-0.9.2/py2html* /usr/lib/python2.1/
OK!
/**********MySQL****************/
建两个用户,cvsroot(password:cvsroot)使用root权限,cvsread(password:cvsread)
使用只读权限.
#/usr/local/cvsview-0.9.2/make-datebase
OK!
#vi /usr/local/viewcvs-0.9.2/viewcvs.conf
cvs_roots =
Development : /home2/cvsroot
rcs_path = /usr/bin/
address = hleil@vmail.com
[cvsdb]
host = localhost
database_name = ViewCVS
user = cvsroot
passwd = cvsroot
readonly_user = cvsread
readonly_passwd = cvsread
row_limit = 1000
py2html_path = /usr/lib/python2.1
enscript_path = /usr/bin/
allow_tar = 1
use_cvsgraph = 1
********************************************************
***如果同时安装python-1.x和python-2x(比如RedHat7.2)
***以下千万注意(我们使用python-2.x)
********************************************************
cd /usr/local/viewcvs-0.9.2
loginfo-handler,standalone.py,cvsdbadmin
以及
cd /usr/local/viewcvs-0.9.2/cgi下的所有文件,
首行改为:#!/usr/bin/python2
#cp /usr/local/viewcvs-0.9.2/cgi/viewcvs.cgi /var/www/cgi-bin
http://127.0.0.1/cgi-bin/viewcvs.cgi/
OK了!
4:Add user
#usermod -G cvs username #使用系统验证
OK,enjoy CVS!
5:微调
#mkdir /var/lock/cvs
#mkdir /var/lock/cvs/CVSROOT
#chmod -R 775 /var/lock/cvs
#chown -R cvsroot.cvs /var/lock/cvs
#su - hleil
$export CVSROOT=:pserver:cvsroot@vmail.com:/home2/cvsroot
$cvs login
$cvs checkout CVSROOT
$cd CVSROOT
$vi loginfo
ALL (echo %{sVv}; cat) | /usr/local/viewcvs-0.9.2/loginfo-handler #SQL checkin
:wq
$vi config
SystemAuth=yes #使用系统验证
LockDir=/var/lock/cvs #for security
LogHistory=all
:wq
$cvs commit
#service xinetd restart
Great!终于好了!
呵呵,下面开始你的代码之旅吧!