[oclug]cvs server

smoynes at nexus.carleton.ca smoynes at nexus.carleton.ca
Sat Jan 18 10:14:54 EST 2003


* Petro (Petro at ncf.ca) wrote:
> Hi,
> 
> I am trying to set up a CVS server for more or less personal
> use... could someone point me to a good tutorial on how to set up a
> CVS server?
> 
> So far I have tried a couple of different things. However, I keep
> getting different errors no matter what i do the thing doesnt
> work. I think a decent tutorial would fix that.

If it is strictly for personal, CVS has the ability to run in local
mode. Here's the quick way to get going.

 cvs -d /full/path init
creates a new repository.
Now you have to get some source into the repository.
 cd ~/source
 export CVSROOT=/full/path
 cvs import -m "Initial source import" modulename PETRO INITIAL
will, put the source into the module modulename, with the vendor tag
and revision tag of PETRO and INITIAL. You can easily ignore what
those mean if you want.
Now you have to getting a working copy.
 cd ~/workingcopy
 cvs checkout modulename
 cd modulename
 emacs source-code.c
 cvs commit
Should do the trick.

It is possible to make a local cvs repository accessible remotely if
you need to. The easiest (and much more secure) method is to use
ssh. If you need any help with that, I'd be glad to dig up my
references for it.

And here's a pretty good introduction to CVS:
 http://www-105.ibm.com/developerworks/education.nsf/linux-onlinecourse-bytitle/A5C4A0AF4296C66886256A0E005DE112?OpenDocument

Good luck.
-- 
Scott Moynes http://www.icculus.org/openbox/
"Computer science is as much about computers
as astronomy is about telescopes." -- Dijkstra



More information about the OCLUG mailing list