Setup CVS server on Debian / Ubuntu
1. Install CVS client and server:
apt-get install cvs cvsd
With
the default installation, the root for cvsd is at /var/lib/cvsd.The default repositories demo and myrepos are
defined in the configuration file /etc/cvsd/cvsd.conf.
By default, cvsd is installed in a chroot environment. To make it use the regular / environment, change this in cvsd.conf:
RootJail none
Also, you may want to change the Listen statement to the following so that it does not listening on IPv6 sockets.
Listen 0.0.0.0 2401
2. Start the CVS server: sudo /etc/init.d/cvsd start3.
Create myrepos and CVSROOT directories with following command (Note: the absolute path is needed to initialize the repose):
sudo cvs -d /var/lib/cvsd/myrepos init
sudo chown -R cvsd:cvsd /var/lib/cvsd/myreposThe basic structures of cvsd and the repository $CVSROOT are ready.
4.
Add user to the group cvsd and create the password for users.From
System->Administration->Users and Groups. Click Unlock button and
enter the password, then click Manage Groups button. Highlight cvsd
then click Properties and select the username from the Group Members
list.
Create the user password for CVS login as shown below:
cvsd-passwd /var/lib/cvsd/myrepos username5.
Login to cvs servercvs -d :pserver:username@localhost:/myrepos loginHowever,
if the $CVSROOT is defined just simply enter "cvs login" instead. Add
following line in ~/.bashrc is the easiest way to add it to the
environment.
export CVSROOT=:pserver:$USER@localhost:/myreposIf log in has no problem, CVS should be working fine.