Installing subversion server


Most of subversion users are familier with Tortoise SVN which removes the need of using svn command line tool. Tortoise is a great tool. It helps a lot as a visual replacement of svn client. What if you want to setup a subversion server in your machine so that developers can work remotely? follow these steps

Before that, download the SVNService from http://gda.utp.edu.co/pub/svn/

1. Create the subversion working directoty by svnadmin tool
Example : svnadmin create “c:\projects\myproject”

2. add authentication setings in your project
open your working directory, such as “c:\projects\myproject” and open the conf/svnserve.conf file. Add the following lines

[general]
anon-access = read
auth-access = write
password-db = passwd

for the settings above, anonymous users will get the read-only access to the repository. If you want authenticated read access, make it as shown below.

[general]
auth-access = read
auth-access = write
password-db = passwd

3. add credentials
open conf/passwd file with notepad and add the username and password in following format

[users]
user1 = pass1
user2 = pass2

4. Install the subversion service and run it
svnservice -install -d -r “c:\projects\myproject”

OR

4. run the server simply
svnserve -d -r “c:\projects\myproject”

Now you can access your subversion repository remotely as “svn://your_server_ip/”

Thats it.

About these ads

4 thoughts on “Installing subversion server

  1. Pingback: World of *nix » subversion installation (1.4.0)

  2. Pingback: World of *Nix - by S. M. Ibrahim (lavlu) » subversion installation (1.4.3)

  3. Pingback: Varios repositorios subversion en una sola máquina « El espacio de Jaime…

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s