[email protected]:# sudo apt-get install cvs2. Install CVS server:
[email protected]:# 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
[email protected]:# sudo apt-get update [email protected]:# sudo apt-cache search cvsd [email protected]:# 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:
[email protected]:# cd /var/lib/cvsd [email protected]:# sudo cvsd-buildroot /var/lib/cvsdcreate the folder cvsroot under /var/lib/cvsd:
[email protected]:# sudo mkdir cvsrootand then initilize the repository:
[email protected]:# sudo cvs -d /var/lib/cvsd/cvsroot init [email protected]:# sudo chown -R cvsd:cvsd cvsrootcreate 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/configuncomment the “SystemAuth=no” line. 4. Check the configuration: Run the debug info for CVS:
[email protected]:# 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:
[email protected]:# cvs -d :pserver:[email protected]:/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