SVN – Subversion

To manage our code in team development environment, we need a tool called version control system (vcs). One of the most used is Apache SVN.
It is a web based subversion which you can browse it using your web browser.

To install it in ubuntu (lucid) :

sudo apt-get install subversion libapache2-svn

next, we create out subversion repository

sudo svnadmin create /svn

edit our enabled apache2 module

sudo gedit /etc/apache2/mods-enabled/dav_svn.conf

add this at the end of the file

DAV svn
SVNPath /path/to/your/svn
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/dav_svn.passwd
Require valid-user

create user for your repository

sudo htpasswd -cm /etc/apache2/dav_svn.passwd your_username

restart apache server to take effect

sudo /etc/init.d/apache2 restart

access your newly created repository using web browser

http://server/svn

Now your subversion repository server is ready to use

*to enable your user to commit to your repository, change permission to apache

sudo chown -R www-data:www-data /svn

some useful svn command for newbies HERE