Wednesday, 16 June 2004
Learn how to install and configure CVS as a pserver on linux.1. Install the latest cvs. You can download the rpm and install it or use apt-get if you have it installed
[root]# apt-get install cvs
2. create a user and group for the cvs user
[root]# adduser cvsuser [root]# passwd cvsuser
3.Create a cvs root directory
[root]# mkdir /usr/local/cvs (or where ever you want your root) [root]# chown cvsuser:cvsuser /usr/local/cvs
4. Initialize the cvsroot as the cvs user
[cvsuser]# cvs -d /usr/local/cvs init
5. Setup the pserver listener. Cvs is a xinetd component
[root]# cd /etc/xinetd.d [root]# vi cvs
service cvspserver { disable = no socket_type = stream wait = no user = cvsuser protocol = tcp env = '$HOME=/home/cvsuser' port = 2401 server = /usr/bin/cvs server_args = -f --allow-root=/usr/local/cvs pserver }
6. Start cvs
[root]# /etc/init.d/xinetd restart
CVS Pserver will listen on TCP port 2401. You can verify that it is running by looking at netstat
[root]# netstat -a -n | grep 2401 tcp 0 0 0.0.0.0:2401 0.0.0.0:* LISTEN
Set cvs to start at boot time
[root]# chkconfig --levels 35 xinetd on [root]# chkconfig --levels 35 cvs on
7. Log into cvs. Example from *nix client.
[cvsuser]# export CVSROOT=:pserver:cvsuser@yourserver.com:/usr/local/cvs [cvsuser]# cvs login
Now you can log in from any cvs client and import a project. I have found wincvs works well for a windows client. |
Easy to Follow Written by Guest on 2004-07-24 13:02:49 Easy to follow instructions. I had cvs running within 20 minutes. Thank!! | Written by Guest on 2005-09-06 10:41:09 [/LIST][*]null[LIST] |
Only registered users can write comments. Please login or register. Powered by AkoComment 1.0 beta 2! |