#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****************/
建兩個(gè)用戶,cvsroot(password:cvsroot)使用root權(quán)限,cvsread(password:cvsread)
使用只讀權(quán)限.
#/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
********************************************************
***如果同時(shí)安裝python-1.x和python-2x(比如RedHat7.2)
***以下千萬(wàn)注意(我們使用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 #使用系統(tǒng)驗(yàn)證
OK,enjoy CVS!
5:微調(diào)
#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 #使用系統(tǒng)驗(yàn)證
LockDir=/var/lock/cvs #for security
LogHistory=all
:wq
$cvs commit
#service xinetd restart
Great!終于好了!
呵呵,下面開(kāi)始你的代碼之旅吧!