Thursday, January 24, 2013

How to set up CVS server under Debian 6.0.6, and connecting to it with Eclipse

First of all ensure you have ssh server....
If no see here....
After update repository indexes and install.....

apt-get update
apt-get install cvs


Now we see how to quickly configure it.....
create repository user and repository group

useradd repository

add user repository to repository group  

usermod -a -G repository repository

add user your_user to repository group

usermod -a -G repository your_user

create root directory for cvs

mkdir /home/repository

initialize cvs

cvs -d /home/repository init

give the right permissions to folders

chown -R repository:repository /home/repository
chmod -R 770 /home/repository
chmod 770 /home/repository/CVSROOT

Now provides to give the first import as cvs administrator, so in this case, as repository user I give the follow

cvs -d /home/repository import -m "Initial import" project_name username_that_add_the_first_sources project_version

Working with Eclipse, you go under New --> Other --> CVS Repository Location
and add as parameters...
- connection type: extssh
- host: hostname or ip of the machine where you installed the cvs, in my case localhost
-  username and password: the username, of system, that previously you added to the repository group and its password
- repository path: as in our example, /home/repository, that's the home directory that's you have setted for your cvs installation

Bye.....

No comments:

Post a Comment