From owner-freebsd-newbies@FreeBSD.ORG Fri Mar 18 17:46:08 2005 Return-Path: Delivered-To: freebsd-newbies@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5C4C316A4CE for ; Fri, 18 Mar 2005 17:46:08 +0000 (GMT) Received: from harmony.digitalbluesky.net (dsl093-010-046.cle1.dsl.speakeasy.net [66.93.10.46]) by mx1.FreeBSD.org (Postfix) with SMTP id 8DE5E43D60 for ; Fri, 18 Mar 2005 17:46:07 +0000 (GMT) (envelope-from steve@digitalbluesky.net) Received: (qmail 57546 invoked by uid 89); 18 Mar 2005 17:45:17 -0000 Message-ID: <20050318174517.57545.qmail@harmony.digitalbluesky.net> References: <20050318165206.57372.qmail@harmony.digitalbluesky.net> <25309.65.243.45.100.1111167332.squirrel@webmail.rossillo.net> In-Reply-To: <25309.65.243.45.100.1111167332.squirrel@webmail.rossillo.net> From: "steve" To: "Scott Rossillo" Date: Fri, 18 Mar 2005 12:45:17 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1" Content-Transfer-Encoding: 7bit cc: freebsd-newbies@freebsd.org Subject: Re: Using CVS for a project on a 5.3 box X-BeenThere: freebsd-newbies@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Gathering place for new users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2005 17:46:08 -0000 Thnank you Scott for the great response. I believe I will be using CVS in it's most simple sense. Myself and the few other people working on my project will either SSH under their own accounts to the box and edit project files there, or "check them out" I guess and ftp them to a windows box, edit them, ftp them back and "commit" them after SSH'ing in again. I'm reading "Open Source Development with CVS, 3rd Ed." by Bar and Fogel and from what I gather so far, what I just described above should work. Scott Rossillo writes: > 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" Steve www.digitalbluesky.net