Installing and Configuring CVS
Written by Sam Moffatt   
Sunday, 10 June 2007 01:11

This document covers installing and configuring a CVS repository.

Install the cvs package from the RedHat CD (rpm -i cvs-1.11.2-5.i386.rpm)

Add a cvs user and group.

# cvs -d /usr/local/cvsroot init
# chown -R cvs.cvs /usr/local/cvsroot

Add the following lines to /etc/xinetd.conf:
service cvspserver
{
Port = 2401
socket_type = stream
protocol = tcp
wait = no
user = root
passenv =
server = /usr/bin/cvs
server_args = --allow-root=/usr/local/cvsroot -f pserver
env = HOME=/home/cvs
log = /var/log/cvslog
}

And restart xinetd (/etc/init.d/xinetd restart)

Create a blank file "/usr/local/cvsroot/passwd" with the following line:
anonymous::cvs

Install RCS from the RedHat CD's (sudo rpm -i rcs-5.7-18.i386.rpm)

Note: If webmin is configured and installed, it can be used to add and remove users from cvs.

Last Updated on Friday, 25 April 2008 15:09