cvs is on my ubuntu again. Some steps and tips are shared on this post. Problems with xinet and lo are special on
6.06.
to be contined...
- I use lvm for my cvs repository. So the first step is create a lv named lv_cvsroot and mount it on /cvsroot.
lvcreate -L500m -nlv_cvsroot /dev/rootvg
- mkfs /dev/rootvg/lv_cvsroot
- mkdir /cvsroot mount /dev/rootvg/lv_cvsroot /cvsroot
- vi /etc/fstab to mount the lv automatically when booting on ubuntu.
- Add a group named cvs.
$/usr/sbin/groupadd cvs - Add a user named cvsroot which group is cvs and home diretory is /cvsroot.
$/usr/sbin/useradd -g cvs -d /cvsroot cvsroot - chmod 771 /cvsroot
chown cvsroot:cvs /cvsroot - add user to cvs group.
vi /etc/group - su to cvsroot and initilize cvs repository.
su - cvsroot cvs init -d /cvsroot
- Install and config inetd. Ubuntu6.06 doesn't has xinet as a default component, we should install it by ourself. $apt-get install xinet
- vi /etc/services to open port 2401 for cvs. Make sure the following lines are in the file. If not add it yourself.
cvspserver 2401 tcp cvspserver 2401 udp
- Add cvspserver service to xinet.
cd /etc/xinet.d
vi cvspserver - /etc/init/xinet.d restart to restart xinet.d daemo.
- Test if cvs is ok.
netstat -na|grep 2401 - Some problems I encountered when installing cvs.
- Can't login cvs. When I try
$cvs login
The cvs server doesn't repsone. The port 2401 is ok. I can't ping 127.0.0.1 or localhost. There must be something wrong with my lookback address. I found that network interface lo is down.
ifconfig lo up
lo is ok. Somebody reported a bug about the network interface lo when booting the system
- Can't login cvs. When I try
to be contined...