[ Programming Trail >> CVS Trail >> Getting and Installing CVS ]
DOWNLOAD THE BINARY
I downloaded the CVS Server and Client (2.0.51b) from http://www.cvsnt.org
READ THE DOCUMENTATION
The wiki for beginners installation tip is located at http://www.cvsnt.org/wiki/InstallationTips
ABRIDGED INSTALLATION GUIDE
Please go through the official wiki before you install CVSNT. They have a great tutorial to get this on your control panel.
This page has three parts
A. Install CVSNT - As administrator
B. Create Users on PSEREVER - named john
C. Modify CVS to handle Binary Files
A. Install CVSNT
STEP 1: Pre-Install Directory Creation
You need two directories on your LOCAL NTFS/FAT drive.
- Repository - Where your files will stay
- Temporary - For CVSNT's internal files
Create the repository and the temporary folders.
e.g.
C:\cvs\cvsrepo - No Spaces plesae
C:\cvs\cvstemp - Again, No Spaces plesae
STEP 2: Pre-Install
Give full control to SYSTEM on your "cvstemp" folder.
Procedure - Right Click on cvstemp -> Properties -> Security -> Add -> SYSTEM -> Full Control
STEP 3: Install
Run the downloaded CVSNT setup file
STEP 4: Reboot
Reboot the machine
STEP 5: Add Repository and Temporary Directories
Find on your control panel. Double click and STOP all activities.
Go to Repositories tab and add C:\cvs\cvsrepo as the repository. Go to Advanced tab and add C:\cvs\cvstemp as your temporary directory.
When you assign a folder as repository, a folder called CVSROOT is created inside it.
B. Create Users on PSEREVER
Step 6 - Adding Users using pserver
You can use other authentication methods[1] but here I will describe use of pserver.
6.1 Login as administrator (assuming user name=administrator)
First login to the CVS as yourself using sspi. Follow the following steps
If you have logged into the local machine follow 6.1-A
If you have logged into the network machine follow 6.1-B
If you are not sure try stuff in 6.1-A and if things doesn't turn out the way it should, try part 6.1-B to login as administrator.
6.1-A Login as administrator to LOCAL MACHINE
(assuming user name=administrator)
C:\>set CVSROOT=:sspi:administrator@127.0.0.1:/cvs/cvsrepo
C:\>cvs login
Logging in to :sspi:administrator@127.0.0.1:/cvs/cvsrepo
CVS password: ******
Enter your Windows NT/2000/XP password here to login. If everything goes fine you will see the C:\> again.
Now you are ready to create other users using pserver. Proceed to Step 6.2.
6.1-B Login as administrator to NETWORK
(assuming user name=administrator)
FYI: Your full computer name = computer name + domain name
C:\>set cvsroot=:sspi:computername.domain.psu.edu:/cvs/cvsrepo
C:\>cvs passwd -a -D domain.psu.edu administrator
Adding user administrator@computername.domain.psu.edu
C:\>cvs login
Logging in to :sspi:administrator@computername.domain.psu.edu:2401:/cvs/cvsrepo
CVS password: ******
Enter your Windows NT/2000/XP password here to login. If everything goes fine you will see the C:\> again.
Now you are ready to create other users using pserver. Proceed to Step 6.2.
6.2 Create New User in pserver
Now create new users who will access the CVS using pserver using the following command.
cvs passwd -a -r
e.g. If you have logged in as administrator then to create a user called john follow the following steps.
C:\>cvs passwd -a -r administrator john
Adding user john@127.0.0.1
New password: *****
Verify password: *****
Thats it. You have created a user called john. But the user has to login using pserver and for that we have to change the CVSROOT variable from sspi to pserver.
You can always delete a user by the following command after logging in as administrator
cvs passwd -X john
C. Modify CVS to handle Binary Files
STEP 7: Modify cvswrappers for binary file handling
Modify the cvswrappers file so that binary files are treated differently from text files in the CVS repository.
Basically, check out the cvswrappers file by doing step 7.1 on a folder c:\temp in command prompt (Ref [1]). Modify the cvswrappers as shown in Step 7.2 (Ref [2]) and then commit it useing Step 7.3. Remember you are logged in as user administrator.
Step 7.1
C:\>cd temp
C:\temp>cvs co CVSROOT
C:\temp>cd CVSROOT
C:\tempCVSROOT>notepad cvswrappers
You can also go to My Computer and put CVSROOT in the environment variables.
Step 7.2
Then copy paste the binary extensions from Ref [2] to cvswrappers. A copy of the list given below.
http://devguy.com/fp/cfgmgmt/cvs/cvs_admin_nt.htm#install
- .cab -k 'b'
- .class -k 'b'
- .doc -k 'b'
- .dll -k 'b'
- .exe -k 'b'
- .exp -k 'b'
- .gif -k 'b'
- .gz -k 'b'
- .jar -k 'b'
- .jpg -k 'b'
- .jpeg -k 'b'
- .lib -k 'b'
- .msi -k 'b'
- .mso -k 'b'
- .pfw -k 'b'
- .png -k 'b'
- .ppt -k 'b'
- .sit -k 'b'
- .tar -k 'b'
- .tlb -k 'b'
- .vsd -k 'b'
- .xls -k 'b'
- .wmz -k 'b'
- .zip -k 'b'
- .war -k 'b'
Step 7.3
cvs commit
Now your CVS will handle binary files differently.
References
- http://www.cvsnt.org/wiki/InstallationTips and
- http://www.devguy.com/fp/cfgmgmt/cvs/cvs_admin_nt.htm
Contributors
Jyotirmaya Nanda (August 9, 2004)
I block the IP address(es) of users trying to vandalize my wiki. A simple mail to me can remove your IP from the blocked list. If you are new to wiki and want to try something out please do so at the Wiki Sand Box. Thank you !!.
|