1. Install cvs &
yum install cvs
yum install xinetd
2. mkdir a repository folder
mkdir /home/cvsroot
3. Create GroupName & UserName
groupadd cvs
useradd cvsroot –g cvs
passwd cvsroot
4. Change folder property of group & user
chgrp -R GroupName cvsroot/
chown -R UserName cvsroot/
5. vi /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=/var/cvs
server_args = -f --allow-root=/home/cvsroot pserver
# bind = 127.0.0.1
}
6. Start cvs
/etc/init.d/xinetd restart
Stopping xinetd: [ Done ]
Starting xinetd: [ Done ]
7. check firewall
A. SELINUX
vi /etc/selinux/config
# SELINUX=disabled
B. Firewall Configuration
Firewall: [ ] Enabled
8.
Create a user
#useradd happy –g cvs
#passwd happy
Client :
1. Login into Server
cvs -d :pserver:happy@121.3.1.155:/home/cvsroot/ login (Test this will know the second one happy is password)
or
cvs -d :pserver:happy:happy@121.3.1.155:/home/cvsroot/ login
First happy is account
Second happy is password
So go to server change the password of happy to happy.
If no see any error message, then successful.
Reference:
- [cvs] how to use cvs at the internet
- http://bbs.csdn.net/topics/90367620
- Linux下安装CVS服务
- cv配置登陆时总是提示:no such repository,请教各位大哥如何解决呢?
0 意見:
張貼留言