How to Create a CVS service through cygwin in Windows 2000

Source: Internet
Author: User
The most reason is that cygwin is installed on his own machine, so it is not good for him to be idle there every day. He needs to be assigned a purpose, and a CVS server needs to be installed, I decided not to use cvsnt and installed a service under cygwin on my machine. Now start:
Step 1: To install cygwin, You must select the following package:
Devl/CVS is required.
Admin/cygrunsrv is used to add the cygwin service to the Windows service.
Net/inetutils does not need Xinetd, because many problems have not been solved when I test the use of Xinetd, so I have to use inetd.
Step 2: After cygwin is installed, create a cvsroot user in windows. This user must be a local user, not a domain user. Make sure that there is a cvsroot user in the cygwin/home directory. If you have not switched to this user, run cygwin.
Step 3: Run Iu-config in cygwin Environment
Step 4: Run mkpasswd-L>/etc/passwd, import Windows users to cygwin, and open this file with the editor (Vi, ultraedit, or notepad, only the Administrator and cvsroot users and other users you think need are retained.
Step 5: Run the inetd service. Run the following command:
Set the Windows environment variable cygwin = ntsec. Add cygwin/bin to path.
Run in cygwin
Cygrunsrv-I inetd-d "cygwin inetd"-P/usr/sbin/inetd-a-d-e cygwin = ntsec
Cygrunsrv-s inetd
You can see in Windows service manager that the cygwin inetd service has been started.
Run usr/sbin/inetd.exe -- install-as-Service
Restart. Because cygwin does not support the su command, you have to use Telnet to switch users under cygwin.
Step 6: Create the cvsroot Directory, which can be created in/var/cvsroot. If you do not want to create the repository directory in cygwin, you can use/cygdrive/d to select the drive. In cygwin, select the cvsroot user, run CVs-D/cygdrive/D/cvsroot init, and configure the root directory of the CVS service. The root directory is created under D:/cvsroot.
Step 7, Edit and modify the/etc/inetd. conf file, and add:
Cvspserver stream tcp Nowait cvsroot/bin/CVS-f -- allow-root =/cygdrive/D/cvsroot pserver
Edit/etc/services and add:
Cvspserver 2401/tcp # CVS server TCP port
Cvspserver 2401/DUP # CVS server UDP port
Step 8. Configure the CVS user. Similar to the configuration in other systems, there are detailed documents on the Internet.
Start the inetd service again.

During installation, you must pay attention to the directory permission issue. files created in cygwin can only (preferably) be managed in cygwin.
In addition, the CVS file name is case-insensitive, so pay attention to it when using it.
If xinetd is used during installation, I have not found the method for successfully registering the Windows service, so I will not introduce it here.

Have a good time.
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.