本文主要是介绍安装cvs server,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
◆STEP1:
Install CVS files:
sudo apt-get install cvs
◆STEP2:
Install the CVS server:
sudo apt-get install cvsd
When prompted in the cvsd installation process for Repository, type in “/cvsrepo”.
◆STEP3:
Now that the cvsd installation in complete goto /var/lib/cvsd
or seeking for a change(or if there is a new version of cvs updated):
sudo cvsd-buildroot /var/lib/cvsd
◆STEP4:
If the folder cvsrepo does not exist, then create it ..
cd /var/lib/cvsd
sudo mkdir cvsrepo
sudo chown -R cvsd:cvsd cvsrepo
◆STEP5:
and then initialize the repository
sudo cvs -d /var/lib/cvsd/cvsrepo init
◆STEP6:
create a user and password
sudo cvsd-passwd /var/lib/cvsd/cvsrepo [username]
sudo vi /var/lib/cvsd/cvsrepo/CVSROOT/config
Change "SystemAuto=no"
PamAuth=no
LockDir=/tmp/cvsroot
Look out! “/tmp/cvsroot” 和RootJail的位置是相关的.
$ sudo mkdir /var/lib/cvsd/tmp/cvsroot
sudo vi /etc/cvsd/cvsd.conf
The default one should be:
RootJail /var/lib/cvsd
Repos /cvsrepo
Restart cvsd
$ sudo /etc/init.d/cvsd restart
◆STEP7:
Test
cvs -d :pserver:username@localhost:/cvsrepo login
cvs -d :pserver:username@localhost:/cvsrepo checkout .
pserver认证方式使用缺省端口,不使用代理.
若使用ssh认证方式,需要进行如下设置:
设置.ssh/config 和 .bashrc文件
$ cd ~
$ vi .ssh/config
添加内容为:
Host localhost
HostKeyAlias cvsserver
Hostname 192.168.11.134
Port=22
$chmod 600 .ssh/config
$ vi .bashrc
添加内容:
CVS_RSH=ssh
CVSROOT=:ext:mcl@localhost:/cvs
export CVSROOT
export CVS_RSH
有可能还需要进行PATH设置,然后export PATH
$source .bashrc
然后就能使用了
cvs co 目录文件名
cvs update 目录文件名
这篇关于安装cvs server的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!