Presentation is loading. Please wait.

Presentation is loading. Please wait.

數位芝麻網路公司 蔡志展 <chihchun@digitalsesame.com> 2001/8/18 CVS Setup 數位芝麻網路公司 蔡志展 <chihchun@digitalsesame.com> 2001/8/18.

Similar presentations


Presentation on theme: "數位芝麻網路公司 蔡志展 <chihchun@digitalsesame.com> 2001/8/18 CVS Setup 數位芝麻網路公司 蔡志展 <chihchun@digitalsesame.com> 2001/8/18."— Presentation transcript:

1 數位芝麻網路公司 蔡志展 <chihchun@digitalsesame.com> 2001/8/18
CVS Setup 數位芝麻網路公司 蔡志展 2001/8/18

2 Telling CVS where your repository is
There are several ways to tell CVS where to find the repository. You can name the repository on the command line explicitly, with the -d (for "directory") option: cvs -d /usr/local/cvsroot

3 Telling CVS where your repository is
Or you can set the $CVSROOT environment variable to an absolute path to the root of the repository, `/usr/local/cvsroot' in this example. To set $CVSROOT, csh and tcsh users should have this line in their `.cshrc' or `.tcshrc' files: CVSROOT=/usr/local/cvsroot export CVSROOT

4 Creating a repository To create a repository, run the cvs init command. It will set up an empty repository in the CVS root specified in the usual way cvs -d /usr/local/cvsroot init

5 :method:[[user][:password]@]hostname[:[port]]/path/to/repository
Remote repositories Your working copy of the sources can be on a different machine than the repository. Using CVS in this manner is known as client/server operation. You run CVS on a machine which can mount your working directory, known as the client, and tell it to communicate to a machine which can mount the repository, known as the server. Generally, using a remote repository is just like using a local one, except that the format of the repository name is:

6 Connecting with rsh CVS uses the `rsh' protocol to perform these operations, so the remote user host needs to have a `.rhosts' file which grants access to the local user. CVS_RSH cvs -d checkout foo

7 Using the client with password authentication
To run a CVS command on a remote repository via the password-authenticating server, one specifies the pserver protocol, optional username, repository host, an optional port number, and path to the repository. For example: cvs -d :pserver:faun.example.org:/usr/local/cvsroot checkout someproj

8 Setting up the server for password authentication
/etc/services /etc/inetd.conf cvspserver 2401/tcp #CVS network server cvspserver 2401/udp #CVS network server cvspserver stream tcp nowait root /usr/bin/cvs cvs – --allow-root=/usr/cvsroot pserver


Download ppt "數位芝麻網路公司 蔡志展 <chihchun@digitalsesame.com> 2001/8/18 CVS Setup 數位芝麻網路公司 蔡志展 <chihchun@digitalsesame.com> 2001/8/18."

Similar presentations


Ads by Google