2.9. Setup the CVS pserver

You will likely need to be root to do this, and there are lots of guides on the Internet for setting up a CVS pserver, hopefully you wont have any trouble doing it on your particular operating system. See the Resources Appendix for more information.

2.9.1. Setup pserver in Red Hat Linux 7.x using xinetd.

For Red Hat Linux 7.x, edit /etc/xinetd.d/cvspserver (create a new one if none exists). The following works for me, but customization may be required for your environment (see the next section below for an inetd-based system example). This also must be done as root. Remember to substitue /home/interch/rep with your repository directory below.

su - root
/etc/xinetd.d/cvspserver:

service cvspserver
{
        disable = no
        socket_type  = stream
        protocol  = tcp
        wait   = no
        user    = root
        server   = /usr/bin/cvs
        server_args  = -f --allow-root=/home/interch/rep pserver
}

Now, restart xinetd for the changes to take effect.

service xinetd restart

2.9.2. Setup pserver in inetd-based systems.

For inetd-based systems such as Red Hat Linux 6.2, make sure that the following files are setup accordingly.

/etc/services:

cvspserver      2401/tcp
N:/etc/inetd.conf:

cvspserver stream tcp nowait \
        root /usr/sbin/tcpd /usr/bin/cvs \
        --allow-root=/home/interch/rep pserver

2.9.3. Testing your pserver

At this point, you should be able to use a CVS client to use your pserver and execute all the same commands that you can locally (which we tested before). You may wish to take advantage of a graphical CVS client, which can be particularly helpful in leveling the learning curve.

Your pserver connection string will something along the lines of:

 :pserver:<USERNAME>@<SERVER>:/home/interch/rep

See the Resources Appendix for links to some graphical CVS tools.