Install cvs on Ubuntu6.06 LTS

6 篇文章 0 订阅
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.
  1. 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

  2. mkfs /dev/rootvg/lv_cvsroot
  3. mkdir /cvsroot mount /dev/rootvg/lv_cvsroot /cvsroot
  4. vi /etc/fstab to mount the lv automatically when booting on ubuntu.
  5. Add a group named cvs.
    $/usr/sbin/groupadd cvs
  6. Add a user named cvsroot which group is cvs and home diretory is /cvsroot.
    $/usr/sbin/useradd -g cvs -d /cvsroot cvsroot
  7. chmod 771 /cvsroot
    chown cvsroot:cvs /cvsroot
  8. add user to cvs group.
    vi /etc/group
  9. su to cvsroot and initilize cvs repository.
    		su - cvsroot
    		cvs init -d /cvsroot
    
  10. Install and config inetd. Ubuntu6.06 doesn't has xinet as a default component, we should install it by ourself. $apt-get install xinet
  11. 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
    		
  12. Add cvspserver service to xinet.
    cd /etc/xinet.d
    vi cvspserver
  13. /etc/init/xinet.d restart to restart xinet.d daemo.
  14. Test if cvs is ok.
    netstat -na|grep 2401
  15. 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
Place holder.
to be contined...  
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值