Building A CVS Server On Ubuntu

Building A CVS Server On Ubuntu

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:
[email protected]:# sudo apt-get install cvs
2. Install CVS server:
[email protected]:# 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
[email protected]:# sudo apt-get update
[email protected]:# sudo apt-cache search cvsd
[email protected]:# 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:
[email protected]:# cd /var/lib/cvsd
[email protected]:# sudo cvsd-buildroot /var/lib/cvsd
create the folder cvsroot under /var/lib/cvsd:
[email protected]:# sudo mkdir cvsroot
and then initilize the repository:
[email protected]:# sudo cvs -d /var/lib/cvsd/cvsroot init
[email protected]:# sudo chown -R cvsd:cvsd cvsroot
create a user and password:
[email protected]:# sudo cvsd-passwd /var/lib/cvsd/cvsroot +
and then change the AUTH type:
[email protected]:# sudo vi /var/lib/cvsd/cvsroot/CVSROOT/config
uncomment the “SystemAuth=no” line. 4. Check the configuration: Run the debug info for CVS:
[email protected]:# 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:
[email protected]:# cvs -d :pserver:[email protected]:/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.

My new Snowflake Blog is now live. I will not be updating this blog anymore but will continue with new contents in the Snowflake world!