2.10. 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.10.1. Setup pserver in Red Hat 7.1 using xinetd.
For Red Hat 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.
su - root /etc/xinetd.d/cvspserver: # default: on service cvspserver { disable = no socket_type = stream protocol = tcp wait = no user = root server = /usr/bin/cvs server_args = -f --allow-root=/rep pserver }
Also unset the HOME variable in xinetd. This was required for my repository to work correctly, but if anyone has a better suggestion, I would appreciate a note.
/etc/xinetd.d/cvspserver: unset HOME
Now, restart xinetd for the changes to take effect.
service xinetd restart
2.10.2. Setup pserver in inetd-based systems.
I haven't tested this (any takers?), but something like the following needs to be done for inetd-based systems such as Red Hat 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/local/bin/cvs --allow-root=/usr/local/newrepos pserver
2.10.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.
See the Resources Appendix for links to some graphical CVS tools.