SVN Server on Debian Etch

SVN now directly in Leopard (Mac OS 10.5). This is such a nice surprise that I decided to come back on the right way of programming.

Having known CVS, and then Tortoise SVN for many years, I was not proud to have no backup at all or version control.

You can find what is SVN on Wikipedia.

I followed this tutorial : http://hikage.developpez.com/linux/tutoriels/subversion/?page=page_2

Now I start with the very well known Debian command:

root@strange:/var# apt-get install subversion
root@strange:/var# mkdir /var/subversion
root@strange:/var# mkdir /var/subversion/depot
svnadmin create /var/subversion/depot/myproject (myproject must be replaced by a real name)
apt-get install install libapache2-svn
a2enmod dav_svn (si nécessaire)

/etc/apache2/mod-available/dav_svn.conf must be tuned:

<Location /svn>
DAV svn
Require valid-user
SVNParentPath /var/subversion/depot/
AuthType Basic
AuthName "Mon dépôt"
AuthUserFile /var/subversion/conf/htpasswd
AuthzSVNAccessFile /var/subversion/conf/access
</Location>

now let’s create the first user:

mkdir /var/subversion/conf
htpasswd -c /var/subversion/conf/htpasswd chris
htpasswd /var/subversion/conf/htpasswd user2

/var/subversion/conf/access :

[groups]
webmasters = chris, user2
[myproject:/]
@webmasters = rw
[oneotherproject:/]
chris= rw
* = r
[oneotherproject:/documentation/utilisateur]
authordoc = rw

And now my repository is available at : http://myurl/svn/myproject/

PS: I had to change the right file access to /var/subversion/depot/

chown -R chris:www-data /var/subversion/depot
chmod -R 770 /var/subversion/depot

One thought on “SVN Server on Debian Etch”

Leave a Reply

Your email address will not be published. Required fields are marked *