Hosting Subversion service on the ReadyNAS
July 25, 2008 by yoh-dah
Filed under How-To's, ReadyNAS Developer
This article on how to install a Subversion (SVN) was originally written by our forum member rocket15,
I managed to create a svn repository on my ReadyNAS Duo. This is what i have done to get the job done:
Install the following ReadyNAS add-ons:
- EnableRootSSH
- APT
They’re available on the ReadyNAS Add-ons page.
Then login to your ReadyNAS as root with SSH (you can use putty) and follow the steps below:
Step 1
Download the needed packages using wget (won’t work with apt-get because of old libc6 of ReadyNAS):
# wget http://ftp.nl.debian.org/debian/pool/main/libx/libxml2/libxml2_2.6.27.dfsg-2_sparc.deb # wget http://ftp.nl.debian.org/debian/pool/main/n/neon26/libneon26_0.26.2-4_sparc.deb # wget http://ftp.nl.debian.org/debian/pool/main/d/db4.4/libdb4.4_4.4.20-8_sparc.deb # wget http://ftp.nl.debian.org/debian/pool/main/s/subversion/libsvn1_1.4.2dfsg1-2_sparc.deb # wget http://ftp.nl.debian.org/debian/pool/main/s/subversion/subversion_1.4.2dfsg1-2_sparc.deb # wget http://ftp.nl.debian.org/debian/pool/main/s/subversion/libapache2-svn_1.4.2dfsg1-2_sparc.deb
Step 2
Install the downloaded packages (ignore the warnings you get while installing):
# dpkg -i libxml2_2.6.27.dfsg-2_sparc.deb # dpkg -i libneon26_0.26.2-4_sparc.deb # dpkg -i libdb4.4_4.4.20-8_sparc.deb # dpkg -i libsvn1_1.4.2dfsg1-2_sparc.deb # dpkg -i subversion_1.4.2dfsg1-2_sparc.deb # dpkg -i libapache2-svn_1.4.2dfsg1-2_sparc.deb
Step 3
Then create a subverison repository.
# mkdir /c/svnstore/ # svnadmin create /c/svnstore/project_test # chown admin:admin /c/svnstore/ -R
Step 4
Configure Apache to serve Subversion:
# cd /etc/frontview/apache/addons # vi subversion.conf
(press i and shift ins the following content, afterwards :wq to save and exit)
LoadModule dav_svn_module /usr/lib/apache2/modules/mod_dav_svn.so LoadModule authz_svn_module /usr/lib/apache2/modules/mod_authz_svn.so <Location /svn_test> DAV svn SVNPath /c/svnstore/project_test AuthType Basic AuthName "Subversion Test Repository" Require valid-user </Location>
Step 5
Now restart the Apache server and test your Subversion config.
# /etc/init.d/frontview restart
Now you can checkout your project files with a svn client (Tortoise) with the following url:
http://<readynas>/svn_test/
Let me know if this working for you too!!!





(112 votes, average: 3.85 out of 5)
