CVSNT installation configuration under Windows 7, user allocation

  
        

Due to the recent development server repair, temporarily need to build a CVS under Windows7, use CVSNT, but found that CVSNT Contral Panel can not be used after installation.

Get used to the graphical operation, suddenly I don't know what to do. Had to learn a CVS command line. By the way, CVSNT does not have a graphical interface for sub-users. Everyone uses an administrator user to commit.

1. Install CVS.

Download to a CVSNT, install it, and then restart, you will find that CVSNT Contral Panel cannot be started under Windows7.

In addition, in order to use the command line, you need to add the CVSNT installation directory to the environment variable "PATH", such as C:\\Program Files\\CVSNT

After restarting the computer, in the DOS environment, Enter cvs -v to check if the installation was successful.

Use the command line below to create a Respository

2, create a repository

Want to place the repository. In cvs, the repository consists of many hierarchical files and directories in the computer file system, where you only need to tell the cvs the top level of the hierarchy. For example, my data warehouse is placed in D:\\pcms_cvs.

Use the command in DOS: cvs -d d:\\pcms_cvs init

ok. You are already a cvs administrator. The CVS default administrator username and password are the username and password of your current Windows user.

You can continue to add a project to this repository. However, you cannot create files directly in the repository: you can only use the cvs command to manipulate files.

3, create a simple project (can be done by MyEclipse, that is, share project)

import project, first transferred to the location where the project is saved. For example, my project home is saved under d:\\webserver\\www\\home, and transferred to this directory under DOS.

Use the command:

cvs -d d:\\webserver\\code -m "home" home home initial

d:\\webserver\\code is the location of the data warehouse.

-m "home" is a log message.

The first home is the project name.

The last two markers can now be ignored.

Tip: After creating a good project, you should not delete the contents of the local file immediately. It is best to extract the home project file from cvs to the local and verify whether the files are the same (just use one file). If it looks correct, you can delete the original file

3, manage users and permissions

cvs lsacl view permissions

cvs ls view accessible repositories

cvs passwd -r administrator -a mini Add user mini and bind to administrator mini is user, then prompt to enter this user password

cvs chacl -a reader,writer -u mini Root Set user Permissions (set the user mini to read and write permissions on the repository root)

cvs chacl -a none Set everyone has no permissions

(Note: Use with caution, because everyone has no permission Will not be able to have more permissions, can be set back to everyone has all permissions)

cvs chacl -a all Set everyone has all permissions

Add new users[aaa]:cvs passwd - a aaa Enter, set the password, OK, complete.

Bind [aaa] to [Administrator]: cvs passwd -r administrator aaa Enter, set the password, OK, complete

The password entered in the second time can be different, but the password entered in the second time is the final password.

Delete the user [aaa]: cvs passwd -x aaa Enter, OK, complete

3. Other matters needing attention Item

If you run a command such as cvs passwd, the error is displayed: cvs passwd: No CVSROOT SpecifIEd! Description The warehouse path is not specified.

Then you can add the -d parameter to the command. That is, cvs passwd -r administrator -d d:\\pcms_cvs -a mini.

Easier to configure the environment variable CVSROOT. That is, set CVSROOT=d:\\pcms_cvs and then perform other operations.

-help parameter can call up command help, very useful

Copyright © Windows knowledge All Rights Reserved