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:
9. command-line test (or use Eclipse):
cvs -d :pserver:ljs@192.168.0.3:/ljsrepo login
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