WinCVS and CVSNT concise use

xiaoxiao2021-03-06  39

WinCVS and CVSNT Concise Users (1) Zhang Lihai published on November 24, 2004 Team: CVS

1 Introduction:

CVS is a version-controlled tool. At present, there are different versions under Linux and Windows; however, most applications in China are open software organizations such as Linux and other open source, and they do not have the system. The introduction of CVS under Windows is a few.

This article is an experience introduction to the CVS in a LAN environment of Windows. Step by step to describe how to configure and use CVS server-side and clients. At the same time, this article only uses the most basic things in CVS, there are many more advanced things, this article is not involved. Below is another connection map of this article, you are welcome to discuss use and make progress together.

Article connection: http://www.kuihua.net/book/list.asp? Id = 66

Forum connection: http://www.kuihua.net/bbs/dispbbs.asp? BoardId = 1 & rootid = 670 & id = 670

2 Installed version:

2.1 Server (CVSNT)

1. This article uses CVSNT-2.0.4, which is a relatively stable version, do not use the latest CVSNT-2.1.1, I found more serious bugs in use.

2. Download connection: http://www.cvsnt.org Currently, it provides downloads from version 2.0.6 and 2.1.1.

3. The above connection also provides source code, interested friends can also download it carefully :).

4. Have a heart, carefully observe, will find: http://www.cvsnt.org does not provide any client download, because cvs.exe can be used for both the server side and the client, WinCVS is For the convenience of the client, the shell is used. (About this, I did not have any confirmation, just an experience in the process of use, welcome everyone to discuss.)

2.2 Client (WinCVS)

1. This article uses WinCVS-1.3b13, which should be a new version :), I have not found any serious bugs during use.

2. Download connection: http://sourceforge.net/projects/cvsgu/

3. This website also offers a wealth of CVS documentation and related source code, as well as the related documents and code below the OS; friends with the collection are blessed :).

4. The version of the CVSNT used by WinCVS-1.3b13 is CVSNT-2.0.2, and no incompatible or conflict is found when used in conjunction with the server-side CVSNT-2.0.4.

5. The results displayed in my system use the CVS Version command as follows:

Client: Concurrent Versions System (CVSNT) 2.0.2 (Client / Server)

Server: Concurrent Versions System (CVSNT) 2.0.4 (Client / Server)

3 Server-side (CVSNT) installation and configuration: 3.1 Server-side machine and environment configuration: 1. Operating system: Windows 2000 Professional SP2 Chinese version 2. Machine name: Server 3. Machine Address: 192.168.0.6 (internal IP) 4. Network Environment: 100 megabytes exchange LAN 5. Hard disk partition format: FAT32 and NTFS can be. 6. Prepare 2 CVSNT working directory: f: khroot (root directory of your own source code) F: khtemp (directory of CVS error information) 7. There is a list of users on this machine: (by NT or local machine) User creation) Administrator Jackey (ordinary user) GOURY (ordinary user) RioleE (ordinary users) 3.2 Install CVSNT: 1. Download CVSNT-2.0.4; use administrator to log in to the Server machine. 2. Double-click the self-extracted EXE file, select Full Install, other in the default mode; you can find more than 2 services in the service controller after installation: CVSNT and CVSLOCKING 3. Send Service Control Panel to the desktop, form shortcuts . 4. The installer will automatically install the CVS installation path, set to the system's path environment variable, so the user can perform cvs.exe anywhere in the console (CMD), which is important to the following configuration! ! 3.3 Configuring CVSNT Servers: 1. Double-click Service Control Panel shortcut, in the Service Status page, confirm that 2 services are normal and stable. 2. Select the Repository page, click the Add button, choose the ready-to-KHROOT directory, confirm, OK, Yes, then create a cvsroot directory below F: khroot, this is the default management directory (default module) ). If an error is reported, it is that the system Path path is not set correctly. 3. Select the Advanced page, hook Use Local Users for PServer ..., (Why? I don't know! J), select F: khtemp, confirm, OK in the Temporary column. 4. Press the [Application] button, confirm, exit, ok, get it! ! 3.4 Summary: 1. To this, the CVSNT server is basically configured, and WinCVS is used and managed below.

2. Because CVS supports remote management, it is the characteristics of the client and server integration, so we will add all managers such as users, permission control, module maintenance, and put it in the remote (WinCVS), the server You can enter the lock state in Ctrl ATL DEL, and all the following work is handed over to the distal WinCVS for management. 4 Client (WinCVS) installation and configuration: 4.1 Client machine and environment configuration: 1. Operating system: Windows 2000 Professional SP2 Chinese version 2. Machine name: YCW2000 3. Machine Address: 192.168.0.2 (internal IP) 4. Network environment: 100 trillion swap LAN, you can access the Server 5. Hard Disk Partition Format: FAT32 and NTFS can be. 4.2 Install WinCVS: 1. Download WinCVS 1.3b13, all according to the default installation. 2. Start WinCVS and start using it. Special note: All of the following operations are remotely completed on YCW2000 (192.168.0.2). At this time, the server (192.168.0.0.6) host has entered a lock state. 5 Administrators use WinCVS for remote management: 5.1 Configuring WinCVS as an administrator status: 1. Prepare the administrator work directory: (on YCW2000 machine) E: CVSClientAdmin (Administrator Work Directory) E: CVSTemp (WinCVS Tempory) 2. When you start WinCVS, you can automatically pop up the Preferences configuration page, or you can enter by admin => Preference menu; you need to configure the following three pages when you use: l General page settings: Note: Enter it according to the illustration It is necessary to note that the format of the PATH section is UNIX path format, which refers to the work root directory set by the CVSNT. L CVS page settings: Note: The Home path is the storage location of files such as setting password. You must specify, otherwise, when logging in, WinCVS also pops up the setting box. This HOME path needs Python.exe this plug-in. Here you have prepared path: ECVSTEMP L WINCVS page settings: Note: This page sets the WinCVS plug-in editing program, usually easy to use using UltraEdit. 3. Set the work path of the administrator: You can click the icon, or the view => browse location => change ... menu is set, select the ready path: E: CVSClientAdmin, confirm, OK, this directory will appear in this directory The left navigation bar of WinCVS [Workspace]. 4. At this point, WinCVS is configured to use a remote administrator to use the basic operation drill you need for general administrators. The content of the drill is: Administrator needs to manage Jackey, Goury, Riolee three users, and establish a work directory for these three users, each can only access their own work directory.

At the same time, only Administrator can perform permission assignment, and other people do not have any administrative privileges. WinCVS and CVSNT Concise User Hand (2) Published on November 24, 2004, 12:56: CVS

5.2 Administrator conducts management drills:

1. Log in to the remote CVSNT:

l Select Admin => Login menu, default setting, OK.

l Display the password input box, confirm, OK. Note the return result of the observation of the output box [OUTPUT].

2. Checkout Default Module: (CVSROOT Management Module)

l In the left navigation bar [Workspace], select [Admin] to press the right button, select [Checkout Modules ...], enter CVSROOT in [Checkout Settings], determine, OK. As shown below:

l If it is successful, an [CVSROOT] directory will be added under the [Admin] column. Indicates that you have downloaded the [CVSROOT] management module to your local.

3. Directory permissions in CVS:

l System support list:

R (read permissions)

W (write permission)

c (create and delete permissions)

N (no permissions)

l By default, any user has all permissions of any directory.

l In any case, only the owner of the directory and the Administrator have the authority to change the credit. Here's how to modify the owner of the directory authority and directory.

4. Modify the permissions of cvsroot: Only the Administrator has three all permissions of RCW.

l Select the [cvsroot] module that just downloaded, [Ctrl L] or admin => Command line ..., pop up the Command Line Settings dialog box, execute the CVS command directly.

l Cancel all users' default privilege: CVS Chakl Default: N Enter, OK, complete.

l Set Administrator owns all permissions: CVS Chacl Administrator: RCW Enter, OK, complete.

l Change the owner of [cvsroot]: CVS Chown Administrator Enter, OK, complete.

l View [cvsroot] permission status: CVS LSACL Enter, OK, display in [OUTPUT]:

Owner: administrator

Default: N

Administrator: RWC

l [cvsroot] is configured.

5. Write a module file in the code base, which is convenient for multi-user downloads.

l The module file format you need to write is as follows: (Basic features)

[Description of the module] [n space or parameter] [Relative Directory Path 1 (DIRA)]

[Description of the module] [N space or parameters] [Relative Directory Path 2 (DIRB)]

......

[Description of module x] [n space or parameter] [Relative Directory Path X (DIRX)]

l [Description Information] The -A parameter needs to be used when it is inconsistent with the [relative path].

l [relative path] refers to the CVS automatically with the top path. Here is F: khroot, so the complete path of the above example is: f: khrootdiral understands the module file structure, now to act: Double click [cvsroot] The module file under the module is edited with UltraEdit.

l Assign a work directory for Jackey, Goury, Riolee, and completes other module descriptions.

CvsRoot CvsRoot

Jackey Work Directory - A Jackey

Goury Work Directory - A GOURY

Riolee Work Directory - A Riolee

l The editorial is completed, the trading. Back to WinCVS, select Modules file [CTLR M] or right click to select [Commit Selection ...], default setting, [confirmation], OK, complete upload.

6. Upload the working directory for three users:

l E: cvsclientAdmin on YCW2000 machines established three directories, respectively, named: Jackey, Goury, Riolee, as a temporary exchange directory.

l In each directory of the newly created, use UltraEdit or copy a readme.txt as a primer file! ! :)

l The then, return to WinCVS, form the following directory structure in the [Admin] column of the [Workspace] column:

l Select GOURY, JACKEY, RIOLEE, right, click [Import Module], select [Continue], all of which use the default value, [OK], OK to complete the upload.

l Close the [OUTPUT] window, confirm that it is successfully uploaded.

l Transfer to the system's Explore program, delete the three directories in the E: CVSClientAdmin directory, Goury, Riolee. Then go back to WinCVS. (Be sure to delete !!! :)

At this, the upload work of the working directory is completed.

7. [Checkout] Download 3 users' work catalogs to the [admin] directory:

l Select the [admin] directory, right button in the [Workspace] column, click [Checkout Module ...], as shown below:

l Select [...] to get the latest module configuration on CVSNT, pop up the following message box:

l This structure is the module file format information written in Modules. Select the [Jackey Work Directory] download to the E: CVSClientAdmin directory of YCW2000 machine.

l According to the above operation, download the [GOURY Work Contents] and [Riole Work Contents] separately separately. Form a state:

8. Set access to each directory for three users. (Only you can access your own work directory)

l Select the [GOURY] directory, [Ctrl L] or admin => command line ..., pop up the Command Line Settings dialog box, execute the CVS command directly. l Cancel all users' default privilege: CVS Chakl Default: N Enter, OK, complete.

l Set GOURY Have all permissions: CVS Chakl Goury: RCW Enter, OK, complete.

l View [cvsroot] permission status: CVS LSACL Enter, OK, display in [OUTPUT]:

Owner: administrator

Default: N

GOURY: RWC

l Set the [Jackey] and [riolee] access to the [Jackey] to access the "Jackey].

At this, the directory allocation of 3 users is completed. Note that although Administrator has no power [Checkout] that 3 users' work directory, but it is the owner of these directorys again, therefore, only it has power to change access to these directories.

9. User Management Principles in the CVSNT system:

l CVSNT users are associated with NT users on this machine (here the Server machine), that is, CVSNT is all existing users in this unit, so it is not necessary to set any username by default. Use the user name already existing on this unit to log in with WinCVS.

l Only use administrator to log in to the CVSNT system, there is a power to create and delete new users.

l The new users created using CVS must be bound to NT users on the server-side machine to take effect; therefore, this new user is actually a substitute to bind its NT users, called "alias in the CVS system ".

l A NT user can have multiple 'avive' or 'alias', which acts as a plurality of CVS users.

10. Use WinCVS to add and delete new users. (Make sure to use administrator to log in)

l [Ctrl L] or admin => Command Line ..., pop up the Command Line Settings dialog box, execute the CVS command directly.

l Add new user [Killer]: CVS Passwd -a Killer Enter, set password, OK, complete.

l Bind [Killer] to [Jackey]: CVS Passwd -r Jackey Killer Enter, set password, OK, complete.

l The password entered twice can be different, but the password input input is the final password.

l Delete users [Killer]: CVS Passwd -x Killer Enter, OK, complete.

l Other special features View the help of the Passwd command.

11. After the use is complete, you must [logout] because WinCVS is exited when you exit it automatically log out of your remote session; doing this to prevent other people from open WinCVS, you can do all the operation you can do without login .

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

New Post(0)