Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Mar 2005 12:35:32 -0500 (EST)
From:      "Scott Rossillo" <scott@rossillo.net>
To:        "steve" <steve@digitalbluesky.net>
Cc:        freebsd-newbies@freebsd.org
Subject:   Re: Using CVS for a project on a 5.3 box
Message-ID:  <25309.65.243.45.100.1111167332.squirrel@webmail.rossillo.net>
In-Reply-To: <20050318165206.57372.qmail@harmony.digitalbluesky.net>
References:  <20050318165206.57372.qmail@harmony.digitalbluesky.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Steve,

CVS doesn't have to run as a daemon like Apache or MySQL.  Actually,
unless you're planning on giving anonymous CVS access to everyone in the
world, it's safest not to run the CVS pserver daemon and just use ssh to
access your CVS repository remotely.

Now, for setting up your repository... For a simple setup, I usually
create a new user and group on the server to host my repitory such as user
cvs and group cvs.  I have the CVS user's home directory set to /home/cvs
and I add any users who will need write access to the repository to the
cvs unix group I just created.

Set the permissions on the cvs home to allow all users read access, but
only cvs group members write access and make the group bit sticky:

# chmod 775 /home/cvs
# chmod g+s /home/cvs

After that, you don't need to be root anymore.  Just login as a regular
user who you've included in the cvs group (may need to log out and log
back in for this to take effect).  Now, set your environment variables to
point to the cvs root (assuming bash):

$ export CVSROOT=/home/cvs

Initialize the repository (this only has to be done once):

$ cvs init

You're CVS is now set up.  Assuming you use SSH to access your server, you
can also use CVS remotely on another host by setting the following
parameters:

$ export CVSROOT=:ext:username@hostname.domain.tld:/home/cvs
$ export CVS_RSH=ssh

If you need some info on using CVS, head over to CVS's home page:
https://www.cvshome.org/ or check out this good book:
http://tinyurl.com/6tvvq (link take your to Amazon.com).

Good luck,
Scott




> Hi,
>
> I've been running a FreeBSD 5.3 box at home for a couple monthes and I'm
> using it to host some webpages for myself and friends.  I do some php
> programming and I'm working on a project and for the first time I want to
> use CVS.
>
> CVS is installed on my box, but I don't know how to run it.  Does CVS run
> as
> a service like apache or mysql?  If so, how do I start it?
>
> Also, where do people typically install a project cvsroot?  The
> programming
> project has it's own user account on the box where the latest version of
> the
> code runs as a webpage.  So for example:
>
> /home/st4nk/st4nk-www/  <- (apache virtual directory to serve up latest
> php
> code)
>
> so could I just create a directory:
>
> /home/st4nk/cvs
>
> And make that the master respository for the project?  When I work on the
> project files I may or may not log into the box as user st4nk...that
> shouldn't matter, correct?
>
> Steve
> www.digitalbluesky.net
> _______________________________________________
> freebsd-newbies@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-newbies
> To unsubscribe, send any mail to "freebsd-newbies-unsubscribe@freebsd.org"
>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?25309.65.243.45.100.1111167332.squirrel>