|
|
CVS Configuration on RedHat Linux 6.0
1) Create the repository directory, say ,
"/home/cvsrep"
2) setup the following environment variable in "/etc/bashrc"
CVSROOT=/home/cvsrep
export CVSROOT
3) initiate the CVS to create a repository at the above CVSROOT directory
cvs -d /home/cvsrep init
4) Edit the "/etc/inetd.conf" file to include the following
statement at the end of the file using vi editor
2401 stream tcp nowait root /usr/bin/cvs cvs -f
--allow-root=/home/cvsrep pserver
5) check the file "/etc/services" for the following entry
cvspserver 2401/tcp
6) Reboot. Note: The CVS password authentication will be
from /etc/passwd file
7) After rebooting, check the CVS using the following command
telnet 2401
cvs -d :pserver:@:/home/cvsrep login
|
CVS Configuration on RedHat Linux 7.1
1) Create the repository directory, say ,
"/home/cvsrep"
2) setup the following environment variable in "/etc/bashrc"
CVSROOT=/home/cvsrep
export CVSROOT
3) initiate the CVS to create a repository at the above CVSROOT directory
cvs -d /home/cvsrep init
4) Create/Edit the "/etc/xinetd.d/cvspserver" file with entry
service cvspserver
{
socket_type = stream
protocol = tcp
wait = no
user = cvsrep
group = cvsdev
log_type = FILE /var/log/xinetdlog
server = /usr/bin/cvs
server_args = -f --allow-root=/home/cvsrep pserver
disable = no
log_on_success += USERID DURATION
log_on_failure += HOST USERID
}
5) check the file "/etc/services" for the following entry
cvspserver 2401/tcp
6) Restart the xinetd services
/etc/rc.d/rc5.d/S56xinetd restart
7) Check the CVS using the following command
telnet 2401
Escape character is '^]'
Enter some word in the telnet console say for example 'foo'. It must throw the following error
cvs [pserver aborted]: bad auth protocol start: foo Connection closed by foreign host.
If this statement is displayed then the cvs is configured in your linux server.
|
|