• February 23, 2025, 02:08:41 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: ^SOLVED^ Fun PLug Install Help PLease  (Read 14074 times)

anav_ds

  • Level 1 Member
  • *
  • Posts: 19
^SOLVED^ Fun PLug Install Help PLease
« on: July 30, 2011, 01:02:07 PM »

NEWBIE Alert

Just got my DNS 320 and two 2TB WD green hard drives.
Installed fun plug *(yes the modifed dns 320 version)

Result, the .tgz file does not disappear but an ffp text file did show up with the followign text.

**** fun_plug script for DNS-323 (2008-08-11 tp@fonz.de) ****
Sat Jul 30 17:26:55 ADT 2011
ln -snf /mnt/HD/HD_a2/ffp /ffp
/ffp/etc/rc: Not found or not executable

Additional notes:
Hard drives recognized no problme
Tried files in volumes 1 and 2,  nothing happens when done from volume 2
Using firmware version 2.00 dated 12/17/2010
there are two folders in Volume 1,  p2p and ajaxpf, that were created when I first started the stock firmware and was tooling around.

Any assistance appreciated.
« Last Edit: July 31, 2011, 11:16:59 AM by anav_ds »
Logged

albert

  • Level 5 Member
  • *****
  • Posts: 510
    • SoHo NAS Forum
Re: Fun PLug Install Help PLease
« Reply #1 on: July 30, 2011, 11:51:59 PM »

List content of Volume_1 and post here.
Logged
D-Link DNS-320 rev A1 (FW: 2.05) [FFP-0.7]
PCI NAS-01G (FW: Encore ENNHD-1000 4.10)
PCI NAS-01G (FW: OpenNAS 1.9]

anav_ds

  • Level 1 Member
  • *
  • Posts: 19
Re: Fun PLug Install Help PLease
« Reply #2 on: July 31, 2011, 07:53:55 AM »

As per previous email, the contents of volume 1 contain the fun-plug file, the .tgz file and two folders created by the DNS320   Ajaxpf and PTP.

THe P2p folder includes a folder called torrent which is empty.
The Ajaxpf folder includes a folder named recycle bin.  Which is also empty.

The ffp file contents are posted in the previous post, the fun_plug file contains the following text:

FFP_PATH=/mnt/HD/HD_a2/ffp

# where to search for the install tarball
FFP_TARBALL=/mnt/HD/HD_a2/fun_plug.tgz

# setup script (used for ffp on USB disk)
FFP_SETUP_SCRIPT=/mnt/HD/HD_a2/.bootstrap/setup.sh

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


echo "**** fun_plug script for DNS-323 (2008-08-11 tp@fonz.de) ****"
date


# check for setup script. an example use for this is to load USB
# kernel modules and mount a USB storage device. The script is
# sourced, that means you can change variables, e.g. FFP_PATH to point
# to the USB device.
if [ -x $FFP_SETUP_SCRIPT ]; then
    echo "* Running $FFP_SETUP_SCRIPT ..."
    . $FFP_SETUP_SCRIPT
fi

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

# install tarball
if [ -r $FFP_TARBALL ]; then
    echo "* Installing $FFP_TARBALL ..."
    mkdir -p $FFP_PATH && tar xzf $FFP_TARBALL -C $FFP_PATH && /ffp/bin/tar xzf $FFP_TARBALL -C $FFP_PATH
    if [ $? -eq 0 ]; then
        echo "* OK"
    fi
    rm $FFP_TARBALL
fi

# 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

# 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

Logged

albert

  • Level 5 Member
  • *****
  • Posts: 510
    • SoHo NAS Forum
Re: Fun PLug Install Help PLease
« Reply #3 on: July 31, 2011, 09:01:46 AM »

The reason I asked to see Volume_1 content is to verify if the file permission of fun_plug has changed, the content of other folders are irrelevant to this problem.
Logged
D-Link DNS-320 rev A1 (FW: 2.05) [FFP-0.7]
PCI NAS-01G (FW: Encore ENNHD-1000 4.10)
PCI NAS-01G (FW: OpenNAS 1.9]

albert

  • Level 5 Member
  • *****
  • Posts: 510
    • SoHo NAS Forum
Re: Fun PLug Install Help PLease
« Reply #4 on: July 31, 2011, 09:39:31 AM »

Silly me, with fun_plug not working you wouldn't be able to remote in and do a listing of Volume_1. Anyway do check if fun_plug permission is set to 777 (use Web File Server, right-click select Properties).

BTW, the content of fun_plug listed in your reply seem to be incomplete. Below is the correct one:
Code: [Select]
#!/bin/sh

# funplug for DNS-320 only !
#
# by Tamas   v 1.3

# switch to safe working directory on ramdisk
cd /

# write a log, in case sth goes wrong
FFP_LOG=/mnt/HD/HD_a2/ffp.log
#FFP_LOG=/dev/null
exec >>$FFP_LOG 2>&1

# real path to ffp
FFP_PATH=/mnt/HD/HD_a2/ffp

# where to search for the install tarball
FFP_TARBALL=/mnt/HD/HD_a2/fun_plug.tgz

# setup script (used for ffp on USB disk)
FFP_SETUP_SCRIPT=/mnt/HD/HD_a2/.bootstrap/setup.sh

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


echo "**** fun_plug script for DNS-323 (2008-08-11 tp@fonz.de) ****"
date


# check for setup script. an example use for this is to load USB
# kernel modules and mount a USB storage device. The script is
# sourced, that means you can change variables, e.g. FFP_PATH to point
# to the USB device.
if [ -x $FFP_SETUP_SCRIPT ]; then
    echo "* Running $FFP_SETUP_SCRIPT ..."
    . $FFP_SETUP_SCRIPT
fi

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

# install tarball
if [ -r $FFP_TARBALL ]; then
    echo "* Installing $FFP_TARBALL ..."
    mkdir -p $FFP_PATH && tar xzf $FFP_TARBALL -C $FFP_PATH && /ffp/bin/tar xzf $FFP_TARBALL -C $FFP_PATH
    if [ $? -eq 0 ]; then
        echo "* OK"
    fi
    rm $FFP_TARBALL
fi

# 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

# 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
Logged
D-Link DNS-320 rev A1 (FW: 2.05) [FFP-0.7]
PCI NAS-01G (FW: Encore ENNHD-1000 4.10)
PCI NAS-01G (FW: OpenNAS 1.9]

anav_ds

  • Level 1 Member
  • *
  • Posts: 19
Re: Fun PLug Install Help PLease
« Reply #5 on: July 31, 2011, 10:59:16 AM »

I checked the file I have in Volume 1 and it matches yours.  I seem to have skipped the intro lines whne pasting over.  My fun_plug is below.

Okay there is no properties slection in web file server but I do see that I put a tgz ending on the tar file such that now it has two .tgz endings which may be screwing up the file detection/use.  Will remove the extra .tgz and see what happens.



#!/bin/sh

# funplug for DNS-320 only !
#
# by Tamas   v 1.3

# switch to safe working directory on ramdisk
cd /

# write a log, in case sth goes wrong
FFP_LOG=/mnt/HD/HD_a2/ffp.log
#FFP_LOG=/dev/null
exec >>$FFP_LOG 2>&1

# real path to ffp
FFP_PATH=/mnt/HD/HD_a2/ffp

# where to search for the install tarball
FFP_TARBALL=/mnt/HD/HD_a2/fun_plug.tgz

# setup script (used for ffp on USB disk)
FFP_SETUP_SCRIPT=/mnt/HD/HD_a2/.bootstrap/setup.sh

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


echo "**** fun_plug script for DNS-323 (2008-08-11 tp@fonz.de) ****"
date


# check for setup script. an example use for this is to load USB
# kernel modules and mount a USB storage device. The script is
# sourced, that means you can change variables, e.g. FFP_PATH to point
# to the USB device.
if [ -x $FFP_SETUP_SCRIPT ]; then
    echo "* Running $FFP_SETUP_SCRIPT ..."
    . $FFP_SETUP_SCRIPT
fi

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

# install tarball
if [ -r $FFP_TARBALL ]; then
    echo "* Installing $FFP_TARBALL ..."
    mkdir -p $FFP_PATH && tar xzf $FFP_TARBALL -C $FFP_PATH && /ffp/bin/tar xzf $FFP_TARBALL -C $FFP_PATH
    if [ $? -eq 0 ]; then
        echo "* OK"
    fi
    rm $FFP_TARBALL
fi

# 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

# 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

Logged

anav_ds

  • Level 1 Member
  • *
  • Posts: 19
Re: Fun PLug Install Help PLease
« Reply #6 on: July 31, 2011, 11:02:57 AM »

Did A right click on fun plug no numbers are associated. What is available...
(1) Priveliges of read right and execute are checked off for the three categories of owner, user group and others, 
(2) Owner and user group heading as follows
Owner:  noboby
User Group:  allaccount
Logged

anav_ds

  • Level 1 Member
  • *
  • Posts: 19
Re: Fun PLug Install Help PLease
« Reply #7 on: July 31, 2011, 11:08:38 AM »

SUCCESS,  removing the .tgz ending which I had added to the file name did the trick.
Thanks for your help.

**** fun_plug script for DNS-323 (2008-08-11 tp@fonz.de) ****
Sat Jul 30 17:26:55 ADT 2011
ln -snf /mnt/HD/HD_a2/ffp /ffp
/ffp/etc/rc: Not found or not executable
**** fun_plug script for DNS-323 (2008-08-11 tp@fonz.de) ****
Sun Jul 31 16:06:17 ADT 2011
ln -snf /mnt/HD/HD_a2/ffp /ffp
* Installing /mnt/HD/HD_a2/fun_plug.tgz ...
* OK
* Running /ffp/etc/fun_plug.init ...
* Running /ffp/etc/rc ...
* /ffp/start/syslogd.sh inactive
* /ffp/start/SERVERS.sh inactive
* /ffp/start/portmap.sh inactive
* /ffp/start/unfsd.sh inactive
* /ffp/start/nfsd.sh inactive
* /ffp/start/ntpd.sh inactive
* /ffp/start/LOGIN.sh inactive
* /ffp/start/telnetd.sh ...
Starting /ffp/sbin/telnetd -l /ffp/bin/sh
* /ffp/start/sshd.sh inactive
* /ffp/start/rsyncd.sh inactive
* /ffp/start/mediatomb.sh inactive
* /ffp/start/kickwebs.sh inactive
* /ffp/start/lighttpd.sh inactive
* /ffp/start/inetd.sh inactive
*  OK
Logged

anav_ds

  • Level 1 Member
  • *
  • Posts: 19
Re: Fun PLug Install Help PLease
« Reply #8 on: July 31, 2011, 11:10:21 AM »

Next I want to add Transmission.  Is there a good guide?  The one I found seemed to want to change the 320 setup to match the 323 where the mounting is.  I am looking for one to use with the 320 as is. 
Logged