Google
 
 
Home arrow FreeBSD Articles arrow FreeBSD CVS pserver

Main Menu
 Home
 Linux Articles
 FreeBSD Articles
 Apache Articles
 Perl Articles
 Other Articles
 Program Downloads
 Free Books
 News
 The Web Links
 Contact Us

Most Read
Automating SFTP using expect
FreeBSD PPTP VPN
Shorewall Router on Linux
SnortShorwall - Using Snort And Shorewall Together
Shorewall Stand Alone Firewall

Polls
Favorite Linux/BSD
Fedora
Mandrake
Debian
Slackware
Gentoo
Suse
FreeBSD
Other
  

Syndicate
Latest news direct to your desktop
RSS

Login Form
Username

Password

Remember me
Forgotten your password?
No account yet? Create one

Members Online
 Linux-BSD-Central Has a Total of 701 Members   Members (701) # Online
 We have 6 Guests Online. Guests 6
 We have 0 Users Online. Users 0

Online Users
No Users Online

Statistics
OS: Linux w
PHP: 5.2.9
MySQL: 5.0.91-community
Time: 14:43
Members: 701
Hits: 1324415
News: 277
WebLinks: 15



-->

FreeBSD CVS pserver   PDF  Print  E-mail 
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 FreeBSD

1. 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

Comments
Perfect
Written by Guest on 2008-11-14 19:48:20
Worked just as explained

Write Comment
Name:Guest
Title:
BBCode:Web AddressEmail AddressBold TextItalic TextUnderlined TextQuoteCodeOpen ListList ItemClose List
Comment:



Powered by AkoComment 1.0 beta 2!




 
Google Ads



 

Check out TwistByte - The best mobile apps available For awesome Android and IPhone applications!!