Wednesday, April 06, 2005

Setting up CVS

  • Create a CVS group in /etc/group
  • Set the members
  • Install the CVS package, using rpm, pkgadd, whatever.
  • Create a directory to use as CVSROOT. For example, /usr/cvsroot
  • Add this line to /etc/services
    cvspserver 2401/tcp
  • Add this line to /etc/services
    cvspserver stream tcp nowait root /usr/local/bin/cvs cvs --allow-root=[my repository] pserver
  • Restart inetd
    pkill -HUP inetd
  • Either copy over an old repository to your directory or create a new one.
    cvs -d /my/repository/path init
  • Before you finish, don't forget to set permissions like so:
    chown -R cvs:cvs /my/repository/path

    chmod 775 /my/repository/path
  • Do "cvs -d :pserver:username@accelere02.acceleresystems.com:2401/ login"
  • If you get an error like "cvs login: warning: failed to open /home/piter/.cvspass for reading: No such file or directory", just touch .cvspass
  • There is a limit in inetd to how many arguments can be put on one line. If you need more than a few repositories (each repository needs its own --allow-root) use a shell script.

No comments:

Labels

Blog Archive

Contributors