cvs安装配置笔记

1 先用源码或rpm包安装cvs
2
# su root
# groupadd cvs
# useradd -g cvs -G cvs –d /home/cvsroot cvsroot
# passwd cvsroot
#chmod –R 775 /home/cvsroot
 
3
# su cvsroot
# cvs -d /home/cvsroot init

4 add xinet service
#su root
vi /etc/xinet.d/cvspserver
service cvspserver
{
        disable = no
        socket_type = stream
        wait = no
        user = root
        env = HOME=
        server = /usr/local/bin/cvs
        server_args = -f --allow-root=/home/cvsroot pserver
}

5 config port
vi /etc/service
cvspserver 2401/tcp #pserver cvs service
cvspserver 2401/udp #pserver cvs service

6 start service
/etc/init.d/xinetd restart
netstat -ln |grep 2401
if result is like this , it's ok.
tcp        0      0 0.0.0.0:2401                0.0.0.0:*                   LISTEN

7 add user and password of cvs
vi passwd.pl
#!/usr/bin/perl
srand (time());
my $randletter = "(int (rand (26)) + (int (rand (1) + .5) % 2 ? 65 : 97))";
my $salt = sprintf ("%c%c", eval $randletter, eval $randletter);
my $plaintext = shift;
my $crypttext = crypt ($plaintext, $salt);
print "${crypttext}";

vi /home/cvsroot/CVSROOT/passwd
user1:xxxxx:cvsroot
user2:xxxxx:cvsroot
user3:xxxxx:cvsroot

xxxxx is the result of
"./passwd.pl xxxxxxx"


8 login and add project to resposity
#su user1
vi .bash_profile
//add this line:
export CVSROOT=:pserver:user1@localhost:2401/home/cvsroot

#cvs login   // input the passwd after this command
// if my project code is under /project_src
#cvs import -m "some message about this project" /project_src v_0_0_1 start

ok, that's all.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值