CVS anyone?

this entry will explain things you need to do to get a cvs server up and running, and using it too (of course!).

CVS server
using ubuntu would be rather simple to install the server

sudo apt-get install cvsd cvs

this would install the server and client. When prompted for the repository path, keyin /cvsrepo (or any other repository path you want to name). at the end of apt-get installation, create the directory too

sudo mkdir /var/lib/cvsd/cvsrepo

change cvsrepo to the name you have chosen.

next you need to initialize the repository

sudo cvs -d /var/lib/cvsd/cvsrepo init

and you are done!
 

Update (24.06.2006)

if you are moving/duplicating your cvs server, i have done the same (eventhough i am unsure whether this is gonna be 100% correct or not, it works) by tar-ing my old repository contents and untar them on my new repository directory. After that i tried to access the repository with eclipse, and i can use the repository the same as the old one. I did not go through the third step.

if you have similar experience, please let me know.

 
CVS client

lazy me, for you guys the cvs gurus out there (like my wife) you would laugh at me for searching for a GUI for cvs usage. well, i prefer frontend since i can click and select :) but instead it is not as simple as i thought :) anyway, after some struggle i manage to get things work out, and as options, i can use gcvs or command line cvs itself for CVS now.

CVS using command-line input (CLI) 

some commands are simple and direct. your best friend would be cvs --help-commands and cvs --help-options.  before you start, it is better to setup your CVSROOT, the environment path that would tell cvs where to look for the file. To do so, do

export CVSROOT=/var/lib/cvsd/cvsrepo

assuming your cvsroot is at /var/lib/cvsd/cvsrepo. The next thing you must make sure is the user permission on the directory. i have changed it to a user group where i will grant write access to. Your milleage might vary. When this is done, then you can start importing some files in! for example, i need to create a module call webproject1 in my cvs, i should do the following:

cd /home/wahlau/somedirectory/
cvs import webproject avendor start

 @todo: what is vendor and start?

note that the directory webproject1 is found in /home/wahlau/somedirectory. the command cvs import will import the whole directory webproject1 as a new module into the cvs repository.

 

 

CVS using gcvs
coming soon 

links:
1. http://konni.com/archives/3 

2. http://www.daimi.au.dk/~kaspar/index.php?sectionId=30 

3. http://outerthought.net/forrest/community/howto/cvs-ssh/howto-cvs-ssh.html