How to setup Subversion working with Eclipse

Server side.
Step 1. Download Subversion.
First of all we need to download Subversion. Download the latest version from http://subversion.tigris.org.
Install it as usual.
Subversion doesn’t come with a nice graphic interface, so open a prompt command and try to type
svnserve --help
If an help message appears you’re ready to continue.

Step 2. Creation of a repository area.
First of all you need to create a repository area on the server machine. To do this simply type the following command on a dos prompt. Obviously you can replace the path I use with the path you want.
svnadmin create g:\repository
It creates a directory with the following layout.

Step 3. Setting repository access permissions.
Access privileges to the repository can be configured with special files found in the repository built in the previous step.
The file “svnserve.conf” manages configuration if remote access to the repository is given via “svnserve”, which is the case of this how-to.
So modify the file “svnserve.conf” to make it contain the following text.

[general]
anon-access = none
auth-access = write
password-db = passwd
realm=repository

The previous content in the “svnserve.conf” file states that anonymous users have no access privileges, while authenticated users can write and read the repository. Moreover it states that the file which store password for each user will be called “passwd”.
Now we need, obviously, the passwords file. Create the file “passwd” and fill it in with the following text. This will assign the user “johndoe” the password “zrok1234″. You can obviously choose any other user name or password you prefer.

[users]
johndoe=zrok1234

Step 4. Starting the server.
Take note of the name of the machine. This will be useful when we will establish a connection from the client machine. If you don’t know that name one way to discover it is to type the following command
ipconfig /all
A lot of information is printed on the console about the IP configuration. You will be surely able to spot the name of the machine.
Now start the Subversion server with the following command.
svnserve -d -r g:\repository
This will make the repository available on line. If you chose different path for the repository in the previous steps, please, modify the command accordingly.
It’s possible that Windows Firewall will ask you whether it has to block the program or not. Obviously choose not to block svnserve!

Pages: 1 2 3

Leave a Reply

You must be logged in to post a comment.