CVS 1.11.17-6.FC3

Tested on 8 May 2005 by FC3

Installation

  1. Install CVS by RPM and add the user.
    # rpm -ihv cvs-1.11.17-6.FC3.rpm
    # groupadd cvs
    # useradd cvs -g cvs -d /home/cvs
    # passwd cvs
    # chmod 2770 /home/cvs
    
  2. Edit .bashrc.
    # su - cvs
    $ vi .bashrc
    
  3. Add following line
    export CVSROOT=/home/cvs
    
  4. Apply the change
    $ source .bashrc
    
  5. Initialize the repository
    $ cvs init
    

Connection configuration

There are three methods to connect CVS from external client.
  1. ext
  2. extssh
  3. pserver
In this practice, we use pserver.
  1. Create account for connection. By using htpasswd tool, we create passwd file. Create user hoge. It also create the file.
    $ cd CVSROOT
    $ htpasswd -c ./passwd hoge
    New password:
    Re-type new password:
    Adding password for user hoge
    
  2. Add account.
    $ htpasswd ./passwd foo
    New password:
    Re-type new password:
    Adding password for user foo
    
  3. Edit passwd file. The third column is for a system user.
    hoge:3Rmfv013pLLc2:cvs
    foo:jN95DpctkFqkk:cvs
    
  4. Add pserver service.
    # cd /etc/xinetd.d
    # vi cvspserver
    
    service cvspserver
    {
            socket_type     = stream
            wait            = no
            disable         = no
            user            = cvs.cvs
            server          = /usr/bin/cvs
            server_args     = --allow-root=/home/cvs pserver
    }
    
  5. Restart xinetd
  6. # service xinetd restart
    

Back
Google
Web www.grape-info.com