Home Page

CVS

Computers

 

2005-11-09

Installing and setting up a CVS server and clients. Download the latest versions of

CVSNT

CVSNT is the actual CVS server. Run the installer to install the package on a computer that will be the CVS server and contain all the code files. After the installation you need to reboot for CVSNT icon to show up in Control Panel. Start this to display the configuration options. It is fairly simple.

The thing you need to set up is the CVS repository. Create a folder somewhere and assign it as a CVS repository. Give it a distinguished name.

Authorisation - So far I did not figure out whether domain users can be used to access the CVS repository so I created local users on the CVS server. Add the users to Administrators group (if needed) for easier access. Add access rights to the folder that is used for storing the repository files.

Add wrappers for binary files by accessing the CVSRoot folder and altering files, then commiting back.

The installation instructions are here.

TortoiseCVS

Tortoise is one of the nice CVS clients. You need to add a module to the repository. A module usually contains one project but it's up to you. Select a folder containing the code files, right-click and select Create a New Module. When that is done, right-click the same folder and select Add Contents to add everything within the folder to the CVS module.

WinCVS

Nice for an overview of what files are changed, etc.

 

CVSNT Installation

cvsnt installation and configuration instructions that work! I had problems because the user could not log into the cvs.

  1. install cvsnt, verify that it works and listens on the port 2401,

  2. create a repository with cvsnt control panel applet,

  3. Create cvsusers group and allow permissions or repository folder,

  4. go to command prompt and create/add users with passwords (<-- this is the step that I missed)
    set cvsroot=:sspi:<computername>:/<repository>
    cvs passwd -r <windows account name> -a <cvs username>

  5. create SSL keys with genkey, then copy them to separate files;

  6. add cvswrappers binary extensions,
    *.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'

  7. install TortoiseCVS and/or WinCVS. See user guide.

  8. voila! you're done.

With version 2.5 of CVSNT it is enough to install CVS server and setup repository. Then, create local users on the server and eventually add them to a group.