Linux and CVS
Updated September 05, 2003
Created December 1, 2002
Autogenerated Site Map
Search this Site!:
export CVSROOT=:pserver:user@host:/usr/local/cvsroot
cvs login
cvs co module_to_checkout
Here I set up the CVSROOT variable as a systemwide variable,
where the defaults are to access this local box. The hostname
is set correctly on this box so that the "hostname" command
returns the fully qualified domain name (FQDN) of this box.
The following is from /etc/profile:
http_proxy=http://proxy.mydomain.com:8080/
https_proxy=https://proxy.mydomain.com:8080/
CVSROOT=":pserver:`whoami`@`hostname`:/usr/local/cvsroot"
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC http_proxy https_proxy CVSROOT
The following is a sample for /etc/xinetd.d/cvs, I haven't tested this particular cfg file
but it looks right:
service cvspserver
{
disable = no
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/bin/cvs
server_args = --allow-root=/usr/local/cvsroot -f pserver
}
And don't forget the
mkdir /usr/local/cvsroot
cvs init -d /usr/local/cvsroot
I found other info here: http://www.elvenware.com/charlie/linux/cvsDocs.html
also: http://alexm.here.ru/cvs-nserver/INSTALL-nserver
Create an admin account of cvsadmin, create a cvs group called cvs.
Add cvsadmin to the cvs group.
No real users will be in the cvs group, only cvs and cvsadmin.
Permissions:
mkdir /usr/local/cvsroot
chown cvsadmin.cvs /usr/local/cvsroot
chmod 3775 /usr/local/cvsroot
cvs -d /usr/local/cvsroot init
chown -R cvsadmin.cvsadmin /usr/local/cvsroot/CVSROOT
chmod 755 /usr/local/cvsroot/CVSROOT
chmod 444 /usr/local/cvsroot/CVSROOT/*
touch /usr/local/cvsroot/CVSROOT/history
chown cvs.cvsadmin /usr/local/cvsroot/CVSROOT/history
chmod 664 /usr/local/cvsroot/CVSROOT/history
touch /usr/local/cvsroot/CVSROOT/val-tags
chown cvs.cvsadmin /usr/local/cvsroot/CVSROOT/val-tags
chmod 664 /usr/local/cvsroot/CVSROOT/val-tags
Search this Site!:
Homepage: http://www.cpqlinux.com
Site Map: http://www.cpqlinux.com/sitemap.html