In this post we will learn how to install CVS server on Ubuntu.

What is CVS server?

CVS is a version control system, an important component of Source Configuration Management (SCM). Using it, you can record the history of sources files, and documents.
Hardware prerequisites for CVS server

My Setup

  • Ubuntu 12.04.4 LTS (Precise Pangolin)

    • 4 GB of RAM
    •  Intel® Xeon® processor
    • 500 GB of hard-drive space ( with RAID Setup)
    • gigabit Ethernet 
    • Either a CD/DVD drive or a USB port for the installer media

CVS Server on Ubuntu

Login as root user and check that the software packages, or higher versions

# gcc -version
# gcc version 4.1.2

If not, please Install/upgrade the Packages by using the following commands as Examples.

Install G++ files:

# apt-get install g++

Install CVS files:

# apt-get install cvs

3. Create the User to install and compile the apache

# groupadd cvsd
# useradd -u 1010 -g cvsd -d /home/cvsd -m -s /bin/ksh -c “CVS Server” cvsd

If the folder cvsrepo does not exist, then create it…

# mkdir cvsrepo
# chown –R cvsd:cvsd cvsrepo

Install the CVS server:
Download the required following package

or you can also check out the latest version of cvsd in the current directory:

# cvs -d co cvsd
# cvs update -dP

Extract the cvsd package and install by using the following steps.

# tar –zvxf cvsd-1.0.13.tar.gz
# cd /usr/src/cvsd-1.0.13
# ./configure –prefix=/var/lib/cvsd/ /var/lib/cvsd/

Installation successfully complete

# cd /var/lib/cvsd
# cvsd-buildroot /var/lib/cvsd

and then initilize the repository

# sudo cvs -d /var/lib/cvsd/cvsrepo init

Create a user and password

# sudo cvsd-passwd /var/lib/cvsd/cvsrepo rbalara
# /var/lib/cvsd/cvsrepo/CVSROOT/config



Now let’s Test

# cvs -d :pserver:bala@localhost:/cvsrepo login

# cvs -d :pserver:bala@localhost:/cvsrepo checkout


Binary distributions