Due to the installation of Cygwin on your own machine, let him not be very good every day, need to give him a point use, just need an installation of a CVS server, I decided not to use CVSNT, install it on my machine A service under Cygwin. Ok, now start:
Step 1: First need to install Cygwin, you need to select the following package:
DEVL / CVS is of course
Admin / CygrunSRV is used to add Cygwin services to Windows services
NET / INETUTILS does not need Xinetd because I have a lot of questions when I use XINETD, and I have to use inetd.
Step 2: After installing Cygwin, build a cvsroot user in Windows. This user needs to be a local user, do not be a domain user, determine if there is a CVSROOT household in a Cygwin / Home directory. If you don't switch to this user, you can run cygwin.
Step 3: Under Cygwin Environment, run IU-Config
Step 4: Run mkpasswd -l> / etc / passwd, import Windows users into Cygwin, then use the editor (Vi, UltraEdit, it is notepad not line), only reserved Administrator users and cvsroot users and others. Users you think need.
Step 5: Run the inetd service. Run the following command:
Set the Windows environment variable: cygwin = ntsec. Add cygwin / bin to your 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 that the CygWin inetd service has been launched in the Windows Service Manager.
Run usr / sbin / inetd.exe --install-as-service
From the new start. Since Cygwin does not support the su command, you have to switch the user under Cygwin with Telnet.
Step 6: Establish a cvsroot directory, you can build in / var / cvsroot, if you do not want to build a repository directory in a Cygwin environment, you can use / cygdrive / d to select the drive. Select CVSRoot users under Cygwin, run CVS -D / CygDrive / D / CVSROOT INIT, configure the root directory of the CVS service, set under D: / CVSROOT.
Step 7, edit the /etc/inetd.conf file, join:
CVSPSERVER STREAM TCP NOWAIT CVSROOT / BIN / CVS CVS -F - Allow-root = / cygdrive / d / cvsroot PServer
Edit Modify / etc / Services, join:
CVSPSERVER 2401 / TCP #CVS Server TCP Port
CVSPSERVER 2401 / DUP #CVS Server UDP Port
Step 8, configure CVS users, just like other systems, there is a very detailed document on the Internet, and no longer say more.
From the newly launched inetd service, you can.
What to pay attention to during the installation process is the permissions issue of the directory, and the file established in Cygwin can only be managed in Cygwin. There is also a problem that does not distinguish between file sketch under this CVS, you need to pay attention when using it.
If you select Xinetd during the installation process, I have not found the way to register the successful Windows service, so I will not introduce it here.
I wish you all a happy use.