WinCVS and CVSNT concise use

xiaoxiao2021-03-06  55

WinCVS and CVSNT concise use

1. Foreword: CVS is the version controlled weapon, currently have different versions under Linux and Windows; however, most applications in China are open software organizations such as Linux and other open source, and the explanation is not systematic, let People don't touch the mind; the use 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 Connected http://www.kuihua.net/bbs/dispbbs.asp?boardid=1&;rootid=670&id=670

2, installation version: 2.1, server side (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 the 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 downloads, because cvs.exe can be used for both the server and the client, WinCVS is for The client is used for the convenience of use. (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. Downloading the connection http://sourceforge.net/projects/cvsgui/ 3. This website also provides a rich CVS document and related source code, as well as the related documents and code below the OS; friends with a collection of friends 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 are as follows: Client: Concurrent Versions System (CVSNT) 2.0.2 (Client / Server) Server: Concurrent Versions System (CVSNT) 2.0.4 (Client / Server)

3, the installation and configuration of the server side (CVSNT):

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 trillion swap LAN 5. Hard disk partition format: FAT32 and NTFS can. 6. Prepare 2 CVSNT working directory: f: / khroot (root of your own source code) F: / khtemp (directory) 7. There is a list of users on this machine: (by NT or This machine's user created) Administrator Jackey (ordinary user) GOURY (ordinary user) Riolee (ordinary users) 3.2, install CVSNT:

1. Download CVSNT-2.0.4; log in to the Server machine using administrator. 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, configure the CVSNT server:

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, select the F: / KHROOT that you have prepared, confirm, OK, Yes, then create a cvsroot directory below F: / khroot, which is the default management directory of CVS ( 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. At this point, 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 Edition 2. Machine Name: YCW2000 3. Machine Address: 192.168.0.2 (Internal IP) 4. Network Environment: 100 trillion switching LAN, you can directly access To 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 the YCW2000 machine) E: / cvsclient / admin (Administrator Work Directory) E: / CVSTEMP (WinCVS Temporary Directory) 2. When you start WinCVS, you will automatically pop up the Preferences configuration page. You can also enter by admin => Preference menu; the first use of the three pages need to be configured: General Page Settings: Note: You need to enter according to the illustration, you need to pay attention to the format of the PATH section is the UNIX path format. It refers to the root directory set by the CVSNT end. CVS page settings: Note: The Home path is the storage location of files such as setting password, which must be specified, otherwise, when logging in, WinCVS also pops up the setting box. This HOME path needs Python.exe this plug-in. Here you have already prepared path: E / CVSTEMP WINCVS page settings: Note: This page sets the WinCVS plug-in editor, usually easy to use using UltraEdit. 3. Set the work path of the administrator: You can click the icon, or you can set it up, or select the prepaid path: E: / cvsclient / admin, confirm, OK, this directory The left navigation bar of WinCVS will appear [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.

5.2 Administrator conducts management drills:

1. Login Remote CVSNT: ◇ Select admin => Login menu, default setting, OK. ◇ ◇ 弹 密 输入 输入, confirm, ok. Note the return result of the observation of the output box [OUTPUT]. 2. Checkout Default Module: (CVSROOT Management Module) ◇ In the left navigation bar [Workspace], select [Admin] Press Right-click, select [Checkout Modules ...], enter cvsroot in [Checkout Settings], enter CVSROOT, OK. As shown below: 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: ◇ System Support Limits List: R (Read Permission) W (Write Permissions) C (Create and Delete Permissions) N (No Permissions) ◇ By default, any user owns All permissions for any directory. ◇ 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.

◇ 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. ◇ Cancel all users' default permissions: CVS Chakl Default: N Enter, OK, complete. ◇ Set the administrator owners: CVS Chakl Administrator: RCW Enter, OK, complete. ◇ Change the owner of [cvsroot]: CVS Chown Administrator Enter, OK, complete. ◇ View [CVSROOT]: CVS LSACL Enter, OK, display in [OUTPUT]: Owner: administrator default: n administrator: rwc ◇ [CVSROOT] permission configuration is complete.

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: (Implement basic function) [Description of the module] [N space or parameters] [Relative directory path 1 (DIRA)] [Module 2 description] [n space or parameters] [Relative Directory Path 2 (Dirb)] ... [Description of Module X] [N space or parameters] [Relative Directory Path X (Dirx)] ◇ [Description Information] and [Relative Path] When it is inconsistent, it needs Use the -a parameter. ◇ [Relative Path] refers to the CVS automatically with the top path. Here is F: / khroot, so the full path of the above example is: f: / khroot / dira ◇ understand the module file structure, now come to actually operate one : Double-click the module file under the [CVSROOT] module, and edit with UltraEdit. ◇ 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 Riole Work Directory - A RioleE ◇ Edited, the deployment. 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:

◇ E: / cvsclient / admin on the YCW2000 machine separately established three directorys, respectively, named: Jackey, Goury, Riolee, as a temporary exchange directory. ◇ Use UltraEdit or copy a readme.txt as a primer file in each directory of the newly created. ! :) ◇ Then, return to WinCVS, form the following directory structure in the [admin] column of the [Workspace] column: ◇ Select Goury, Jackey, Riole, right, click [Import Module], select [Continue], other All defaults, [OK], OK, complete the upload work. ◇ Carefully observe the [OUTPUT] window, and confirm that it is successfully uploaded. ◇ Transfer to the system's Explore program, delete three directorys in the E: / CVSClient / Admin directory, GOUREE. Then go back to WinCVS. (Be sure to delete !!! :) ◇ here, to complete the upload of the working directory. 7. [Checkout] Download 3 users' work catalogs to the [admin] directory:

◇ Select the [admin] directory, right button in the [Workspace] column, click [Checkout Module ...], as shown below: ◇ Select [...], get the latest module configuration on CVSNT, pop up the following message box: ◇ This structure It is the module file format information written in Modules. Select [Jackey Work Directory] to download the E: / CVSCLIENT / Admin directory of YCW2000 machine. ◇ Download the [Goury Work Contents] and [Riole Work Directory] in turn. Form a state:

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

◇ Select the [GOURY] directory, [Ctrl L] or admin => Command line ..., pop up the Command Line Settings dialog box, execute the CVS command directly. ◇ Cancel all users' default permissions: CVS Chakl Default: N Enter, OK, complete. ◇ Set GOURY owners: CVS Chakl Goury: RCW Enter, OK, complete. ◇ View [cvsroot]: CVS LSACL Enter, OK, display in [OUTPUT]: Owner: Administrator Default: N Get: RWC ◇ Set [Jackey] and [Riolee] in turn, etc. access permission. Here, 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: ◇ CVSNT users are associated with NT users on the unit (here the Server machine), that is, the CVSNT is all existing users on this machine, so it is default Under the case, any user name can be set, as long as the user name already existing on this machine can be logged in with WinCVS. ◇ Only use administrator to log in to the CVSNT system, there is only the authority to create and delete new users. ◇ The new user created by 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 ". ◇ One NT user can have multiple 'substive' 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)

◇ [CTRL L] or admin => Command line ..., pop up the Command Line Settings dialog box, execute the CVS command directly. ◇ Add new user [Killer]: CVS Passwd -a Killer Enter, set password, OK, complete. ◇ Bind [Killer] to [Jackey]: CVS Passwd -r Jackey Killer Enter, set password, OK, complete. ◇ The password entered twice can be different, but the second input password is the final password. ◇ Remove users [Killer]: CVS Passwd -x Killer Enter, OK, complete. ◇ 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 .

6 Special Actions in WinCVS: 6.1 How to delete downloaded files or directories: 1. Select one or more files downloaded, execute the [remove] command. 2. Select these files again, execute the [commit] command, complete the operation of the deleted file. 3. Equity CVS does not delete any files and directories, even if the above operation is performed, some files are deleted, and the remote CVS actually executes the file submitted to the deleted file in a directory called [attic]. Therefore, these deleted files can be recovered by a certain method. 6.2 How to recover the file or directory that has been deleted: 1. Recover the file after the [Remove] command is executed. ◇ [Ctrl L] directly enter the command cvs add xxxxx, or execute the [Add Selection] interface operation. ◇ This can directly recover the deleted files that have not been submitted. 2. Recover the file after the [commit] command is executed. ◇ You can only enter the command cvs add xxxxx directly with [CTRL L], and you will get an empty file. ◇ Select this empty file, execute [update] operation, get the entity of this file. ◇ Select this file again, execute the [commit] operation, get the latest version of this file. 3. Because any directory is not deleted in the CVS system, it will not be able to recover the recovery of the directory, but the CVS system is to delete the empty directory on the user's local (such as: YCW2000) by default. Use the following method to get an empty directory that has been deleted: CVS Checkout -P XXX, or you can set it in the Admin => Preference [Global] page. 4. It can be seen that the CVS system guarantees that as long as you upload to the server file, you can use the Administrator to log in with administrator, and find the missing files through the above method. Unless the user enters the remote server, manually delete the file, there is no way :) 6.3 How to get the previous version of the file: 1. Sometimes we need to get the previous version of the file, and WinCVS only passes the latest version by default. 2. Select a file, [CTRL G] or right key, click [Graph Selection ...], use the default setting, you can get the version of the version of the graphics structure described. 3. Select a version, right, click [RETRIEVE Revision] to get the corresponding old version of the file. Of course, you can also get the latest version of the file :) 6.4 Sometimes WinCVS will become very slow, what should I do? 1. Confirm that the CVSNT server is not installed on the machine installed in WinCVS because the version they use may be inconsistent. 2. Only WinCVS is installed, but I have installed other versions of WinCVS. What should I do? 3. First uninstall all WinCVS systems, delete residual files in the installation directory.

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

New Post(0)