Install chrooted CVS server on Ubuntu

Install chrooted CVS server on Ubuntu

Environment:
CVS client/server: 1.12.13
Ubuntu: 10.04
Server IP: 192.168.0.3

Target: install cvs client/server; add a user repository - ljsrepo with user "ljs"

*********************************************************************************
In the following, the chroot directory is the default one - "/var/lib/cvsd" (see the line "RootJail /var/lib/cvsd" in /etc/cvsd/cvsd.conf). All repositories are relative to this directory, but need to be specified with /. For example, if there is a repository in /var/lib/cvsd/ljsrepo, then in the configure file /etc/cvsd/cvsd.conf we should add a line as "Repos /ljsrepo".

1. install client tools(we need them to do administration tasks, such as login, checkout, etc.):
sudo apt-get install cvs

2. install cvs server:
sudo apt-get install cvsd

3. create a repository, set its permission:
sudo mkdir /var/lib/cvsd/ljsrepo
sudo chown -R cvsd:cvsd /var/lib/cvsd/ljsrepo
#initialize the repo
sudo cvs -d /var/lib/cvsd/ljsrepo init

4. register the repository in /etc/cvsd/cvsd.conf by adding the following line:
Repos /ljsrepo

5. add an account(user/password) for the repository:
sudo cvsd-passwd /var/lib/cvsd/ljsrepo +ljs

6. prevent pserver from checking system accounts:
sudo vi /var/lib/cvsd/ljsrepo/CVSROOT/config; set the following:
SystemAuth=no

7. correct tcp-wrapper problem with hosts that support IPv6 connections by changing the following in /etc/cvsd/cvsd.conf:
Listen * 2401 -> Listen 0.0.0.0 2401

8. restart cvs server:

sudo /etc/init.d/cvsd restart

check log message: sudo vi /var/log/syslog
check if port 2401 is open:  netstat -na|grep 2401


9. command-line test (or use Eclipse):
cvs -d :pserver:ljs@192.168.0.3:/ljsrepo login




评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值