Set up CVS with CVSNT and WinCVS [2]

xiaoxiao2021-03-06  42

From: http://www.yesky.com/softchannel/72342376173010944/2003226/1757329_1.shtml II. Create a CVS code warehouse (repository) here I don't explain more of the concept and use of the CVS warehouse, you can refer to Introduction to other articles in the Flying Network Document Center. As long as you remember, the CVS warehouse is the memory of each version of the code and all relevant records in the server side. Sometimes it is called Master Copy, why, we will learn in the following chapters.

Before creating a CVS warehouse, we first need to create a new folder to act as a repository. The folder is preferably not placed with the program, so that data is destroyed when the system crashes. Then, click "CVS for NT" -> "CVS for NT" -> "Configure Server", select the "Repositories" tab and select the "Repositories" tab, and the following dialog box will appear.

Click on the "Add" button below to let you select the dialog box, select the folder we just created, and then determine, then change in the list box shown above in the center of the dialog box shown below.

Shows the path to the folder we created above. Such a CVS warehouse is created.

Third, configure the CVS account

Above we have installed CVSNT and created a CVS warehouse. At this time, we need to create an account to each client connected to the server to ensure that they can work normally.

The easiest way is to right-click My Computer, select Manage, right-click "User" in Local User and Group, select "New User" to add. This is a user who created Windows and creating a CVS account.

Fourth, WinCVS installation and configuration

We have already introduced all the steps in the server side, and now we already have a CVS server, so in order to implement the Client / Server (Client / Server) mode, we now have to continue to create one or more clients.

The software used by the client is WinCVS can be downloaded from www.wincvs.org, which is a graphical interface, more intuitive, and powerful. There is nothing special in WinCVS installation. Like other software, you can install it.

After the installation is complete, the most important thing is to configure the client, and the purpose is to let the CVS client find the warehouse that needs to be accessed on the server according to the configuration information. Select "Admin" -> "Preferences" in the WinCVS window menu bar, the following dialog box:

Enter the configuration string in the "cvsroot" column, the format is as follows:

: pserver: username @ hostname (or IP address): CVS Warehouse Path

This format is absolutely unfair, otherwise the CVS command cannot be implemented.

Let me explain the meaning of the above string:

1. "PServer" is the most common way to use CVS remote access;

2, "username" refers to the username on the server in the server, that is, we speak in the "Configuring CVS Account" above;

3. "Hostname" is the host name of the CVS server, or it is its IP address;

4, "CVS Warehouse Path" is a directory where the CVS warehouse is used to distinguish which warehouse you want to access (because there may be multiple different warehouses on a CVS server).

For example: PServer: NJX @ frontfree-njx: / master

Click OK. We have now implemented the CVS's "Client / Server" mode. In order to determine the above steps, we have to test. The best inspection method is to let CVS clients log in to the server. Select "Admin" -> "login" in the menu bar, the following dialog box appears: prompt you for your password. The password is the password of the account created above. After completing, click OK, then pay attention to the result of the command results below the WinCVS window, if the following information appears:

***** CVS EXITED NORMALLY with CODE 0 *****

The login is successful. If not, you will show an error when you do the above steps, please check it carefully. If we successfully, we will start using the powerful features of CVS.

note:

1. The above steps are also applicable to the machine that is already a CVS server, that is, the previously mentioned server is also a client.

2, CVS login can only be successfully logged in again, do not have to log in every time.

转载请注明原文地址:https://www.9cbs.com/read-64173.html

New Post(0)