|
Contributed by Chad Brandt
|
|
|
|
Tuesday, 28 June 2005
Setting up cvs on FreeBSD is very simple and only takes a few minutes. CVS is installed by default on FreeBSD so all you need to really do is initialize the repository and set up the pserver listener. I will go through the simple steps to set up a cvs pserver on FreeBSD1. Create a cvs user and a cvs group
root# adduser Add users that should have access to cvs to the newly created cvs group. Use pw to add a user to the group root# pw groupmod cvs -M <userid> 2. Create your cvs repository
root# mkdir /usr/local/cvs root# chown cvs:cvs /usr/local/cvs root# chmod 775 /usr/local/cvs Switch to the cvs user to initialize the repository root# su - cvs cvs# cvs -d /usr/local/cvs init 3. Set up pserver for cvs Add the pserver line in /etc/inetd.conf. In most installations it is already there, you will just need to uncomment it and point it to /usr/local/cvs.
cvspserver stream tcp nowait root /usr/bin/cvs cvs --allow-root=/usr/local/cvs pserver Restart inetd if it is already running. root# kill -HUP `ps ax | grep inetd | awk '{print $1}'` If inetd is not running, start it. root# /usr/sbin/inetd Add the following line to /etc/rc.conf to have inetd start automatically at startup inetd_enable="YES" You can now access cvs remotely using the pserver. Set CVSROOT to :pserver:username@host:/usr/local/cvs than log into cvs.
cvsuser# export CVSROOT=:pserver:username@host:/usr/local/cvs cvsuser# cvs login
|
Perfect Written by Guest on 2008-11-14 19:48:20 Worked just as explained |
Powered by AkoComment 1.0 beta 2! |