Java Tutorial - Java Script :
Installing the CVS Server on Windows
CVSNT is a specialized version of CVS designed especially for Windows NT–based platforms, including Windows 2000 and Windows XP. Although CVSNT does come with a standard Windows-style installer, the installation is
not as simple as just running the setup program. The following instructions assume that you have downloaded CVSNT1_1.11.1.3.exe or the most current distribution of CVSNT (available at http://www.cvsnt.org/).
1. Determine the drive that will be used for source code repositories. The rest of this discussion assumes that the C: drive has been selected.
2. Create two directories: c:\cvsrepo and c:\cvstemp. Set the permissions on these directories so that all users can have full access.
These directories cannot be located below C:\Documents and Settings or C:\Windows\temp due to security restrictions in these directories.
3. Install CVSNT by running the setup program. (It is recommended that instead of using the default installation directory that you use the directory c:\tools\cvsnt. There may be problems using directories with spaces embedded in the name.)
4. Open the Control Panel, and double-click the CVS for NT icon.
5. On the Service Status tab, make certain that everything is stopped.
6. On the Repositories tab, select the Repository Prefix check box and navigate to the c:\cvsrepo directory you created in Step 2.
7. Click the Add button to add a new repository root and append the name test to the prefix shown. Click Yes to create the directory.
8. Click Apply, and then select the Advanced tab.
9. Select all the check boxes, and set the temporary directory by navigating to the c:\cvstemp directory you created in Step 2.
10. The CVS Server port should be set to 2401, and the Lock Server port should be set to 2402.
11. Click Apply, then select the Service Status tab.
12. Start the CVS Locking service, and then start the CVS Service.
13. After the services have been started, close the window and close the
Control Panel.
14. Add a user to the CVS users list by opening a command prompt window and entering the following commands:
set cvsroot=:ntserver:<machinename>:/test
cvs passwd -a <your windows login name>
15. Enter a password when prompted, and then close the command window.
At this point, the CVSNT installation is complete and ready to be tested. The easiest way to test the installation is from the command line version of CVS that’s already installed. To do so, open a new command prompt window, and enter the following commands:
set cvsroot=:pserver:<user_name>@<machinename>:/test
cvs login
cvs ls –R
This should generate a response similar to the following:
Directory CVSROOT
checkoutlist
commitinfo
config
cvswrappers
editinfo
loginfo
modules
notify
rcsinfo
taginfo
verifymsg
The preceding output indicates a successful CVS installation. You can now execute the CVS logout command and close the command windows.
