DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

#1 2008-03-17 16:49:43

poggsuk
Member
Registered: 2008-03-17
Posts: 8

Req: Full instruction s on how to install NFS on my DNS-323

Hello,

I have got my self a popcorn hour media player and wish to make use of streaming form the DNS-323.  popcorn hour recommends NFS for HD files. 

I have done a number of searches but can only find very basic instructions beyond my knowledge level for setting the up the 323 for NFS.

The beginners wiki is anything but and is much nearer to intermediate/advanced level as it has no walk throughs and expects fairly decent knowledge of linux terms.

So can anyone provide or link to full instructions for a Windows user who's only experience of linux was upgrading a hard drive ina tivo 6 years ago?  I dont know how to 'telnet into the root and run the unix fun plug' but can easily follow proper instructions.

So can anyone assist?

thanks

Offline

 

#2 2008-03-17 18:15:10

moquilok
Member
Registered: 2008-03-17
Posts: 28

Re: Req: Full instruction s on how to install NFS on my DNS-323

You need to start off by installing the fun-plug:
1.  Go to http://www.inreto.de/dns323/fun-plug/0.4/ and download funplug-0.4.tar.gz
2.  Open it up with winRAR (not winZIP) and place the 2 files onto your DNS-323 (drop them in the initial area where you have mapped your network drive to it).
3.  Reboot your DNS-323 and wait until it's fully up and running again
4.  Download putty.exe from http://www.chiark.greenend.org.uk/~sgta … nload.html
5.  You can use putty to telnet into the DNS-323 by putting in the IP address of the DNS-323, port (23 is default for telnet), and choose the Telnet connection type.  Then click on the Open button.  A new window should appear that looks similar to a DOS command window.  You have now telnet'd into the root area of your DNS-323 as root.

Getting the NFS server up and running
1.  Go to http://www.inreto.de/dns323/fun-plug/0.4/addons/ and download unfs3-0.9.18.tgz and portmap-6.0.tgz
2.  Move the 2 .tgz files onto your DNS-323 (drop them in the initial area where you have mapped your network drive to it).
3.  Telnet into your DNS-323 and go to the directory where you put your 2 .tgz files.  The command should be: 'cd /mnt/HD_a2' -- without the single quotes
4.  Type 'funpkg.sh portmap-6.0.tgz'
5.  Type 'funpkg.sh unfs3-0.9.18.tgz'
6.  Type 'chmod 755 /mnt/HD_a2/fun_plug.d/start/unfsd.sh'
6.  Type 'sh /mnt/HD_a2/fun_plug.d/start/unfsd.sh start' to start the NFS server -- next time, when you restart your DNS-323, the NFS server should automatically start

Last edited by moquilok (2008-03-17 18:16:26)

Offline

 

#3 2008-03-17 19:35:00

poggsuk
Member
Registered: 2008-03-17
Posts: 8

Re: Req: Full instruction s on how to install NFS on my DNS-323

Thank you very much.

Top instructions that are very easy to follow.

one more question.  Does anything 'happen' to the stuff on the hard drives as a result of moving to NFS?  I'd hate to lose the 750gb of HD downloads!  Moving to the main pc first is not out of the question, just would rather avoid it!

Offline

 

#4 2008-03-17 20:25:42

moquilok
Member
Registered: 2008-03-17
Posts: 28

Re: Req: Full instruction s on how to install NFS on my DNS-323

No, everything should stay the same for your hard drive contents -- think of NFS as another way of mapping a drive on windows.

Offline

 

#5 2008-03-23 22:43:17

poggsuk
Member
Registered: 2008-03-17
Posts: 8

Re: Req: Full instruction s on how to install NFS on my DNS-323

Thanks for the help.  I followed all the instructions with no issues.  Everything went as described and there were no errors or anything.

However Nothing seems any different!  Is that normal?  Windows sees the NAS just the same.

Is there a way to test that I am using NFS?

Offline

 

#6 2008-03-24 02:17:17

truxntrax
Member
Registered: 2007-11-16
Posts: 33

Re: Req: Full instruction s on how to install NFS on my DNS-323

Followed instructions all ok but when I run this command:

sh /mnt/HD_a2/fun_plug.d/start/unfsd.sh start

I get the following error:

ERROR: rpc.portmap not found
ERROR: unfsd not found or not executable
~/HD_a2/fun_plug.d/start #

But when I have looked in sbin and can see the files:

~/HD_a2/fun_plug.d # cd sbin/
~/HD_a2/fun_plug.d/sbin # ls
pmap_dump    pmap_set     rpc.portmap  unfsd

I have issued this command successfully:

chmod 755 /mnt/HD_a2/fun_plug.d/start/unfsd.sh

(using fun plug v0.4).  I hope someone can help.

Many thanks - trux

Offline

 

#7 2008-03-24 11:53:44

moquilok
Member
Registered: 2008-03-17
Posts: 28

Re: Req: Full instruction s on how to install NFS on my DNS-323

poggsuk wrote:

Thanks for the help.  I followed all the instructions with no issues.  Everything went as described and there were no errors or anything.

However Nothing seems any different!  Is that normal?  Windows sees the NAS just the same.

Is there a way to test that I am using NFS?

Windows will continue to use Samba to connect with your NAS unless you're running an NFS client like HaneWin/WinHane.

When you're using your PCH, you should be able to access your NAS using NFS.

Offline

 

#8 2008-03-24 11:56:16

moquilok
Member
Registered: 2008-03-17
Posts: 28

Re: Req: Full instruction s on how to install NFS on my DNS-323

truxntrax wrote:

Followed instructions all ok but when I run this command:

sh /mnt/HD_a2/fun_plug.d/start/unfsd.sh start

I get the following error:

ERROR: rpc.portmap not found
ERROR: unfsd not found or not executable
~/HD_a2/fun_plug.d/start #

But when I have looked in sbin and can see the files:

~/HD_a2/fun_plug.d # cd sbin/
~/HD_a2/fun_plug.d/sbin # ls
pmap_dump    pmap_set     rpc.portmap  unfsd

I have issued this command successfully:

chmod 755 /mnt/HD_a2/fun_plug.d/start/unfsd.sh

(using fun plug v0.4).  I hope someone can help.

Many thanks - trux

First make sure that your $SBINDIR is set properly by issuing 'echo $SBINDIR'.  If the result is '/mnt/HD_a2/fun_plug.d/sbin', then its an access problem.  You'll need to chmod 755 the 2 files in the sbin directory.

Offline

 

#9 2008-03-24 12:15:04

truxntrax
Member
Registered: 2007-11-16
Posts: 33

Re: Req: Full instruction s on how to install NFS on my DNS-323

Ok - thanks for the advice.

When I issue the command echo $SBINDIR

I get :

/ # echo $SBINDIR

/ #           

(just a blank space....  So this is my problem - but how do I fix.

Everthing else works ok on the fun-plug.  LLink, inadyn, telnet etc... and chroot to debian etch.

What can I do now?

Many thanks

John

Offline

 

#10 2008-03-24 14:15:24

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Req: Full instruction s on how to install NFS on my DNS-323

truxntrax wrote:

I have issued this command successfully:

chmod 755 /mnt/HD_a2/fun_plug.d/start/unfsd.sh

Should now start automatically after reboot.

Offline

 

#11 2008-03-24 14:26:17

truxntrax
Member
Registered: 2007-11-16
Posts: 33

Re: Req: Full instruction s on how to install NFS on my DNS-323

Fonz- thanks for reply.

Still doesn't appear to be working (testing with popcornhour using nfs: connection.

When I try start the script manually after a reboot I get the following:

BusyBox v1.6.1 (2007-07-22 13:51:10 CEST) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

/ # sh /mnt/HD_a2/fun_plug.d/start/unfsd.sh start
ERROR: rpc.portmap not found
ERROR: unfsd not found or not executable
/ #

But the files are there with the correct permissions:

~/HD_a2/fun_plug.d # cd sbin
~/HD_a2/fun_plug.d/sbin # ls
pmap_dump    pmap_set     rpc.portmap  unfsd
~/HD_a2/fun_plug.d/sbin # ls -l
-rwxr-xr-x    1 root     root         3492 Nov 20 22:41 pmap_dump
-rwxr-xr-x    1 root     root         3652 Nov 20 22:41 pmap_set
-rwxr-xr-x    1 root     root        13768 Nov 20 22:41 rpc.portmap
-rwxr-xr-x    1 root     root        70044 Nov 20 22:41 unfsd
~/HD_a2/fun_plug.d/sbin #

Help much appreciated.

Trux

Offline

 

#12 2008-03-24 14:43:18

moquilok
Member
Registered: 2008-03-17
Posts: 28

Re: Req: Full instruction s on how to install NFS on my DNS-323

It seems like you SBINDIR env variable is not being set.  Look in your fun_plug file (/mnt/HD_a2/fun_plug) and see if the following line is present:

export SBINDIR=${FUNPLUGDIR}/sbin

If not, add that in.  In the meantime, try exporting the variable manually by typing the command above, then issuing the 'sh /mnt/HD_a2/fun_plug.d/start/unfsd.sh start' command and see if that works for you.

Offline

 

#13 2008-03-24 14:53:42

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Req: Full instruction s on how to install NFS on my DNS-323

truxntrax wrote:

Fonz- thanks for reply.

Still doesn't appear to be working (testing with popcornhour using nfs: connection.

When I try start the script manually after a reboot I get the following:

BusyBox v1.6.1 (2007-07-22 13:51:10 CEST) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

/ # sh /mnt/HD_a2/fun_plug.d/start/unfsd.sh start
ERROR: rpc.portmap not found
ERROR: unfsd not found or not executable

Are you logging in via ssh? The fun_plug variables might not be set, then. 0.4 has them in ../fun_plug.d/etc/profile, not sure if that already worked in 0.3. See
http://dns323.kood.org/forum/t1911-Conn … ables.html

What's in .../fun_plug.d/log/fnu_plug.log (or similar) about unfs? Also, check if it is running with 'ps aux | grep unfs'.

Offline

 

#14 2008-03-24 15:57:09

truxntrax
Member
Registered: 2007-11-16
Posts: 33

Re: Req: Full instruction s on how to install NFS on my DNS-323

Fonz- no using telnet.

When I look in funplug I see the following:

#!/bin/sh

VOL1=/mnt/HD_a2
VOL2=/mnt/HD_b2
FUNPLUGTAR=${VOL1}/fun_plug.tar
FUNPLUGDIR=${VOL1}/fun_plug.d
ETCDIR=${FUNPLUGDIR}/etc
BINDIR=${FUNPLUGDIR}/bin
SBINDIR=${FUNPLUGDIR}/bin
LIBDIR=${FUNPLUGDIR}/lib
LOGDIR=${FUNPLUGDIR}/log
LOGFILE=${LOGDIR}/fun_plug.log
PATH=${BINDIR}:${PATH}
LD_LIBRARY_PATH=${LIBDIR}

export VOL1
export VOL2
export FUNPLUGDIR
export ETCDIR
export BINDIR
export LIBDIR
export LOGDIR
export LOGFILE
export PATH
export LD_LIBRARY_PATH

What specifically should I add in?  Is the problem with this line: SBINDIR=${FUNPLUGDIR}/bin?

When I run the following manually I get:

~/HD_a2 # export SBINDIR=${FUNPLUGDIR}/sbin
~/HD_a2 # sh /mnt/HD_a2/fun_plug.d/start/unfsd.sh start
Starting rpc.portmap...
/mnt/HD_a2/fun_plug.d/sbin/rpc.portmap: can't load library 'libwrap.so.0'
Starting unfsd...
~/HD_a2 #

It now seems to be running:

~/HD_a2 # ps aux | grep unfs
8541 root     grep unfs
~/HD_a2 #

Do I need to do anything about the libwrap.so.0 error?
What should I add to the funplug file?

In the file unfsd.log is:

Cannot register service: RPC: Unable to receive; errno = Connection refused
unable to register (NFS3_PROGRAM, NFS_V3, udp).
UNFS3 unfsd 0.9.18 (C) 2006, Pascal Schmidt <unfs3-server@ewetel.net>

In the file fun_plug.log is:

**** fun_plug script for DNS-323 (2007-07-22 tp@fonz.de) ****
Mon Mar 24 11:14:56 GMT 2008
* /mnt/HD_a2/fun_plug.d/start/inetd.sh not executable...
* /mnt/HD_a2/fun_plug.d/start/lighttpd.sh not executable...
* Running /mnt/HD_a2/fun_plug.d/start/llink.sh start ...
Starting llink...
* /mnt/HD_a2/fun_plug.d/start/mount-disk.sh not executable...
* /mnt/HD_a2/fun_plug.d/start/rsyncd.sh not executable...
* Running /mnt/HD_a2/fun_plug.d/start/telnetd.sh start ...
Starting telnetd...
* /mnt/HD_a2/fun_plug.d/start/timezone.sh not executable...
* Running /mnt/HD_a2/fun_plug.d/start/unfsd.sh start ...
ERROR: rpc.portmap not found
ERROR: unfsd not found or not executable
* Done

Many thanks for help - back in about 4 hours so will be able to implement and report back then

Trux

Last edited by truxntrax (2008-03-24 16:06:03)

Offline

 

#15 2008-03-24 16:09:55

moquilok
Member
Registered: 2008-03-17
Posts: 28

Re: Req: Full instruction s on how to install NFS on my DNS-323

I think you may be using the funplug file from 0.3 and not 0.4.  Also from your above message, the unfs is not running, only the grep for the command is shown, not the actual server running.  I'm not sure how you may have updated to 0.4, but it seems to be incomplete.  You may want to retry installing 0.4.

Offline

 

#16 2008-03-24 16:22:18

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Req: Full instruction s on how to install NFS on my DNS-323

truxntrax wrote:

Fonz- no using telnet.
...
Starting rpc.portmap...
/mnt/HD_a2/fun_plug.d/sbin/rpc.portmap: can't load library 'libwrap.so.0'
...

I think moquilok is right. The 0.4 fun_plug.tar includes libwrap. Are you possibly mixing files from 0.3 and 0.4? The quickest way to get you going is probably a reinstall. As simple as:

1. Move old funplug out of the way

Code:

cd /mnt/HD_a2
mv fun_plug.d old-fun_plug.d
rm fun_plug

2. Copy new fun_plug and fun_plug.tar files. Also copy the addons you want.

3. Reboot

If you need any of your old file, just copy them from old-fun_plug.d to the new fun_plug.d. If you're done, you can remove old-fun_plug.d

Code:

cd /mnt/HD_a2
rm -rf old-fun_plug.d

Offline

 

#17 2008-03-24 21:21:18

truxntrax
Member
Registered: 2007-11-16
Posts: 33

Re: Req: Full instruction s on how to install NFS on my DNS-323

Yes - many thanks - I had old fun_plug!

all sorted!!

:-)

Offline

 

#18 2008-03-27 00:41:14

dastrix
Member
Registered: 2008-03-12
Posts: 18

Re: Req: Full instruction s on how to install NFS on my DNS-323

Ive been unsuccessful in geting this working with Popcorn hour also!!!

I have managed to run the unfsd but I cant map anything to it from the popcorn hour,

What command is best to use on the DNS323 to map my existing ENTIRE volume to a share??

Then, what do I use as the mapping in the popcorn hour??

Thanks guys

Offline

 

#19 2008-03-27 12:48:35

moquilok
Member
Registered: 2008-03-17
Posts: 28

Re: Req: Full instruction s on how to install NFS on my DNS-323

I don't have an PCH, but I should be getting my Istar mini tomorrow.  There's a guide in this post about how to setup NFS for your PCH: 

http://www.mpcclub.com/modules.php?name … mp;start=0

I believe in the PCH, you would type in something like

nfs://<ip of dns-323>:/mnt/HD_a2

Last edited by moquilok (2008-03-27 13:37:12)

Offline

 

#20 2008-05-23 13:52:31

Migmaxou
New member
Registered: 2008-05-23
Posts: 4

Re: Req: Full instruction s on how to install NFS on my DNS-323

Hi,
I've followed this procedure, but now i have some trouble, i can't connect via telnet on my nas.
And i haven't the permisssion to delete the folder fun_plug.d.
How to restore the original configuration ? format ? I've tried via web page without succes!
Thank you.

Last edited by Migmaxou (2008-05-23 14:13:22)

Offline

 

#21 2008-05-23 22:44:12

truxntrax
Member
Registered: 2007-11-16
Posts: 33

Re: Req: Full instruction s on how to install NFS on my DNS-323

I think now on the popcorn hour the format is: nfs-tcp://ipaddy/:

Now working for me - although limitted by not being able to explore nested folders:(

Trux

Offline

 

#22 2009-11-27 09:29:27

msimon1960
Member
Registered: 2009-11-27
Posts: 12

Re: Req: Full instruction s on how to install NFS on my DNS-323

moquilok wrote:

6.  Type 'chmod 755 /mnt/HD_a2/fun_plug.d/start/unfsd.sh'
6.  Type 'sh /mnt/HD_a2/fun_plug.d/start/unfsd.sh start' to start the NFS server -- next time, when you restart your DNS-323, the NFS server should automatically start

I'm using fun_plug 0.5 and everything seems to work okay, except these last two commands.

The telnet response is that the directories don't exist -- I can cd to /mnt/HD_a2/ but that's it -- btw   /mnt/HD_a2/ doesn't show up in the FPP directory .  Should I be albe to see it?

Matthew.

Offline

 

#23 2011-01-04 23:09:01

ako673de
New member
Registered: 2011-01-04
Posts: 3

Re: Req: Full instruction s on how to install NFS on my DNS-323

truxntrax wrote:

Ok - thanks for the advice.

When I issue the command echo $SBINDIR

I get :

/ # echo $SBINDIR

/ #           

(just a blank space....  So this is my problem - but how do I fix.

Everthing else works ok on the fun-plug.  LLink, inadyn, telnet etc... and chroot to debian etch.

What can I do now?

Many thanks

John

Hi there,

I've got a CH3MNAS, but my problem should be a generic one. My question is: How did you get "inadyn" to work! Everytime I start the binary (that is said to be the only thing necessary on Linux systems) it tells me "syntax error: ( unexpected in line 1". The same for inadyn-mt. I even tried to recompile inadyn-mt on my device but fails with some missing "ao/ao.h" (which doesn't exist anywhere in the package).

Can anybody help?

regards
ako673de

Offline

 

#24 2011-01-05 08:35:51

krackpot
Member
Registered: 2009-01-24
Posts: 44

Re: Req: Full instruction s on how to install NFS on my DNS-323

Mine seems to run fine but I'm on an older firmware. Not sure if that makes a difference.

Unfortunately Windows 7 Client for NFS freezes when trying to access the share. It mounts properly, but won't list the contents of the share. Any ideas what can help? Any settings for the exports file?

Also running the new samba 3.4.6? Do I need to disable samba for this to work?

Last edited by krackpot (2011-01-05 08:36:40)


DNS-323 (B1) on Alt-F 0.1B7
2x2TB WD20EARS

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB