This is an old revision of the document!


How to install and use subversion by George Petasis

There are two ways to install subversion by either a) installing debian and chroot-ing into it (howto) or b) installing natively by cross-compiling subversion to run natively on the DNS 322. This page describes the latter (b).

The easy way: Installing pre-compiled binaries

There are pre-compiled binaries for the DNS 323 available from http://www.ellogon.org/~petasis/DNS323/subversion-1.4.5-fun_plug-0.3.zip . These binaries were created for firmware version 1.03 and fonz fun_plug 0.3, from subversion 1.4.5 sources, available from http://subversion.tigris.org/ . The installation procedure for these pre-compiled binaries is as follows:

  1. Install fonz fun_plug 0.3 from http://www.inreto.de/dns323/fun-plug/0.3/funplug-0.3.tar.gz , install the fun_plug and reboot the DNS to activate it (fun_plug howto).
  2. Unzip subversion-1.4.5-fun_plug-0.3.zip. You will find 2 files (subversion-1.4.5-fun_plug.d.tar & README.txt).
  3. Copy subversion-1.4.5-fun_plug.d.tar to “Volume_1” (/mnt/HD_a2) of your DNS.
  4. Telnet to your DNS.
  5. cd /mnt/HD_a2
  6. tar xvf subversion-1.4.5-fun_plug.d.tar
  7. cd fun_plug.d/start
  8. chmod a+x svnserve.sh
  9. chmod a+x dropbear.sh
  10. Reboot your DNS.

Using the pre-compiled binaries (instructions provided by user aleck)

Forum user aleck provided some information about how to use the subversion binaries at the forum:

  1. Telnet to DNS-323
  2. Create the repository:
    svnadmin create /mnt/HD_a2/svn
  3. cd /mnt/HD_a2/svn
  4. cd conf
  5. joe svnserve.conf
    • This will open the repository config file, where everything is commented out (with #). You need to uncomment the lines and setup whatever you need. This is what I (user aleck) did:
      [general]
      anon-access = read
      auth-access = write
      
      password-db = passwd
      
      authz-db = authz
      
      realm = nas

      “realm” can be anything you want. Just about anything. Save this file with Ctrl+K, then W. Exit joe with Ctrl+K, then Q.

  6. Edit the password file, using joe or any other editor. In this file add lines in the form user = pass, whatever you want to use to access svn server. Save the file and exit from the editor:
    1. joe passwd
    2. Edit the password file.
    3. Save the file and exit from the editor.
  7. Edit the authorisation file:
    1. joe authz
    2. Edit the file to be similar to the following:
      [/]
      * = rw
    3. Save the file and exit from the editor.
  8. Restart the subversion server, in order to load the changes in the configuration files:
    /mnt/HD_a2/fun_plug.d/start/svnserve.sh restart
  9. Now start you SVN client, on your machine and access svn server using:
    svn://nas/
    or whatever is the URL/IP for your DNS-323.

The hard way: cross-compiling from sources

FIXME


Navigation

Personal Tools