Install and configure the CVS server in Windows

Source: Internet
Author: User

1. Download cvsnt (you can download it from the attachment)
2. Install cvsnt
Double-click to run the cvsnt Installation File. During the installation process, you can select the classic, custom, and full installation methods. In the custom mode, you can select the installation path. After the installation is complete, a cvsnt server project appears in the control panel. The icon is a fish ~~

3. Configure cvsnt
After installing cvsnt, you can start from:
(1) Configure cvsnt in the control panel. [Start]-[Control Panel]-[cvsnt server]
(2) Program Shortcuts. [Start]-[All programs]-[cvsnt]-[cvsnt Control Panel]

First, you need to create a directory to store the CVS Repository. I use F: \ tarena \ CVs. Here, we need to first understand two concepts: the CVS repository and the module. In my understanding, the CVS repository is equivalent to a solution (or is it a repository?) in ?), It can contain multiple projects, that is, modules.

After opening the control panel of cvsnt, You can see seven tabs:
About, used to view server information and some simple statistical information;
Respository configuration, configure the CVS repository, including adding and deleting;
Server setting: Configure some parameters for running the server, such as ports, encryption, and compression;
Capatiblity options: for compatibility options, here we mainly configure a version response compatible with the non-cvsnt client to CVS 1.11.2; plugins, plug-in configuration, which can be skipped after installation ~;

Advanced, no need to worry about it after the installation is complete;
Services, where you can manage the status of the cvsnt service, stop or start the cvsnt and cvsnt lock services.

In capatiblity options, click the respond as CVS 1.11.2 header version request check box in the [non-cvsnt cvients] Protocol group to enable eclipse to communicate with cvsnt normally. To put it simply, after m is installed by default, there are only two items to be set: cvs repository and server settings.

4. cvs repository settings:
Go to the respository Configuration tab and click Add. The "add cvs repository" dialog box is displayed. Enter the folder created previously in the location file to store the CVS Repository. I use E:/cvstest, the name is automatically converted into an alias for a usable cvs repository. For example, if I use "/cvstest", all others are default, after confirmation, cvsnt will ask whether the CVS Repository directory you added is not initialized and whether it is initialized. Click "yes". cvsnt will automatically initialize the specified directory. After Initialization is complete, you can see a cvsroot folder, which stores a lot of configuration information.



5. server settings:
Set run as the system administrator account, or create a local user dedicated to CVS. The advantage of using a new local account is that NTFS permission control can be used to ensure the security of the server. For example, my current user is administrator.



6. user settings:
After the CVS repository is configured, you need to add common users to ensure that CVS can be accessed by accounts instead of Windows users.
Open the CVS Control Panel (shortcut or control panel in the Start Menu), run as in server setting, and select a user with Windows administrator permissions. For example, my current Administrator. Restart CVS in the about of the CVS control panel.

Open cmd, set the cvsroot environment variable, and enter:

Set cvsroot =: pserver: The administrator@127.0.0.1/cvstest
Note that the Administrator here is the current Windows user name, that is, the one selected in run as,/cvstest
Is the alias of the previously added cvs repository. If you have different settings, replace them with your own values.
Add common new users
CVS passwd-a-r administrator Xin
Xin is the new user name you want to add. Administrator specifies that now users with admin permissions are used to create Xin users. When the system logs in with the Administrator account, CVS uses the Xin user to log on to CVS.

Otherwise, an error message is displayed:
(1) Only Administrators can add or change another's password
(2) Empty Password used-Try 'cvs login' with a real password
CVS [passwd aborted]: Authorization failed: Server 127.0.0.1 rejected access to/cvstest for user administrator

After this command, you can set the password of this user.
You can use this user after successful execution. After the user is successfully set

Run the cvs login command to log on to the CVS server. The system prompts you to enter the password. In this case, enter the password of the Administrator account:
Input in cmd
CVS login press ENTER
When the password is correct,

Connect to the CVS server in myeclipse:
On the project that has not yet added CVS version control (if you have already added it, the menu will be different)
Right-click the project name and choose "team"> "share project"> "Create a new repository location". Enter the required information. For example, if my project is local, enter:

HOST: localhost
Repository path: tarena/CVS (the repository alias configured above)
Enter the appropriate username and password. Here is the Xin password.
Port and type. If the server has not been modified, use the default value.
In this way, the project file will be uploaded to the cvsroot directory, and the local file system will open this directory, you can also see the uploaded project.
Later, you can easily use version control.

The above method can also solve the problem of forgetting the user password. After logging on to CVS with a system user in cmd, you can follow the above steps to recreate the user and change the password,
CVS overwrites this user by default.

1.1 install cvsnt.
Installation Program: cvsnt. MSI. Double-click it and complete the installation. Then, restart the computer.
1.2 set up the CVS repository.
Choose Start> program> cvsnt> CVS Control Panel> repository configuration> Add.
Location:-> enter the absolute path of the CVS Repository: D:/cvsproject
Names:-> this option is automatically configured based on the location path.
Description:-> This item is a description field and can be written at will.
Click OK to complete the setting. A new directory named cvsroot is generated under "D:/cvsproject.
1.3 start CVs.
Choose Start> program> cvsnt> CVS Control Panel> server settings.
Run as-> computername \ Username
Default-> computername
CVS server-> 2401
Lock-& gt; localhost 2402
Click OK to complete the settings. Now the CVS server program has been started on your computer.
1.4 Add a CVS user.
Create a file passwd under Directory D:/cvsproject/cvsroot and add the following content:
Cvsroot:
Cvsuser:
Note: the passwd file is used to save CVS users. cvsroot is the default Super User of CVs, so this user must be created. Cvsuser is the new normal user. ":" Indicates that the password is empty.

1.5 log on to the CVS user and perform operations.
Run-> cmd to open the command prompt:
D: \> set cvsroot =: pserver: cvsuser @ localhost/cvsproject
Note: cvsuser is the user created in the cvsroot/passwd file.
D: \> CVS Login
Logging in to: pserver: cvsuser @ localhost: 2401:/cvsproject
CVS password:
Note: If the password is blank, press Enter.
D: \> CVS passwd
Changing repository password for cvsuser @ localhost
New password:
Verify password:
Note: Modify the password of user cvsuser

1.6 complete the configuration of the CVS server and use the CVS client that comes with myeclipse to connect.

See: http://xsl2007.iteye.com/blog/818341

Related Article

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.