How to Quickly Setup Subversion Server on Linux (Ubuntu)

Saturday, January 2nd, 2010

Installation

First of all you’ll need to see if you’ve got Subversion installed. Check this article on how to query installed packages or just try executing:

% svn help

If you haven’t got Subversion installed then:

% apt-get install subversion

Users and Groups

% addgroup subversion
% usermod -a -G subversion yourUser

Create Repository

% svnadmin create /path/to/repository

Configure Repository

% chgrp -R subversion /path/to/repository
% chmod -R g+rws /path/to/repository
% vi /path/to/repository/conf/svnserve.conf

Edit/uncomment the following lines:

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

% vi /path/to/repository/conf/passwd

Add the following line:

yourUser = yourSecretPassword

Start Subversion Server as Daemon

svnserve -d

Troubleshooting

You will need sudo or root access (unless you want to see a lot of permission denied errors!)
If you see this error (when using Windows SVN client):

Can’t move
‘..\..\.svn\entries’ to ‘..\..\.svn\entries’:
The file or directory is corrupted and unreadable.

Then try excluding the local directory from the Windows Indexer.

You can leave a response, or trackback from your own site.

Tags: ,
Posted in: Development, How to's



Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>