cvs - Concurrent Versions System
安裝
shell> sudo apt-get install cvs
shell> sudo apt-get install xinetd
/etc/services
cvspserver 2401/tcp # CVS client/server operations
cvspserver 2401/udp # CVS client/server operations
shell> mkdir /cvs
shell> chmod -R 777 /cvs
/etc/xinetd.d/cvs
service cvspserver
{
disable = no
port = 2401
socket_type = stream
protocol = tcp
wait = no
user = root
passenv = PATH
server = /usr/bin/cvs
env = HOME=/cvs
server_args = -f --allow-root=/cvs pserver
# bind = 127.0.0.1
}
shell> cvs -d /cvs init
shell> export CVSROOT=:pserver:[email protected]:/cvs
shell> cvs login
參考網站:
cvsd - chroot wrapper to run 'cvs pserver' more securely
安裝
shell> sudo apt-get install cvs
shell> sudo apt-get install cvsd
/var/lib/cvsd/myrepos/CVSROOT/config
SystemAuth=no
LockDir=/var/lock/cvs
shell> mkdir /var/lib/cvsd/myrepos
shell> mkdir -p /var/lib/cvsd/var/lock/cvs
shell> cvs -d /var/lib/cvsd/myrepos init
shell> cvsd-passwd /var/lib/cvsd/myrepos anonymous
shell> cvsd-passwd /var/lib/cvsd/myrepos cvsuser
shell> cvsd-passwd /var/lib/cvsd/myrepos -foo
shell> chown -R cvsd:cvsd /var/lib/cvsd
shell> service cvsd restart
/etc/cvsd/cvsd.conf
RootJail /var/lib/cvsd
Repos /myrepos
Listen * 2401
shell> cvs -d :pserver:[email protected]:/myrepos login
shell> cvs -d :pserver:[email protected]:/myrepos checkout