Setting up a CVS server

Setting up a CVS server is similar to setting up a local repository (see Creating a repository), but you also have to the following:

  1. Make sure that /etc/services includes a line like this:
    pserver 2401/tcp
  2. Make sure that /etc/inetd.conf has an entry like this (but all on one line):
    pserver stream tcp nowait root /usr/bin/cvs cvs
      -b /usr/local/bin -f --allow-root=root_dir pserver

    where root_dir is the path that you want to use for your CVS root directory. By convention, the path should end with CVSRoot, but it isn't enforced.

    You can have more than one root directory; just add multiple instances of --allow-root=root_dir.

  3. Run the CVS init command:
    cvs -d root_dir init

    This creates the root_dir directory and populates it with all the things it needs in there.

For more information, see