Subversion in Ubuntu, with a nice Web Gui too

Subversion is a great utility that will make code development a lot easier. Basically it is a repository that keeps track of the versions of files and allows for many people to simulatenously work on one project. There might be some top heavy work at the begining but it is well worth it. Everything is packaged nicely for Ubuntu so there really isn't much work. This install will put absolutely no security measures on the repository so use cautiously. The base install only allows for command line access to the repository so we'll also look at putting a web GUI on top of if.
Installing the Repository
$ sudo apt-get install subversion
That'll install the basic software. The next few steps will just setup the permission for the proper users and create a repository called thinktank at /home/svn. You need to give permission to the Apache user so that it can view the repository and lastly you need to enable an Apache Module.
$ sudo mkdir /home/svn $ cd /home/svn $ sudo mkdir thinktank $ sudo chown -R www-data thinktank $ sudo chgrp -R subversion thinktank $ sudo chmod -R g+rws thinktank $ sudo apt-get install libapache2-svn
$ sudo /etc/init.d/apache2 force-reload
Get Web GUI Installed
There are a lot of different packages that will create a nice top cover for the repository but I decided to go with one that was written in PHP. It's called WebSvn and is pretty simple to install
$sudo apt-get install websvn
Once you do that it will run through an interactive installation procedure and automatically prompt you for the location of the repository files. /home/svn/ in this case. Once completed a reload of apache is neccessary:
$ sudo /etc/init.d/apache2 force-reload
Modify the code in /usr/share/websvn

Load up http://localhost/websvn and check out the results. Neat!!
