First of all, there are good link collection page on the internet, so that you can refer to those linked pages for installation of CVS and CVS Server Daemon on each Linux Machines.

CASE 1 : Install CVS using apt-get and xInetd

1. Use apt-get to install CVS.
$ apt-get install cvs

2. Make an account for cvs repository management if possible.
$ useradd -m -G dev srcmanager
$ passwd srcmanager
$ su - srcmanager

3. make a directory for cvs repository and initialize it to serve as cvs repository
$ mkdir cvs_repository
$ chmod g+s cvs_repository
$ cvs -d :local:/home/srcmanager/cvs_repository init

4. Create a xinetd service file as follow and name it to "cvs_pserver". (do this under su privilege)
service cvspserver
        socket_type     = stream
        wait            = no
        user            = root
        group           = cvsuser
        env             = HOME=/home/srcmanager/cvs_repository
        server          = /usr/bin/cvs
        server_args     = -f --allow-root=/home/srcmanager/cvs_repository pserver
        disable         = no

5. restart xinetd
$ invoke-rc.d xinetd restart

6. check if cvspserver service port (2401) is listening well
$ netstat -an | grep 2401

블로그 이미지

Good Joon

IT Professionalist Since 1999