Personal tools

Svn faia

From MohidWiki

Revision as of 23:41, 21 June 2013 by Guillaume (talk | contribs) (Created page with "This is the log of the instructions followed to install an svnserver in debian/ubuntu and to create a repository and add some code files. This tutorial follows closely on the fol...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This is the log of the instructions followed to install an svnserver in debian/ubuntu and to create a repository and add some code files. This tutorial follows closely on the following link.

Manual

svn server

installation

> sudo apt-get install subversion libapache2-svn
> sudo mkdir /var/svnserver
> sudo chown -R www-data:www-data /var/svnserver

dav-svn configuration

> sudo vim /etc/apache2/mods-available/dav_svn.conf
dav_svn.conf>
# remove the # in front of the <location and </location
<Location /svn>
 DAV svn
 SVNParentPath /var/svnserver
 AuthType Basic
 AuthName "Subversion Repository"
 AuthUserFile /etc/apache2/dav_svn.passwd
 Require valid-user
 #SSLRequireSSL      # this line must be added if you want SSL enabled
</Location>

apache daemon restart

> sudo a2enmod dav_svn
> sudo /etc/init.d/apache2 restart

add users

# First user with -c option
> sudo htpasswd -c /etc/apache2/dav_svn.passwd firstuser
# Next users without -c option
> sudo htpasswd /etc/apache2/dav_svn.passwd nextuser

New repository

> sudo svnadmin create /var/svnserver/repos
> sudo chown -R www-data:www-data /var/svnserver/repos

Test svn server

> svn co http://localhost/svn/repos


Regular user

External references