Install and configure cvsnt in Windows 7.

Source: Internet
Author: User
Recently, the development server was released for repair and a CVS was required under Windows 7 to use cvsnt. However, cvsnt contral panel cannot be used after installation.

I am used to graphical operations and suddenly don't know what to do. I had to learn about the command line of CVS. By the way, cvsnt does not have a graphical interface for user segmentation,

The embarrassment of using an administrator user to commit.
1. Install CVs.
Download a cvsnt, install it, and restart it. You will find that the cvsnt contral panel cannot be started under Windows 7.

After the computer is restarted, enter CVS-V in the DOS environment to check whether the installation is successful.

Run the following command to create a respository:
2. Create a warehouse

Think about the location of the repository. In CVs, the warehouse contains many hierarchical files and directories in the computer file system. Here you only need to tell CVS the hierarchical structure.

The position of the top layer. For example, I put this data warehouse in D:/pcms_cvs.

Run the command CVS-d:/pcms_cvs init in DOS.

OK. You are already a CVS administrator. The default user name and password of the CVS administrator are the user name and password of your current Windows user.

You can add a project to the repository. However, you cannot create files directly in the repository: You can only use the CVS command to operate files.

3. Create a simple project (which can be replaced by myeclipse, that is, share project)

Import the project to the saved position of the project. For example, my project home is saved in D:/webserver/www/home and transferred to this directory under DOS.
Run the following command:
CVS-d:/webserver/code-M "home" home initial

D:/webserver/code is the location of the data warehouse.
-M "home" is the log message.
The first home is the project name.
The last two tags can be ignored now.

Tip: after creating a project, you should not immediately delete the content of the local file. It is best to extract the home project file from CVS to the local to verify whether the file is the same (only one

File ). If it looks correct, you can delete the original file.

3. Manage Users and permissions

CVS lsacl viewing permission
CVS ls to view accessible repositories
CVS passwd-r administrator-A mini adds the user mini and binds it to the Administrator Mini as a user. Then, a prompt is prompted to enter the user password.
CVS chacl-a reader and writer-u mini root set user permissions (set the root user's read and write permissions for the repository by user mini)
CVS chacl-a none sets no permissions for all users
(Note: use it with caution. If you set everyone to have no permissions, you will not be able to have more permissions. You can set back that everyone has all permissions)
CVS chacl-A all: sets all permissions for all users.

Add new user [AAA]: CVs passwd-a AAA press enter, set password, OK, complete.
Bind [AAA] to [administrator]: CVs passwd-r administrator AAA press enter, set the password, OK, complete
The two passwords can be different, but the two passwords are used as the final passwords.
Delete user [AAA]: CVs passwd-x AAA press enter, OK, complete

3. Other considerations

If an error occurs when running commands such as CVS passwd, the following error occurs: CVs passwd: No cvsroot specified! The repository path is not specified.

You can add the-D parameter to the command. That is, run CVs passwd-r administrator-D:/pcms_cvs-a Mini.

You can configure the environment variable cvsroot. Set cvsroot = D:/pcms_cvs and then perform other operations.

-The HELP parameter can call up command help, which is very useful.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.