Breaking News
Home / Development / Dev Tools / How to install CVS Server in Ubuntu?

How to install CVS Server in Ubuntu?

Install CVS Server TutorialCVS is a very popular version control system used by developers. The installation and setup is straight forward. For the installation you need to able to logged into the server via terminal and can sudo to root user in order to be able to install the required software packages.

Installation

In order to get and install the CVS distribution you can use apt-get at the terminal prompt as follows:

sudo apt-get install cvs

root@livrona:~# sudo apt-get install cvs
Reading package lists… Done

Building dependency tree     

Reading state information… Done

Suggested packages:

  mksh rcs

The following NEW packages will be installed:

  cvs

0 upgraded, 1 newly installed, 0 to remove and 85 not upgraded.

Need to get 2,478 kB of archives.

After this operation, 4,164 kB of additional disk space will be used.

Get:1 http://us.archive.ubuntu.com/ubuntu/ precise/main cvs amd64 2:1.12.13+real-8 [2,478 kB]

Fetched 2,478 kB in 54s (45.5 kB/s)                                                                                                                                                                                                                                         

Selecting previously unselected package cvs.

(Reading database … 70349 files and directories currently installed.)

Unpacking cvs (from …/cvs_2%3a1.12.13+real-8_amd64.deb) …

Processing triggers for install-info …

Processing triggers for man-db …

Setting up cvs (2:1.12.13+real-8) …

Allowing use of questionable username.

Adding group `_cvsadmin’ (GID 119) …

Done.

<!>
Once cvs, is installed successfully as above, we need to start CVS server(process)
and for that we can use xinetd to start/stop the cvs server.

Xinetd is not installed by default, so you can install xinetd using the following command:

sudo apt-get install xinetd

root@livrona:~# sudo apt-get install xinetdReading package lists… Done

Building dependency tree     

Reading state information… Done

The following extra packages will be installed:

  libfile-copy-recursive-perl update-inetd

The following NEW packages will be installed:

  libfile-copy-recursive-perl update-inetd xinetd

0 upgraded, 3 newly installed, 0 to remove and 85 not upgraded.

Need to get 170 kB of archives.

After this operation, 615 kB of additional disk space will be used.

Do you want to continue [Y/n]? y

Get:1 http://us.archive.ubuntu.com/ubuntu/ precise/main libfile-copy-recursive-perl all 0.38-1 [20.6 kB]

Get:2 http://us.archive.ubuntu.com/ubuntu/ precise/main update-inetd all 4.41 [19.5 kB]

Get:3 http://us.archive.ubuntu.com/ubuntu/ precise/main xinetd amd64 1:2.3.14-7ubuntu4 [130 kB]

Fetched 170 kB in 3s (52.5 kB/s)

Preconfiguring packages …

Selecting previously unselected package libfile-copy-recursive-perl.

(Reading database … 70405 files and directories currently installed.)

Unpacking libfile-copy-recursive-perl (from …/libfile-copy-recursive-perl_0.38-1_all.deb) …

Selecting previously unselected package update-inetd.

Unpacking update-inetd (from …/update-inetd_4.41_all.deb) …

Selecting previously unselected package xinetd.

Unpacking xinetd (from …/xinetd_1%3a2.3.14-7ubuntu4_amd64.deb) …

Processing triggers for man-db …

Processing triggers for ureadahead …

ureadahead will be reprofiled on next reboot

Setting up libfile-copy-recursive-perl (0.38-1) …

Setting up update-inetd (4.41) …

Setting up xinetd (1:2.3.14-7ubuntu4) …

xinetd start/running, process 11503

This will not only install xinted and but also launch the demon.

Configuration

When the CVS is installed, the CVS repository is be automatically initialized under the /var/lib/cvs directory.

You can create your own repository in a different location with the following command:

cvs -d /path/to/new/cvs/repo init

The next step is to configure xinetd to start the CVS server. So create a file called as cvspserver in the  /etc/xinetd.d directory.

service cvspserver
{
     port = 2401
     socket_type = stream
     protocol = tcp
     user = root
     wait = no
     type = UNLISTED
     server = /usr/bin/cvs
     server_args = -f –allow-root /path/to/new/cvs/repo pserver

     disable = no

}

Now we can start the CVS server by starting the xinetd with will start the CVS server.

sudo /etc/init.d/xinetd start

In order o check if the CVS server is running successfully, run the following command:

mvohra@livrona:~$ telnet localhost 2401
Trying 127.0.0.1…

Connected to localhost.

Escape character is ‘^]’.

If your telnet is successfully to that port, indicates that the CVS server is up.

In order to talk to CVS from outside, make sure your firewall is open to allow the CVS Port (2401).

Now you can import or create new projects into the CVS repository.

 [pb_builder]

Check Also

How to delete CVS folder in directory?

Solution One of common ways to start a project is make a duplicate copy of …

Advertisment ad adsense adlogger