Differences
This shows you the differences between the selected revision and the current version of the page.
howto:subversion 2008/04/27 07:49 | howto:subversion 2017/09/06 18:38 current | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Howto install subversion by Jonas Levring ====== | ====== Howto install subversion by Jonas Levring ====== | ||
+ | ===== Issues ===== | ||
+ | Before you install (or buy this NAS), you must know SVN is not very fast on this NAS. Don't expect speeds above 400 kB/s. | ||
+ | |||
+ | |||
+ | ===== Installation with Fonz Fun Plug (FFP) ===== | ||
+ | ssh or telnet to your NAS. | ||
+ | <code bash> | ||
+ | cd /mnt/HD_a2/ffp/pkg/packages/ | ||
+ | funpkg -i apr-1.2.12-2.tgz | ||
+ | funpkg -i apr-util-1.2.12-1.tgz | ||
+ | funpkg -i neon-0.25.5-1.tgz | ||
+ | funpkg -i subversion-1.5.2-1.tgz | ||
+ | mkdir /mnt/HD_a2/{SVNDIR} | ||
+ | cd /mnt/HD_a2/ffp/start/ | ||
+ | vi svnserve.sh | ||
+ | </code> | ||
+ | (note: if you don't have the Fonz packages installed, you can download the four tgz files mentioned above from [[http://www.inreto.de/dns323/fun-plug/0.5/packages/|www.inreto.de]], and put them in the /mnt/HD_a2/ffp/pkg/packages/ directory, or anywhere else you like.) | ||
+ | |||
+ | edit line ([INSERT]): | ||
+ | <code bash> | ||
+ | REPOSITORY="/mnt/HD_a2/{SVNDIR}" | ||
+ | </code> | ||
+ | exit vi ([ESC] :wq [ENTER]) | ||
+ | <code bash> | ||
+ | chmod 755 svnserve.sh | ||
+ | ./svnserve.sh start | ||
+ | </code> | ||
+ | |||
+ | |||
+ | ===== Installation with Debian ===== | ||
+ | |||
Start by installing Debian ([[howto:chroot_debian|howto]]) | Start by installing Debian ([[howto:chroot_debian|howto]]) | ||
With just the minimal Debian etch (didn't try sarge) installed, I got a few errors while compiling Subversion due to missing required libraries. | With just the minimal Debian etch (didn't try sarge) installed, I got a few errors while compiling Subversion due to missing required libraries. | ||
+ | |||
+ | * On Lenny Subversion and Apache2 authentification works out of the box. (cameltheman@gmail.com) | ||
So below is a checklist to run so that ./configure while work from the first try (since it takes looooong to run, I thought it could be useful :-) ) | So below is a checklist to run so that ./configure while work from the first try (since it takes looooong to run, I thought it could be useful :-) ) | ||
Line 12: | Line 45: | ||
<code bash> | <code bash> | ||
apt-get install gcc | apt-get install gcc | ||
+ | apt-get install make | ||
apt-get install g++ | apt-get install g++ | ||
apt-get install zlibc | apt-get install zlibc | ||
apt-get install zlib-bin | apt-get install zlib-bin | ||
apt-get install zlib1g | apt-get install zlib1g | ||
- | apt-get install zlib1g-devel | + | apt-get install zlib1g-dev |
</code> | </code> | ||
Line 72: | Line 106: | ||
svnadmin create myLatestSourceCode/ | svnadmin create myLatestSourceCode/ | ||
</code> | </code> | ||
+ | |||
+ | |||
==== Authorization ==== | ==== Authorization ==== | ||
Line 78: | Line 114: | ||
By default its possible for anyone to read, but it requires username and password to update. | By default its possible for anyone to read, but it requires username and password to update. | ||
- | Edit ''svnserve.conf'' | + | Edit ''svnserve.conf'' (Daniel: found at: /mnt/HD_a2/Data/svn/myLatestSourceCode/conf/svnserve.conf) |
<code bash> | <code bash> | ||
pico svnserve.conf | pico svnserve.conf | ||
Line 85: | Line 121: | ||
Remove the ''#'' where there is only one, so it look something like this: | Remove the ''#'' where there is only one, so it look something like this: | ||
- | Note: Don't comment-out ''# authz-db = authz'' | + | Note: Don't uncomment ''# authz-db = authz'' |
<code bash> | <code bash> | ||
[general] | [general] |