Subversion on Strato V-PowerServer

Having internet accessible repositories is great for code backups, collaboration and deployment of staging servers. Here's a quick guide on getting svnserve running on a Strato V-PowerServer.

First, install subversion:

# yast -i subversion

Add the user and group svnserv needs:

# groupadd svn
# useradd -r -g svn svn

Create a repository (in the following commands indicated with [name]) and make sure svnserve can read / write it:

# mkdir -p /srv/svn/repos
# svnadmin create /srv/svn/repos/[name]
# chown -R svn:svn /srv/svn/repos/[name]

Open /etc/sysconfig/svnserve and make sure it reads:

SVNSERVE_OPTIONS="-d -r /srv/svn/repos"

Open /srv/svn/repos/[name]/conf/svnserve to configure access to the repository:

[general]
# Anonymous users have no access. (use read for read access).
anon-access = none
# Authenticated users in passwd can read and write to the repository.
auth-access = write
password-db = passwd
realm = repository [name]

Create /srv/svn/repos/[name]/conf/passwd:

[users]
username = password

Start the server:

# /etc/init.d/svnserv start

You can now access the repository via svn://example.com/[name], eg:

# svn co svn://example.com/[name]

No votes yet

Comments

Thank you

Great job.
This instructions were perfect for me.

question

good job firtst of all...
two questions:
1. if i try to start the svnserve start i doesn´t work out.
2. if i try to open the svn://www.domain.com/[name] the following error appears in tortoise:
Error * Can't connect to host 'www.domain.com': Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte.

mybe you can help me... thnaks

regards
simily