You are on page 1of 2

Creating a Repository :$ mkdir <PATH>

eg :- $ mkdir /usr/local/src/cvsroot
$ setenv CVSROOT <PATH>
eg := $ setenv CVSROOT /usr/local/src/cvsroot
$ cvs init
Note: Generally, it's good idea to setup CVS as it's own user and group
$ groupadd -g 8000 cvsgrp
$ useradd -u 8000 -g cvsgrp - <local_cvs_dir_path> -s /bin/csh \
-c CVS Repository -m cvs
eg:- useradd -u 8000 -g cvsgrp -d /root/CVSusers/cvs -s /bin/csh -c
ositry" -m cvs

"CVS Rep

Note :- Set the ownership of the $CVSROOT


$ chown -R cvs $CVSROOT
$ chgrp -R cvsgrp $CVSROOT
$ chmod -R g+s $CVSROOT
Note:- Made sure the cvspserver entry is in the /etc/services file
$ grep cvs /etc/services
output will be
cvspserver 2401/tcp
cvspserver 2401/udp
Note:- Add an entry into /etc/inetd.conf to invoke CVS as a server
cvspserver stream tcp nowait root /usr/bin/cvs cvs -allow-root=/usr/local/src/cvs
root pserver
$ killall -HUP inetd
Note:- if xinetd is used then create a config file in /etc/xinetd.d named cvspse
rver
$ vi /etc/xinetd.d/cvspserver
service cvspserver
{
port
socket_type
protocol
wait
user
passenv
server
server_args
}
$ kill -HUP xinetd

=
=
=
=
=
=
=

2401
stream
tcp
no
root
/usr/bin/cvs
= -f -allow-root=/usr/local/src/cvsroot pserver

$ chmod 777 -R /usr/local/src/cvsroot/


Create the user
$ useradd -g cvsgrp <user_name>
-> create the password file in /usr/local/src/cvsroot/CVSROOT
-> Generate the encrypted password for user_name using cvs_passwd.pl which is lo
cated in /root/CVSusers/
$ perl /root/CVSusers/cvs_passwd.pl <user_name>
eg: perl /root/CVSusers/cvs_passwd.pl vlsi-35
Enter password for vlsi-35:
vlsi-35:ysrG3pbH..Lws
Note : please give passwd same as user name
Eg;- if username vlsi-35
give passwd - vlsi35
-> Add the generated passwd to /usr/local/src/cvsroot/CVSROOT/passwd
-> If you want to give write permission to user. then add the user name to /usr/
local/src/cvsroot/CVSROOT/writers file
-> Basic Commands
1. To login
cvs -d :pserver:vlsi-<>@VLSI-SERVER:/usr/local/src/cvsroot login
Provide the password
2. To checkout
cvs -d :pserver:vlsi-<>@VLSI-SERVER:/usr/local/src/cvsroot/ checkout pro
ject_name
3. To import
cvs -d :pserver:vlsi-<>@VLSI-SERVER:/usr/local/src/cvsroot/ import
project_name tag release_tag