Chinaunix首页 | 论坛 | 博客
  • 博客访问: 781758
  • 博文数量: 434
  • 博客积分: 11187
  • 博客等级: 上将
  • 技术积分: 5221
  • 用 户 组: 普通用户
  • 注册时间: 2009-02-19 01:00
文章分类

全部博文(434)

文章存档

2016年(2)

2013年(1)

2012年(115)

2011年(195)

2010年(32)

2009年(89)

分类: LINUX

2011-01-07 17:46:12

Configuration.
The following software packages must be installed and available from your UNIX account:
CVS/cvs         UNIX CVS client
SSH/ssh         UNIX SSH client

Summary:
CVS:            CVS is a UNIX program that allows to connect to a local or
        remote CVS server/repository.  Using CVS, it is possible
        to copy any items that need editing, - programming code,
        HTML pages, sensitive system configuration files, - to
        directory in your UNIX account, work with them locally,
        and upload them to the CVS server once you are done.

SSH:            SSH is a terminal program that encrypts the communication
        between your machine and the server, thereby making any
        data, including usernames and passwords, invisible to
        potential attackers.

配置:
第一步:Make sure that both CVS and SSH are installed and available from your UNIX account.
        Use the following command to verify that both packages are available:
        which PACKAGE
        where PACKAGE is 'cvs' or 'ssh'. If the command returns an error, contact your system administrator.
    #ssh-keygen -t dsa
    生成的id_dsa.pub ,拷贝到cvs服务器端,相同账号.ssh目录下,执行cat id_dsa.pub>>authorized_keys2

第二步:Tell CVS to use SSH to communicate with the server:
    setenv CVS_RSH ssh (when your shell is csh/tcsh)
or
    export CVS_RSH=ssh (when your shell is bash)
    
    #vi ~/.bash_profile
    export CVS_RSH=ssh
    export CVSROOT=/usr/local/cvsroot
    #source ~/.bash_file
    
第三步:Now you can perform any CVS operations, such as checking out files, committing changes, etc.
        cvs -d :ext:YOUR_USERNAME@cvs.forum.swarthmore.edu:/cvsroot CVS_COMMAND

例如:
#cd /usr/local/cvsroot 到CVSROOT目录下,执行命令
#cvs -z3  -d :ext:账号@CVS服务器:cvs服务器端项目的目录  checkout  模块
阅读(1007) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~