Thursday, February 25, 2010

How to Set Up a CVS Server

The Concurrent Versions System (CVS) is a revision control system most commonly used on Unix and Linux operating systems. The program allows one or many users to work on the same set of project files at the same time, while keeping track of changes that occur over time. Users check out and check in project files by way of the CVS server. Setting up a CVS server is a quick and easy process once you know the proper commands.

Instructions
  1. Step 1

    Open a command line or terminal screen. Run the following command to install CVS:

    sudo apt-get install cvs

    The installation process creates the repository in the "/var/lib/cvs" directory by default.

  2. Step 2

    Control the starting and stopping of the CVS server by installing Xinetd. Do so by running the following command:

    sudo apt-get install xinetd

  3. Step 3

    Open the file located at /etc/xinetd/cvspserver and add the following lines:

    service cvspserver
    {
    port = 2401
    socket_type = stream
    protocol = tcp
    user = root
    wait = no
    type = UNLISTED
    server = /usr/bin/cvs
    server_args = -f --allow-root /var/lib/cvs pserver
    disable = no
    }

  4. Step 4

    Start your newly-installed CVS server by running the following command:

    sudo /etc/init.d/xinetd start

    The CVS server has now been set up and you can begin adding new projects.

No comments:

Post a Comment