Installation and setup of CVS on Ubuntu.

In my hunt for using Rancid I continually bumbed into errors. Turned out I needed to install CVS seperately, and finally got that part to Work:

First we need to install CVS:

root@ubuntu~: apt-get install cvs

After you install cvs, you should install xinetd to start/stop the cvs server. At the prompt, enter the following command to install xinetd:

sudo apt-get install xinetd

Configuration

Once you install cvs, the repository will be automatically initialized. By default, the repository resides under the /var/lib/cvs directory.
For reasons I no longer remember, I changed it as below. Turns out it creates a folder named “CVSROOT” afer the path I wrote.

cvs -d /usr/local/cvsroot init

Once the initial repository is set up, you can configure xinetd to start the CVS server.  You can copy the following lines to the /etc/xinetd.d/cvspserver file.

root@ubuntu:~# nano /etc/xinetd.d/cvspserver

Remember the path must match whatever you just initialized. The file is empty but exist.

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

Once you have configured xinetd you  can start the cvs server by running following command:

root@ubuntu:~# /etc/init.d/xinetd restart

You can confirm that the CVS server is running by issuing the following command:

root@ubuntu:~# netstat -tap | grep cvs

When you run this command, you should see the following line or something similar:

tcp        0      0 *:cvspserver            *:*                     LISTEN      782/xinetd

How to view the sources now?

I just made a small post on how to Setup CVSweb for use with Rancid for nice version browsing.

The primary sources I used to make this Work:

https://help.ubuntu.com/10.04/serverguide/cvs-server.html

 

Posted in CVS, Linux Tagged with:
0 comments on “Installation and setup of CVS on Ubuntu.
1 Pings/Trackbacks for "Installation and setup of CVS on Ubuntu."
  1. […] Prerequisites for this post is the installation and setup of Postfix and installing and configuring CVS. […]

Leave a Reply