Skip to Main Content
Linux in a Nutshell, Fourth Edition
book

Linux in a Nutshell, Fourth Edition

by Ellen Siever, Stephen Figgins, Aaron Weber
June 2003
Beginner to intermediate content levelBeginner to intermediate
944 pages
43h 1m
English
O'Reilly Media, Inc.
Content preview from Linux in a Nutshell, Fourth Edition

CVS Administrator Reference

This section provides details on creating and configuring repositories and performing other CVS administrative tasks. A single computer can run multiple copies of the CVS server, and each server can serve multiple repositories.

Creating a Repository

Select a directory that will contain the repository files (/usr/local/cvsrep is used in the following examples). Use the init command to initialize the repository. Either set the $CVSROOT environment variable to the absolute path of the repository:

$ export CVSROOT=/usr/local/cvsrep
$ cvs init

or use the -d option to specify the absolute path to the repository:

$ cvs -d /usr/local/cvsrep init

For information on importing code, see the Section 15.6, especially import and add.

Setting up the password server with inetd

If your server uses inetd to control services and you want users to access the repository from other computers, configure the pserver by doing the following as root:

  • Make sure there is an entry in /etc/services similar to the following:

    cvspserver 2401/tcp
  • If you are not using tcpwrappers, place a line like this in /etc/inetd.conf:

    cvspserver stream tcp nowait root /usr/bin/cvs cvs --allow-root=/usr/
    local/cvsroot pserver
  • Or, if you are using tcpwrappers, use a line like this:

    cvspserver stream tcp nowait root /usr/sbin/tcpd /usr/bin/cvs 
    --allow-root=/usr/local/cvsroot pserver
  • Once these changes are in place, restart inetd (or send it the appropriate signal to cause it to reread inetd.conf).

Setting up the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Linux in a Nutshell, 6th Edition

Linux in a Nutshell, 6th Edition

Ellen Siever, Stephen Figgins, Robert Love, Arnold Robbins
Linux in Action

Linux in Action

David Clinton
Hands-On System Programming with Linux

Hands-On System Programming with Linux

Kaiwan N. Billimoria, Tigran Aivazian
Embedded Linux for Developers

Embedded Linux for Developers

Alexandru Vaduva, Alex González, Chris Simmonds

Publisher Resources

ISBN: 0596004826