If you’re developing applications you will need a versioning tool sooner or later, even if you’re not working in a team. Its backup functions and the ability to review any changes on your code is something you never want to miss again. Since it’s not too easy to set up an SVN repository, here’s a step-by-step tutorial how I did on my virtual server. I basically followed this german tutorial from the ubuntuusers.de wiki.
Installing the necessary packages
sudo apt-get install subversion libapache2-svn
Make directories for your repository
The following is just an example, you can change your directory but remember to keep your directory through this tutorial.
sudo mkdir -p /var/www/svn/myproject
Create repository via svnadmin tool
sudo svnadmin create --fs-type fsfs /var/www/svn/myproject
Change ownership of this directory to your default apache user
By default this is www-data:www-data on Ubuntu
sudo chown -R user:group /var/www/svn/myproject
Optional: Setting permissions of the directory
If you face a “permission denied” error when doing your initial import later, you have to change the permissions for this directory
sudo chmod -R 775 /var/www/svn/myproject
Add a location to your dav_svn.conf
vi /etc/apache2/mods-enabled/dav_svn.conf
and add the following entry:
<Location /myproject>
DAV svn
SVNPath /var/www/svn/myproject
# Add this if you want committers to authenticate themselves
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/my.passwd
# The following three lines allow anonymous read, but make
# committers authenticate themselves.
<LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
</LimitExcept>
</Location>
Create a password file for commiters
htpasswd2 -c /etc/apache2/dav_svn.passwd user
Restart your server
/etc/init.d/apache2 restart
Congratulations! Point your browser to http://yourserver.com/myproject and enjoy your SVN repository!
Volker Uncategorized SVN, Ubuntu
While watching Ryan Bates’ railscasts, i learned to love the syntax highlighting of textmate (which seems to be the best IDE for developing rails apps). Though buying a mac is no solution for me
i found a nice theme for Aptanas RadRails (my favourite IDE) which does some really cool syntax highlighting in textmate-style.

You can download it from here.
Btw: If you were expecting me to post more often, i apologize that i haven’t had much time in the last weeks. But i just finished my project for this semester last week and i have to take some exams in the next weeks. You’ll hear from me soon
Volker Ruby on Rails aptana, ide, rails, textmate
I just got this message with Rails 2.2.2 and a MySQL 5.0.x DB on Windows Vista as i tried to rake db:create
The specified module could not be found. - c:/ruby/lib/ruby/gems/1.8/gems/mysql-2.7.3-x86-mswin32/ext/mysql.so
After penetrating google for some time i found a solution that was working for me. All you have to do is to copy your libmySQL.dll from your MySQL bin directory to your ruby bin directory.
Volker Ruby, Ruby on Rails mysql, rails
One of the best parts of learning Ruby/RoR is getting in touch with it. If you see it in action you instantly want to learn it and you can!
The best ways to learn Ruby:
The best ways to learn Ruby on Rails:
The best books:
It is important to read the newest books because rails is developing fast and so the ways how something is done change often – and are getting easier as well
english:
german:
german openbooks:
Beware of old guides, links and tutorials, maybe things are done otherwise today than they’ve been some time ago!
HowTos:
Want to contribute an important link? I’d love to see your comment!
Volker Ruby, Ruby on Rails getting started, links, Ruby, Ruby on Rails
After spending some hours with setting up and configuring my new virtual server, i finally got familiar with wordpress. It’s a neat tool
This blog will contain all topics that caught my attention during my studies. The main topics will be Ruby on Rails, one of the most awesome web-frameworks ever invented. Especially because my internship at IBM in Böblingen with the topic “Application development with Ruby on Rails” starts this march.
The next days i’m going to write about the deployment of rails applications and setting up the server for rails development (e.g. svn).
Volker General Blog, Me