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
Shorewall Stand Alone Firewall
SnortShorwall - Using Snort And Shorewall Together

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 139 Members   Members (139) # Online
 We have 9 Guests Online. Guests 9
 We have 0 Users Online. Users 0

Online Users
No Users Online

Statistics
OS: Linux b
PHP: 5.2.5
MySQL: 5.0.45-community-log
Time: 15:30
Members: 139
Hits: 731631
News: 269
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

Only registered users can write comments.
Please login or register.

Powered by AkoComment 1.0 beta 2!




 
Google Ads