SourceForge Access

Manual at sourceforge.net

Since some months, there is a good manual to set up CVS on a Win32-System at sourceforge.net. You can view it here. You should use this documentation in order to be up to date every time.

Information

First of all, you have to set up a SourceForge account. The routine to set you up is in a batch, that runs only once every 6 hours. If you want to develop on ODA, write us a mail, to set you up as a developer (odasupport@opus.ch).

After you are set up as a developer, it takes another 6 hours to get access to the server. So patience is asked again of you.

This documentation shows, how to set up CVS and SSH on a Win32-System.

Downloading the necessary files

First of all, you should download the WinCVS and the SSH-Files. We always had trouble with the newest version, so I recommend to use the version 1.2 of WinCVS. If you use Version 1.3.6 (or a newer version), you should also download Python.

Set up the system to work with CVS

You have to create the following directories in order to use CVS.

  1. x:\home
  2. x:\etc
  3. x:\bin

Now add the following environment variables. If you don't know how, have a look in your system help, on how to set them up:

  1. SET PATH=%PATH%;x:\bin
  2. SET HOME=x:\home

Now create a new file in x:\etc called passwd (without file extension) with the following text:

  1.   <username>:x:1:10:<name>, <surname>:x:/home:c:/winnt/cmd.exe

The first () is your username. All in lower cases. I.e.: bsimser

The second (, ) is your real name. I.e.: Simser, Bill

The third (x:/home) is the path, where your home directory is. If you changed it, you have to change this one, too. Just replace the MS-Dos \ with a Unix style /.

The fourth (c:/windows/command.com) is the place, where your command interpreter is. If it is WinNT or Win 2000, replace it with c:/winnt/cmd.exe.

After doing this, you should reboot your system (only Win 95/98), so the changes in the autoexec.bat can take effect.

Test the environment under Dos

Now just change your directory to the bin-directory (x:\bin) and call

  1. ssh -l <user_name> directaccess.sourceforge.net

Enter your password and you should be logged on to the server. Retry, until you're logged in.

Creating a key with ssh-keygen

This step is very important. Go through it very carefully.

First, create a subdirectory called .ssh (DOTssh). In WinNT, 95, 98 and 2k, you can do this in the MS-Dos box, by typing

  1. md x:\home\.ssh

In Windows ME, you have to create a batch file doing this for you.

Go into the directory, in which ssh is installed. (x:\home) and call (case sensitive)

  1. ssh-keygen -C <e-mail> -f ./.ssh/identity

If you're asked for a pass phrase, only type one, if you want to be asked each time at start up. Otherwise, just press return.

Now upload the identity.pub file to the server by typing the following command:

  1. scp ./.ssh/identity.pub <username>@cvs.directaccess.sourceforge.net:identity.pub

This step is described in more detail here.

Install and set up CVS

Now you have to set up the CVS environment. Install and start the program. Choose Admin / Preferences and enter the following text in the first line. (Only Version 1.2)

  1. <username>@cvs.directaccess.sourceforge.net:/cvsroot/directaccess

In the field Authentication choose SSH-Server and check (if unchecked) the box RSA identity. Press the ... button and choose the identity file created in the step above.

In the section WinCvs you have to set your home directory to x:\home.

Other resources: