You will need to download these programs:
When using the setup program for Cygwin, keep all of the default package downloads and select cvs from under the Devel listing.
The general idea for setting up public and developer cvs retrieval are outlined on our sourceforge cvs page. After you download the above programs we can test their installation by performing a public cvs retrieval. The commands for this are:
Hit enter when prompted for anonymous' password. You should see the repository download.
To get a version of the source code that can be altered and then later committed with changes, you first need to set up an RSA encryption key. The steps necessary for this are explained clearly within the sourceforge documenation for setting up WinCVS (another CVS program you can use if you would like). This step "Generating a SSH Key Pair" points you further to the sourceforge page for SSH Key Generation: PUTTY. After generating a key, go back to the WinCVS page and follow the next instructions for "Uploading your SSH public key". Then follow the instructions for "Configuring Pageant" and "Testing Automated Authentication".
Now that you have a key and your putty configuration is working correctly, you will no longer have to type in your password whenever files are transferred. From now on, you will have to set the following environment variables whenever you start a command prompt to use cvs. It is suggested you put these commands in a batch file.
To checkout the code as developer, type in those lines and then
To connect to and use Sourceforge's project services such as cvs, shell, or compile farm; you must use ssh. If you are not familiar with ssh you can find an introduction here. Please read the following instructions completely before performing any of the steps.
The first step is to create and set an environmet variable called CVS_RSH to ssh. This tells your cvs client to use ssh when trying to access a remote cvs.
$ export CVS_RSH=ssh
Make sure there are no spaces between CVS_RSH,=, and ssh. You can type this at a shell console but it will only be available to that current shell and any sub shells it starts. It will also have to be retyped everytime you open another shell console. To make the variable available to all shells without having to retype it, add the export statement to your shell's environment file, e.g. if you are using bash add the line to ~/.bashrc file.
At this point you can start working with the cvs on Sourceforge.net. To checkout a working copy of vrspace in your current working directory type the following at a shell console.
$ cvs -z3 -d:ext:username@cvs.sourceforge.net:/cvsroot/vrspace co vrspace
The -z3 is a gzip compression level and will help over a slow connection. The -d is the location of the vrspace repository. Remember to use your Sourceforge.net username. The co is checkout. If this is your first time connecting to Sourceforge.net's cvs you will be prompted by ssh to add cvs.sourceforge.net to your ~/.ssh/known_hosts file. Type yes. You will then be prompted for your Sourceforge.net password. The vrspace files will then download to your current working directory.
Using the cvs client with the -d option adds a lot of extra typing. You can add the following line to your environment file to cut down on it.
export CVSROOT=:ext:username@cvs.sourceforge.net:/cvsroot/vrspace
Then to download a working copy of the vrspace repository type the following.
$ cvs -z3 co vrspace
You will still be prompted for your password. You can generate a public key using ssh and post it to Sourceforge.net. This will eliminate the need to type in your password everytime you run a command. Type the following at the command line.
$ ssh-keygen -t dsa -C "username@shell.sourceforge.net"
The output is:
Open ~/.ssh/id_dsa.pub in a text editor. Copy the contents of the file. Log into Sourceforge's website and go to http://sourceforge.net/account/editsshkeys.php. Paste the contents of the file in the text area and submit. After aproximately 10 minutes your key should be available to all services. Now when you connect to the cvs you will be prompted for your ssh passphrase. Now you must add your key to the ssh authentication agent so you will not be prompted for your passphrase. Type the following at the command line.
$ ssh-add
The output is:
If you get "Could not open a connection to your authentication agent." instead type:
$ exec ssh-agent bash
$ ssh-add
Then type the following.
$ ssh-add -l
The output is: