Documente Academic
Documente Profesional
Documente Cultură
03 Installation Tips 1 of 22
http://web.telia.com/~u86216177/InstallCVSNT25.html
CVSNT 2.5.03 Installation Tips 2 of 22
4. Install CVSNT
Run the downloaded CVSNT setup file and make sure to change the installation path to c:\programs\cvsnt (I
am paranoid about removing any spaces in paths used by cvs!)
Start screen:
http://web.telia.com/~u86216177/InstallCVSNT25.html
CVSNT 2.5.03 Installation Tips 3 of 22
License agreement:
http://web.telia.com/~u86216177/InstallCVSNT25.html
CVSNT 2.5.03 Installation Tips 4 of 22
http://web.telia.com/~u86216177/InstallCVSNT25.html
CVSNT 2.5.03 Installation Tips 5 of 22
Ready to install!
http://web.telia.com/~u86216177/InstallCVSNT25.html
CVSNT 2.5.03 Installation Tips 6 of 22
Install in progress
Release notes
http://web.telia.com/~u86216177/InstallCVSNT25.html
CVSNT 2.5.03 Installation Tips 7 of 22
Installation done!
http://web.telia.com/~u86216177/InstallCVSNT25.html
CVSNT 2.5.03 Installation Tips 8 of 22
CVSNT is configured from the CVSNT Control Panel, which can be reached via the shortcut link placed
under the Start menu during installation.
Now open the CVSNT control panel applet and do the following:
If it is started then stop it. You can leave the Lock Service running.
http://web.telia.com/~u86216177/InstallCVSNT25.html
CVSNT 2.5.03 Installation Tips 9 of 22
3. Repository creation
The tab will initially look like this:
4. Add repository
Now you will add a repository to the server. This is done using the "Add" button. When you click this a
dialogue shows up where you will define your repository.
5. Repository folder
http://web.telia.com/~u86216177/InstallCVSNT25.html
CVSNT 2.5.03 Installation Tips 10 of 22
Click the ellipsis button for Location to bring up the folder browser.
Now you can browse to the location you want for your repository and add a new folder here.
NOTE:
I strongly advice NOT to use paths with embedded spaces for CVS!
6. Name repository
Now fill in the description and the name of the repository as well.
NOTE:
Do NOT accept the suggested name, which is the same as the folder path!
Instead only use the bare folder name with a leading / like this:
http://web.telia.com/~u86216177/InstallCVSNT25.html
CVSNT 2.5.03 Installation Tips 11 of 22
You can add as many as you like (almost) but please do not fall for the temptation to use one repository for
each and every project! There are a lot of possibilities to streamline the development process using CVSNT,
but many of these use the virtual modules concept and this is only possible within a single repository.
9. Server Settings
Now go on to the Server Settings tab.
Here the default settings are all right for now, except the Temporary Directory setting.
http://web.telia.com/~u86216177/InstallCVSNT25.html
CVSNT 2.5.03 Installation Tips 12 of 22
Temp dir: Use the ellipsis button to browse for the folder prepared for this purpose above:
http://web.telia.com/~u86216177/InstallCVSNT25.html
CVSNT 2.5.03 Installation Tips 13 of 22
10. Compatibility
On the next tab (Compatibility Options) there is nothing you need to change for now:
http://web.telia.com/~u86216177/InstallCVSNT25.html
CVSNT 2.5.03 Installation Tips 14 of 22
http://web.telia.com/~u86216177/InstallCVSNT25.html
CVSNT 2.5.03 Installation Tips 15 of 22
Adding and managing CVS users for pserver and sserver access
This is a step that is only needed if you plan on using the sserver or pserver protocols with this CVS server.
If your users are all on Windows PC:s pserver is not recommended since it has inherent security flaws.
Instead use SSPI because that protocols integrate much better with Windows. If you decide to go with sspi
(recommended) then you can skip the discussion on how to add and manage users in this section.
http://web.telia.com/~u86216177/InstallCVSNT25.html
CVSNT 2.5.03 Installation Tips 16 of 22
account. Note that the CVS administrator need not be a server administrator!
The two accounts are added through the Users dialog in Computer Management.
I have used the account names cvsadmin and cvsuser as shown above.
set cvsroot=:sspi:<computername>:/TEST
cvs passwd -a <account name>
You will now be asked to enter a password for this user. This password is only for CVS use so it should not
be the real system password! Enter the password twice.
Now the CVSROOT/passwd file will be created and the user you entered will be added to the list in this file.
This step is necessary if you are going to use the pserver or sserver protocol in the future since there is no
way to log in with pserver/sserver unless there is a passwd file present with the user listed.
Important note:
Any user entered like this MUST be an NT user on the local system! CVS will not accept any user login that
is not connected to a "real" account.
What will happen now is that to CVS the user will be known and registered as the CVS login given in the
command, but for file operations that will encounter permission issues the commands will be executed in the
context of the real system account that was aliased. This makes it possible to use NTFS file system
permissions to limit access to certain parts of the repository to some users. You simply create a system
account for which you set limited permissions and then you alias the CVS login to this user.
Note that this command will fail if there is a space embedded in the real account name! DON'T ever use
spaces in these contexts!!!!! (But using quotes may solve the problem like this:
http://web.telia.com/~u86216177/InstallCVSNT25.html
CVSNT 2.5.03 Installation Tips 17 of 22
Examples:
cvs passwd -r cvsuser -a charlie
The server is now ready to be used and you can check the pserver functionality by doing this:
Then:
cvs login (enter password on prompt)
cvs ls -l -R
(this should give you a list of the files in TEST/CVSROOT)
Then:
cvs login (enter password on prompt)
cvs ls -l -R
(this should give you a list of the files in TEST/CVSROOT)
Then:
cvs login (enter password on prompt)
cvs ls -l -R
(this should give you a list of the files in TEST/CVSROOT)
If you cannot get this far, for example if the login fails, then you should check the Windows Firewall settings
on the CVSNT server:
http://web.telia.com/~u86216177/InstallCVSNT25.html
CVSNT 2.5.03 Installation Tips 18 of 22
Go to Control Panel
Open the Windows Firewall item.
Select the Exceptions tab
Click the "Add port" button
Enter the name CVSNT and port number 2401 as a TCP port
Accept back to the main screen
Make sure Windows Firewall is set to ON
http://web.telia.com/~u86216177/InstallCVSNT25.html
CVSNT 2.5.03 Installation Tips 19 of 22
http://web.telia.com/~u86216177/InstallCVSNT25.html
CVSNT 2.5.03 Installation Tips 20 of 22
to avoid this there is a simple way to manage who will have admin rights on the CVSNT server. It is done
through the CVSROOT/admin file.
Here is how to:
Create a text file called admin (no extension) inside the CVSROOT directory of the repository.
Edit this file by adding on separate lines the login names of the users you want to give administrative
priviliges on the CVS server.
The file could look like this:
cvsadmin
charlie
jennifer
john
Now each of these users are able to add new users, change their passwords and use the cvs admin
command.
Usage:
cvs passwd [-a] [-x] [-X] [-r real_user] [-R] [-D domain] [username]
-a Add user
-x Disable user
-X Delete user
-r Alias username to real system user
-R Remove alias to real system user
-D Use domain password
Example:
cvs passwd -r charlie -a john
This adds a CVS login john with a system alias to account charlie. When the command is executed there will
be a password dialogue that asks for the password of john twice for confirmation. Note that this is NOT the
http://web.telia.com/~u86216177/InstallCVSNT25.html
CVSNT 2.5.03 Installation Tips 21 of 22
actual system password of account john, it is the CVS login password only used by CVSNT.
After the command completes there will be a new line in the CVSROOT/passwd file looking somewhat like
this:
john:KacIT8t1F/SKU:charlie
The part between the :: is the DES encrypted password you typed in and will be used by the CVSNT service
during login to validate john. Once accepted the account charlie will instead be used so the password is no
longer used. The CVSNT service has full priviliges to act on charlie's behalf and this is what it does too.
http://web.telia.com/~u86216177/InstallCVSNT25.html
CVSNT 2.5.03 Installation Tips 22 of 22
Afterwords
This tutorial is written 2005-11-16 and is based on CVSNT version 2.5.03.2148.
The test system is Windows Enterprise Server 2003 with SP1 installed running in Virtual PC 2004 SP1 on
my development PC. The server is not member of a domain.
http://web.telia.com/~u86216177/InstallCVSNT25.html