Tag Archives: repository

Installing Subversion on Windows (Client and Server)

Ok this was painful, so in order to save you some time (and pain) here’s a fairly straight forward step by step guide to get subversion up and running.  It’s only a basic install and doesn’t go into massive detail but should be just enought to get you started.

Just to give you an idea of envionments here and software used:

  • 2 PCs on the same domain, a dev PC and another PC acting as a server (used this just for testing but would be much the same process on Windows Server X).
  • Both PCs running Windows XP SP3.
  • Eclipse 3.3.2 (Europa).
  • Client side subversion Subclipse from Tigris.org and at the time of writing v1.6.17.  This is compatible with old and new versions of Eclipse (except Helios I think).  It will work with Europa, Callisto, Ganymede and Galileo.
  • Server side (also includes a client too but don’t worry about this) is from CollabNet – Subversion Server and Client v1.6.16 – click the download button – you may have to create an account with them, but it’s all free.


Client Install

1. In Eclipse go to Find and Install

2. Edit remote site like so:

You need to paste in the link URL:    http://subclipse.tigris.org/update_1.6.x

3. Select Subclipse as sites to update from and click Finish.

4.  If you are using Europa version of Eclipse you may also have to install Mylyn 3.0 before you can install Subclipse.

Server Install

This is just a PC with an IP address of

1.  Download the Collabnet software as described above and double click the exe file to install.  You will see a screen like below – press Next.

2.  Skip past the View Latest Readme screen and Choose Components like below and press Next:

3. For svnserve Configuration I tend to change the Repository Path to something shorter like C:\svn, press Next:

4. For Apache Configuration, again change the Repository path to the shorter C:\svn, press Next.

5. At the Choose Install Location for the Subversion Server, install at the default location, press Next:

6.  The next screen is for Automatic Updates Configuration where you can choose to Enable update notifications for this Collabnet product and enter details if you are behind a proxy server:


7. The install will complete and finish with the following screen.  Click finish on the last screen:

8. Start the CollabNet Subversion svnserve service in Services:

9.  Then configure Collabnet Subversion Apache to run as Administrator to the local machine by right clicking, selecting Properties on the service.  Choose the radio button This account and edit the dialog like below, press OK, the start the service:

Create your first repository

1.  Open a command window and create your first repository by typing 

svnadmin create "C:\svn\repository"

2.  Navigate to that newly created directory and edit file svnserve.conf in conf folder.  Remove hash sign (#) with no leading spaces to the following:

anon-access = read
auth-access = write
password-db = passwd

Save the file and close.

3.  Open and edit file passwd.  Again, delete hash sign and add some users of your own if you like (<username> = <password>):

harry = harryssecret
sally = sallyssecret
simonearnshaw = wibble

4.  You can get really fancy and elaborate with users, groups and security.  I’ll leave that up to you, this configuration will just get you started.

5.  As subversion server operates on TCP port 3690 – you need to add this as an exception to the firewall.

Checking in your first project to Subversion from Eclipse

1. Go back to your dev PC, essentially the client.  Open Eclipse and make sure you are in SVN Repository Perspective.

2.  Now add a new SVN Repository to the view.  This relates to the command we issued on the server to create our first repository.  The protocol is svn://, and is followed by the servname or IP address.

3.  Go to your Java EE or Java persepective and right click one of your projects.  Select Team -> Share Project -> SVN -> Next.

4.  The next screen is Share Project with SVN Repository.  As we have already made a repository then we can select Use existing repository location:

5.   Leave the default, Use project name a folder name:

6.  At this point you should add comments – the comment “Initial import” is inserted as default, this is OK for our purpose so just press Finish.

7.  At this point you will be asked for your security credentials that you set up earlier in the Server section.

And that’s it you’re finished.  I hope you found this informative and useful.