Monday, July 18, 2005

Installing CVS on Debian

1) As root, install the cvs package
# apt-get install cvs

- Debian typically installs cvs in /var/lib/cvs directory.
- Debian cvs root directory is owned by root and the group is "src".

2) Setting up a user:
a) Add the following lines to the .bashrc or .profile:
export CVSROOT=:ext:vineet@localhost:/var/lib/cvs/
export CVS_RSH="ssh"

b) Add the user to the group "src" by using the "usermod" command.

3) Password-less ssh login:
Copy your ssh public key from the file ~/.ssh/id_rsa.pub to ~/.ssh/authorized_keys file.

4) Create a new module, if needed, by the command:
cvs import -m "Created foochal.org" foochal.org "Foochal" "zero"

The above command will create a new module in the location:
/var/lib/cvs/foochal.org.

You can tweak the location of the above directory in the cvs by passing the option to import. For details read the CVS manual.

0 Comments:

Post a Comment

<< Home