I have switched to SVN in about 2 years ago. But I am currently doing a project whose server was setup on a server that only has CVS and we can’t install SVN client on it. So I have to install CVS on my server in order to have the version control for this project. The following was what I did while setting up my CVS server. 1. Install CVS client:
root@www:# sudo apt-get install cvs
2. Install CVS server:
root@www:# sudo apt-get install cvsd
Note: if you get the message that cvsd could not be found, do an update, then a cache search, and then install
root@www:# sudo apt-get update
root@www:# sudo apt-cache search cvsd
root@www:# sudo apt-get install cvsd
You will be asked to enter the location of the repository in a blue screen, remove the default value ( /demo:/mycvs or something like that ), and type in /cvsroot 3. Configure CVS goto /var/lib/cvsd and build the cvsroot:
root@www:# cd /var/lib/cvsd
root@www:# sudo cvsd-buildroot /var/lib/cvsd
create the folder cvsroot under /var/lib/cvsd:
root@www:# sudo mkdir cvsroot
and then initilize the repository:
root@www:# sudo cvs -d /var/lib/cvsd/cvsroot init
root@www:# sudo chown -R cvsd:cvsd cvsroot
create a user and password:
root@www:# sudo cvsd-passwd /var/lib/cvsd/cvsroot +
and then change the AUTH type:
root@www:# sudo vi /var/lib/cvsd/cvsroot/CVSROOT/config
uncomment the “SystemAuth=no” line. 4. Check the configuration: Run the debug info for CVS:
root@www:# cvsd-buginfo
You will see the following in the middle of the output, make sure that the last one “Repos /cvsroot” is correct, in some cases it might be something like “/decvs” and you cvs server will break, because they don’t match with your setup.
...........................

/etc/cvsd/cvsd.conf:
 RootJail /var/lib/cvsd
 Uid cvsd
 Gid cvsd
 Nice 1
 Umask 027
 PidFile /var/run/cvsd.pid
 MaxConnections 10
 Log syslog info
 Listen * 2401
 Repos /cvsroot

...............................
5. Now it is time to test it:
root@www:# cvs -d :pserver:username@localhost:/cvsroot login
If you login successful, you will see something similar as below:
cvs login: CVS password file /home//.cvspass does not exist - creating a new file
6. Should be all done :), some references: A good CVS Client for Windows is TortiseCVS and can be downloaded from here: TortoiseCVS Some tutorial from Sitepoint: Harness the Power of CVS for Your Site

Leave a Reply

Your email address will not be published. Required fields are marked *