Ankündigung

Einklappen
Keine Ankündigung bisher.

ffp on 4220

Einklappen
Das ist ein wichtiges Thema.
X
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • IB-NAS4220-B ffp on 4220

    Hi all,

    ffp is an add-on Linux distribution used on D-Link and Zyxel NAS
    boxes. Since the 4220 is also ARM-based, I'd like to find out if ffp
    works on it, too. Because I don't have a 4220, I can't test it myself.

    If you have telnet or ssh root access, it should be fairly simple
    to install. ffp installs to a completely separate directory tree,
    and won't modify the original firmware or flash. Consquently,
    removing it is as simple as removing the ffp directory.

    You can find the current list of ffp packages here: http://www.inreto.de/dns323/fun-plug/0.5/PACKAGES.html

    Additional contributed packages (like Transmission/Clutch,
    MLDonkey, Firefly or llink) are listed at http://wiki.dns323.info/howto:ffp#he...es_discussions
    or can be found in the DNS-323/CH3SNAS forums at: http://forum.dsmg600.info/f3-DNS-323...iscussion.html

    There's a complete toolchain for ffp that allows you to compile
    additional packages natively, without going through the hassle of
    creating a working cross-toolchain. If you think compiling
    natively is too slow, there's distcc that you can use to set up
    your local compile farm.

    Installation involves only a few simple steps:

    1. Download the fun_plug.tgz tarball from http://www.inreto.de/dns323/fun-plug/0.5/

    2. Open a telnet/ssh root session, and extract the tarball
    to a directory on disk:

    cd /some/where/on/disk
    mkdir ffp
    cd ffp
    tar xzf /path/to/fun_plug.tgz

    3. Create the /ffp link (requires writeable /):

    ln -s /some/where/on/disk/ffp /ffp

    Installation is basically complete now.
    Next, you should start the ffp shell to get the proper PATH:

    /ffp/bin/sh -l

    'echo $PATH' should list /ffp/sbin and /ffp/bin.
    You might want to try one of the included programs, first.
    Examples config files can be found in /ffp/etc/examples. To start
    a server, use the scripts in /ffp/start.
    E.g., to run ntp, the network time protocol daemon, first copy
    the config files:

    cd /ffp/etc
    cp examples/ntp.conf .

    Then, start the server:

    sh /ffp/start/ntpd.sh start

    Check synchronization status with:

    ntpq -pn

    If you download additional package files, you can install them with

    funpkg -i package.tgz

    To see what packages you have installed, look into the
    /ffp/var/packages directory. Remove a package with 'funpkg -r package'

    More examples and information can be found on the howto page at: http://wiki.dns323.info/howto:ffp
    and the nas-tweaks wiki at: http://nas-tweaks.net/CH3SNAS:Tutorials

    It would be great if someone gave it a try, and report back any
    problems (or success).

  • #2
    Hi,

    I have just tried it out, and it works like a charm! I have installed Transmission, it works just fine!
    Awesome!
    In addition, it is just great to have access to additional command, i.e. "find"

    Best regards

    Kommentar


    • #3
      Zitat von hsteinbo Beitrag anzeigen
      it works like a charm!
      That's good news! Thanks for reporting.

      I suspect the /ffp link needs to be recreated on every reboot.

      There might be additional issues. On the DNS-323, we use the /ffp/etc/fun_plug.init script to do various fixups (like mounting /dev/pts, creating missing devs, etc). Some of these might be needed on the 4220, too.

      Finally, if you want to start (enabled) ffp services automatically on boot, run '/ffp/etc/rc' after creating the /ffp link. You might want to have a look at the fun_plug script at http://www.inreto.de/dns323/fun-plug/0.5/ that automates installation and startup of ffp on the DNS-323.

      Kommentar


      • #4
        Hi fonz, hi @all.

        I've already installed the fun_plug 0.5 on a DNS-323.

        Now I'm trying to get it run on a IB-NAS4220.

        I'm failing at this point: "I suspect the /ffp link needs to be recreated on every reboot. "

        How can I automate the symlink creation and start of ffp after system start?
        I didn't get it.

        Greets
        jo-freaky

        Kommentar


        • #5
          Hi jo-freaky,

          userscript is probably what you are looking for.
          In a nutshell, it always to run your own scripts during startup.
          The description is in german, let me know if that is a problem and I will try to walk you through it.

          Kommentar


          • #6
            Starting Transmission Automatically

            Zitat von hsteinbo Beitrag anzeigen
            Hi jo-freaky,

            userscript is probably what you are looking for.
            In a nutshell, it always to run your own scripts during startup.
            The description is in german, let me know if that is a problem and I will try to walk you through it.
            Hi all, I've just bought this NAS and have been playing around with it. I've got transmission setup and running but I can't start it everytime the box reboots or without me being logged into the box!

            it seems i need to run the following commands
            /ffp/bin/sh -l
            /ffp/start/transmission.sh start

            I can't seem to figure out a way to run the first line using userscripts, does anybody else know how to do this (I'm really new to linux!!!)

            Thanks
            Dave

            Kommentar


            • #7
              Hi dave,

              it might suffice to set the PATH variable to include /ffp/bin before you start transmission.

              So instead of "/ffp/bin/sh -l" try to use a line like this:
              export PATH=/ffp/sbin:/usr/sbin:/sbin:/ffp/bin:/usr/bin:/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/syno/bin:/usr/syno/sbin:/usr/local/bin:/usr/local/sbin
              In addition, make sure the first line of transmission.sh looks like this:
              #!/ffp/bin/sh
              Good luck!

              Kommentar


              • #8
                It works

                Zitat von hsteinbo Beitrag anzeigen
                Hi dave,

                it might suffice to set the PATH variable to include /ffp/bin before you start transmission.

                So instead of "/ffp/bin/sh -l" try to use a line like this:
                In addition, make sure the first line of transmission.sh looks like this:


                Good luck!
                Hi hsteinbo,

                thank you for the info the /ffp/bin path was enough, this is what I ended up doing in my transmission script:

                Code:
                 
                #!/bin/sh
                #
                export PATH=$PATH:/ffp/bin
                 
                /ffp/start/transmission.sh start
                and now it starts on boot, thanks for the help

                Kommentar


                • #9
                  fun_plug on buffslo Terastation Duo works

                  Hi,
                  i tried to find out if fun_plug works on my TS-Duo. And it works fine.
                  I will check it now for the work all day. After that i will report here about problems.

                  Thanks...

                  Kommentar


                  • #10
                    Also works on Sarotech Wizplat NAS-20

                    Hi Fonz, I know this is already an old topic, but decided to answer to it anyway. I just used this method to install FFP on a Sarotech Wizplat NAS-20. It works great. Within a few minutes I had mediatomb up and running. Thanks !!

                    Kommentar


                    • #11
                      Hi all!

                      I read your posts.
                      Have got any idea how can i instal the v0.7 to my ib-nas4220-b?
                      The 0.5 works if i start manualy but i can't updrade to 0.7.

                      Kommentar


                      • #12
                        Zitat von romboyco Beitrag anzeigen
                        i can't updrade to 0.7.
                        Which version? You almost centainly need to use the OABI version:
                        http://ffp.inreto.de/ffp/0.7/oabi/

                        Kommentar


                        • #13
                          Yes that version.
                          I write an init like http://ffp.inreto.de/ffp/0.7/oabi/fun_plug

                          #!/bin/sh
                          HD_MNT_POINT=$(cat /usr/sausalito/codb/objects/1/Disk.rootdir 2> /dev/null)/public/applications
                          if [ -e "$HD_MNT_POINT/ffp_oarm/fun_plug.tgz" ]; then
                          cd $HD_MNT_POINT/ffp_oarm
                          tar -xzf $HD_MNT_POINT/ffp_oarm/fun_plug.tgz
                          rm $HD_MNT_POINT/ffp_oarm/fun_plug.tgz
                          cd $HD_MNT_POINT/ffp_oarm
                          fi


                          # write a log, in case sth goes wrong
                          FFP_LOG=/$HD_MNT_POINT/ffp_oarm/var/log/ffp.log
                          #FFP_LOG=/dev/null
                          exec >>$FFP_LOG 2>&1


                          # real path to ffp
                          FFP_PATH=$HD_MNT_POINT/ffp_oarm


                          # rc file path
                          FFP_RC=/ffp/etc/rc


                          PATH="/ffp/bin:/ffp/sbin:${PATH}"
                          export PATH
                          cat >> /etc/profile << EOF
                          PATH=/ffp/bin:/ffp/sbin:\$PATH
                          export PATH
                          EOF


                          # create /ffp link
                          echo "ln -snf $FFP_PATH /ffp"
                          ln -snf $FFP_PATH /ffp


                          CWD=/ffp


                          # suid busybox
                          if [ -x /ffp/bin/busybox ]; then
                          chown root.root /ffp/bin/busybox
                          chmod 0755 /ffp/bin/busybox
                          chmod u+s /ffp/bin/busybox
                          fi


                          if [ ! -d /root -a -w / ]; then
                          mkdir /root
                          fi


                          # run fun_plug.init, if present
                          if [ -x /ffp/etc/fun_plug.init ]; then
                          echo "* Running /ffp/etc/fun_plug.init ..."
                          /ffp/etc/fun_plug.init
                          fi


                          # run fun_plug.local, if present
                          if [ -x /ffp/etc/fun_plug.local ]; then
                          echo "* Running /ffp/etc/fun_plug.local ..."
                          /ffp/etc/fun_plug.local
                          fi


                          run commands
                          if [ -x $FFP_RC ]; then
                          echo "* Running $FFP_RC ..."
                          $FFP_RC
                          echo "* OK"
                          else
                          echo "$FFP_RC: Not found or not executable"
                          fi


                          Some devices do not have a nobody user for priviledge separation
                          if grep -v nobody /etc/passwd > /dev/null ; then
                          sed -i -e 's/\#UsePrivilegeSeparation yes/UsePrivilegeSeparation no/' /opt/etc/openssh/sshd_config
                          fi


                          echo Fixing permissions on the /tmp directory...
                          chmod 1777 /tmp
                          cd $CWD

                          It is not work.
                          1st problem sshd.sh scrip always regenerate the keys and wayting for an y becouse Generating public/private ecdsa key pair.
                          /ffp/etc/ssh/ssh_host_ecdsa_key already exists.
                          Overwrite (y/n)?
                          If you have an working init script please share whit me!

                          Kommentar


                          • #14
                            My script:
                            Code:
                            #!/bin/sh
                            
                            mkdir -p /mnt/md1/public/log
                            exec >/mnt/md1/public/log/ffp.log 2>&1
                            
                            ln -s /mnt/md1/ffp /ffp
                            
                            /ffp/etc/fun_plug.init
                            
                            /ffp/etc/rc start
                            
                            echo Change root shell
                            sed -i '/^root:/s/\/bin\/ash/\/ffp\/bin\/sh/g' /etc/passwd
                            sshd.sh scrip always regenerate the keys
                            Yes, that's a known bug. In /ffp/start/sshd.sh edit the line:
                            Code:
                                   if [ ! -f /etc/ssh/ssh_host_ecdsa_key ]; then
                            That should be /ffp/etc/...


                            Oh, BTW, there is a bug in the way the Raidsonic treats it's data partition. For some reason all files in the ffp tree are executable. So you have to switch off the unneeded start scripts by changing their extension.
                            Zuletzt geändert von Mijzelf; 08.01.2013, 21:09.

                            Kommentar


                            • #15
                              Thank You!

                              Its work.

                              Now i try to install any dlna server with subtitle handling.
                              Witch is better minidlna or mediatomb? Have you idea how i start or where i find a howto?

                              Kommentar

                              Lädt...
                              X