root@www:# sudo apt-get install cvs2. Install CVS server:
root@www:# sudo apt-get install cvsdNote: 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 cvsdYou 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/cvsdcreate the folder cvsroot under /var/lib/cvsd:
root@www:# sudo mkdir cvsrootand then initilize the repository:
root@www:# sudo cvs -d /var/lib/cvsd/cvsroot init root@www:# sudo chown -R cvsd:cvsd cvsrootcreate 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/configuncomment the “SystemAuth=no” line. 4. Check the configuration: Run the debug info for CVS:
root@www:# cvsd-buginfoYou 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 loginIf you login successful, you will see something similar as below:
cvs login: CVS password file /home//.cvspass does not exist - creating a new file6. 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