Re: Using CVS for a project on a 5.3 box

From: Scott Rossillo (scott_at_rossillo.net)
Date: 03/18/05

  • Next message: steve: "Re: Using CVS for a project on a 5.3 box"
    Date: Fri, 18 Mar 2005 12:35:32 -0500 (EST)
    To: "steve" <steve@digitalbluesky.net>
    
    

    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"
    >

    _______________________________________________
    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"


  • Next message: steve: "Re: Using CVS for a project on a 5.3 box"

    Relevant Pages

    • Re: cvs question
      ... I did a cvsup on www & ... you can use anon cvs and something like: ... % setenv CVSROOT:pserver:freebsdanoncvs@anoncvs.FreeBSD.org:/home/ncvs ... CVSROOT is where the repository resides. ...
      (freebsd-questions)
    • Re: Version control
      ... because I am no longer the only person using it and the repository ... commandline combined with the GUI of Tortoise CVS. ... server, no stupid windows admin will mess with it (there is also a Windows ... Lately I have looked into Subversion, ...
      (borland.public.delphi.non-technical)
    • Re: Subversion? (Re: HEADS UP: Importing csup into base)
      ... someone will have to set up a real repository etc. before ... | the CVS repository. ... Like I wrote to Robert Olivier in a private e-mail I will check ... over to another vcs, be it Subversion, Mercurial or something else ...
      (freebsd-arch)
    • Re: Setting up a repository
      ... and want to have a repository. ... >> a team environment, I like the comfort of being able to go back to previous ... >> read is about getting connected up to some other machine running CVS. ... > I would highly recommend that you consider Subversion instead of CVS. ...
      (comp.sys.mac.programmer.help)
    • Re: Where is FreeBSD going?
      ... >> Limitations of CVS don't exactly help either. ... >> direct access to the repository to be able to copy a tree with ... > repository to simulate file/directory duplication or renaming. ... > committers have to request repocopies as do non-committers. ...
      (freebsd-hackers)