Server configuration
yum install cvs or similar command
Create a CVS user
# useradd cvs
# passwd cvs
Above command will create a user cvs and group cvs with /home/cvs home directory.
Configure CVS
Open /etc/profile and append following line:
# vi /etc/profile
Append following line:
export CVSROOT=/home/cvs
Save the file and exit to shell promot.
Make sure your /etc/xinetd.d/cvs looks as follows:
# less /etc/xinetd.d/cvs
Output:
service cvspserver
{
disable = no
socket_type = stream
wait = no
user = cvs
group = cvs
log_type = FILE /var/log/cvspserver
protocol = tcp
env = '$HOME=/home/cvsroot'
bind = 192.168.1.100
log_on_failure += USERID
port = 2401
server = /usr/bin/cvs
server_args = -f --allow-root=/home/cvsroot pserver
}
Note: Replace 192.168.1.100 with your actual server IP address.
Restart xinetd:
# service xinetd restart
Add users to this group (see this howto for more info)
# adduser username -g cvs
# passwd username
Client configuration
Finally user can connect to this CVS server using following syntax:
$ export CVSROOT=:pserver:mjoshi@192.168.1.100:/home/cvs
$ cvs loginWhere,
mjoshi - username
192.168.1.100 - CVS server IP