Setting up a CVS server on Linux

A quick guide to setting up CVS on a Linux system. The instructions below were developed on a Mandrake system and may be slightly different for other distributions.

  • Download and install cvs server
  • Create the repository directory:
    mkdir /var/cvs
  • Initialize the repository
    cvs -d /var/cvs init
  • Create a group for CVS users
    groupadd cvs
  • Add CVS users to group in /etc/groups
    cvs:x:501:user1,...
  • For pserver access:
    • Set CVS_REPOS in /etc/cvs/cvs.conf
    • Enable pserver in /etc/xinetd.d/cvs
    • Restart xinetd
      /etc/init.d/xinetd restart