[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting up CVS Repository

From: Amaresh Chandra Das
Subject: Re: Setting up CVS Repository
Date: Wed, 7 Jan 2009 13:12:08 +0530 (IST)

Hi Mitul,

CVS Configuration - Install CVS

Use rpm or up2date or yum command to install cvs:
    rpm -ivh cvs
    up2date cvs
    yum install cvs
    apt-get install cvs

Create a CVS user#
    useradd cvs
#     passwd cvs

Above command will create a user cvs and group cvs with /home/cvs home directory.
Configure CVS

Open /etc/profile and append following line:# vi /etc/profile
Append following line:
    export CVSROOT=/home/cvs
Save the file and exit to shell promot.

Make sure your /etc/xinetd.d/cvs looks as follows:

# less /etc/xinetd.d/cvsOutput:

service cvspserver
       disable            = no
       socket_type    = stream
       wait                = no
       user                = cvs
       group              = cvs
       log_type          = FILE /var/log/cvspserver
       protocol          = tcp
       env                 = '$HOME=/home/cvsroot'
       bind                =
       log_on_failure  += USERID
       port                = 2401
       server             = /usr/bin/cvs
       server_args     = -f --allow-root=/home/cvsroot pserver

Note: Replace with your actual server IP address.

Restart xinetd:# service xinetd restartAdd users to this group (see this howto for more info)
# adduser username -g cvs

# passwd usernameClient configuration

Finally user can connect to this CVS server using following syntax:
$ export CVSROOT=:pserver:<username>@<ip_Address>:/home/cvs
$ cvs loginWhere,

    * Login - username
    * - CVS server IP
1st Set CVS in /etc/profile as
    export CVSROOT in .bashrc file

  Creat a cvs directory
    mkdir -p /home/cvs
    cs /home/cvs/
    touch Entries
    touch Root
    touch Repository
    touch Templet
    vi Entries
        (should be empty)
        then save and close.
    vi Repository
        edit as "./"
        then save and close
    vi Root
        it shoud contain your path name...
        eg:- pwd >> Root
        save and quit
    Vi Templet
        edit BugID:
        save and close
On Shell prompt
    cvs init
    cvs checkout ./
    cvs add <filename>
    cvs commit or ci <filename>

and have a look bellow links too..

if you are facing any problem then let me know..


--- On Wed, 7/1/09, meteor <address@hidden> wrote:
From: meteor <address@hidden>
Subject: Setting up CVS Repository
To: address@hidden
Date: Wednesday, 7 January, 2009, 10:08 AM

Hi all,

I am not too much into using CVS for my day-to-day work but recently I was
required to set up a local CVS repository for my routine work.
As it was my first foray into anything related into CVS and had to seek help
from the post on Google to set up a local CVS repository. Although I was
able to do it successfully but there was something that every post on Google
had mentioned about importing a project in my CVS repository but did not
work out for me. The posts mentioned that after importing the project into
the repository and after receiving the 'No conflicts' message I need to
remove that project from the repository and than do Checkout (CO) to get
back the project. But since I have either moved/removed the project from the
repository the Checkout does not work saying 'No such module found' and
according me is a valid thing to happen. So just want to know if my
assumption about this is right or not and if it is then why do the posts
mention about removing/moving the project from the repository after it has
been imported. Also let me know if i don't do that what could be the
problems that i could face in future.

Any help is appreciated.

Thanking you all in advance
View this message in context:
Sent from the Gnu - Cvs - Info mailing list archive at

Add more friends to your messenger and enjoy! Invite them now.
reply via email to

[Prev in Thread] Current Thread [Next in Thread]