Search This Blog

Saturday, 12 May 2012

Cheap svn server

It is useful to know that the Synology low-cost NAS can be configured as svn server. I have done the installation with DS210j which has 128MB RAM. There is a nice step-by-step guide which one can follow to install svn and also websvn. The following steps will hopefully help that you can do it faster than myself:
  1. Check on this site what CPU your NAS has.
  2. Get the correct version of ipkg and install it via bootstrap.
  3. Install svn via ipkg.
  4. Create a directory where you want to put your repos.
  5. Create a test repository.(/opt/bin/svnadmin)
  6. Set up the web access in /volume1/svn/test/conf/svnserver.conf
Additionally I installed websvn:
  1. Download the latest version.
  2. Follow the instructions from the included INSTALL.TXT.
  3. To access svn through http you need to grant php the permission to the svn repos. Add them to open_basedir  in the file /usr/syno/etc/php/user-settings.ini
  4.  Restart Apache with /usr/syno/etc/rc.d/S97apache-user.sh restart