Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
How do I export the videos directory so Popcorn Hour can see it?
I am able to connect via NFS to /mnt/HD_a2 but I want to use the videos subdirectory for my video files instead of leaving them all in the /mnt/HD_a2 path
Currently the HD_a2 path contains the following:
backups <= Directory
fun_plug.d <= Directory
music <= Directory
photos <= Directory
scanned_images <= Directory
videos <= Directory
fun_plug <= File
I don't want to place a bunch of files in the same directory as the fun_plug file.
Just received my Popcorn Hour unit today and like a boy with a new toy I can't wait to get it working :-D
Last edited by ithrowpicks (2008-04-15 02:32:08)
Offline
Hi.
I did it on Debian modifying the exports file in fun_plug.d/etc directory adding this entry:
/mnt/HD_b2/MOVIES 172.16.0.0/24(rw,no_root_squash)
Then restart the unfsd daemon and mount remotely:
mount -t nfs 172.16.0.33:/mnt/HD_b2/MOVIES /mnt/test/
In your case you have to point to HD_a2.
Thats all. I'm waiting for my Popcorn hour.
Best regards
Offline
Sorry if it works for you, you can remove the others lines in exports file, leaving only this one:
/mnt/HD_b2/MOVIES 172.16.0.0/24(rw,no_root_squash)
if you want to mount read only then change rw to ro.
Best regards
Offline
Adding the /mnt/HD_a2/Videos path worked perfectly
Good luck with the Popcorn Hour unit when you get it. So far I am very pleased with mine. It has played everything I have thrown at it .mkv .iso etc
I was even able to play a 720P .mkv television show over my wireless Super G connection without any stutters :-D
Popcorn Hour + DNS 323 + NFS = Awesome!
Offline
Can you please confirm what you typed in the networks share to find the 323 from popcorn hour?
I set up nfs via the intructions in
http://dns323.kood.org/forum/t1871-Req% … S-323.html
and all seemed to be ok with the correct responses etc.
in the popcorn hour I have tried
nfs://192.168.178.5:/Volume_1
nfs://192.168.178.5:/mnt/HD_a2/
nfs://192.168.178.5:/mnt/HD_a2/Volume_1
but for every one I get 'No Content found' when I connect to the the nas. I also tried doing the method as described in the link to mpcclub but get the same result.
Any ideas?
Offline
There should be no need to modify the exports file. If it exports /mnt/HD_a2, you can mount /mnt/HD_a2/Videos. If you do modify exports, be careful, unfs is picky and just stops working if something is wrong.
Offline
fonz
With the Popcorn Hour device I think you have to modify the exports file because it does not have a "Browse" function that works with NFS. You have to use the full path.
Prior to modifying the exports file I tried from the PCH nfs://192.168.0.107:/mnt/HD_a2/video with no luck but since modifying it everything works fine now.
I am no expert so if you have a better suggestion I am all ears because I certainly don't want to break anything since it is working so well.
poggsuk
This is what I have for my videos folder nfs://192.168.0.107:/mnt/HD_a2/videos
For the heck of it I also added the following to keep everything in a separate folder like I mentioned in my original post.
nfs://192.168.0.107:/mnt/HD_a2/music
nfs://192.168.0.107:/mnt/HD_a2/photos
Offline
ithrowpicks wrote:
fonz
With the Popcorn Hour device I think you have to modify the exports file because it does not have a "Browse" function that works with NFS. You have to use the full path.
Prior to modifying the exports file I tried from the PCH nfs://192.168.0.107:/mnt/HD_a2/video with no luck but since modifying it everything works fine now.
I am no expert so if you have a better suggestion I am all ears because I certainly don't want to break anything since it is working so well.
poggsuk
This is what I have for my videos folder nfs://192.168.0.107:/mnt/HD_a2/videos
For the heck of it I also added the following to keep everything in a separate folder like I mentioned in my original post.
nfs://192.168.0.107:/mnt/HD_a2/music
nfs://192.168.0.107:/mnt/HD_a2/photos
Hi ithrowpicks, what firmware versions are you using for your PCH and DNS-323? I have the latest firmware for both but face a 'cannot see subdirectories' problem when mounting a DNS-323 NFS share on a PCH. The PCH could see and open any files under the exported directory but cannot see any subdirectories under it.
Offline
I can't see subdirectories either but that is not a concern for me. In my original post I just wanted the ability to keep all videos in the video folder etc
If you could see my NAS folder setup you would notice the Music, Photos, and Videos folders do not have any subfolders.
I am using the latest firmware for both PCH and DLink
Offline
Hi,
I'm Waiting fOR my popcorn Unit as well ... :-)
have you tried playing mkvs via SMB? Was there a performance problem? if it is not a must I wold try to avoid using the NFS . . .
Is there no sub-dir browsing for SMB either?
Cheers, Toni
ithrowpicks wrote:
I can't see subdirectories either but that is not a concern for me. In my original post I just wanted the ability to keep all videos in the video folder etc
If you could see my NAS folder setup you would notice the Music, Photos, and Videos folders do not have any subfolders.
I am using the latest firmware for both PCH and DLink
Offline
I have exactly the same problem as i can't see subdirectories with nfs, share via smb OK but too slow sometimes even for SD movies with my Istar (same firmware development as Popcorn hour). Its annoying as nfs works very well with my TVIX 6500 and I don't have any problems browsing or playing with this
Offline
to be able to see directories in an nfs share, mount the share to an empty directory on the internal drive (telnet access required).
e.g.
/bin/mount dlink-server:/mnt/HD_a2 /opt/sybhttpd/localhost.drives/HARD_DISK/Dlink
you should then be able to browse everything on dns-323 as if it where just another folder on the popcorn's internal drive.
Last edited by langl3y (2008-05-25 21:12:52)
Offline
sbrundell wrote:
I have exactly the same problem as i can't see subdirectories with nfs, share via smb OK but too slow sometimes even for SD movies with my Istar (same firmware development as Popcorn hour). Its annoying as nfs works very well with my TVIX 6500 and I don't have any problems browsing or playing with this
NFS on the DNS-323 works great from our TVix 6500a also. We have 2 DNSs both set up as separate drives (so 4 distinct drive). They are all visible and accessible through a single NFS setup on the 6500a. I use a combination of inbound, outbound and local mounts (--bind) to achieve this. I plan to mount more drives to the second NFS as needed using USB storage. Since we are using them to stream video, I am not concerned with performance across a USB hub to multiuple drives, since only 1 at a time would be accessed.
DNS A Drive 1 (DAD1) has the main mount point that the 6500 connects to. I didn't like having to change mount points to access the different content, so I came up with this to take care of that. This involved putting a directory structure in place of which only less than half actually exists on DAD1.
DAD1 (DNS A Drive 1)
Videos (inbound mount from TVix)
-- Anime (local on DAD1)
-- HD (Mounted to Videos on DBD1)
---- Movies (local on DAD1)
---- Movies 2 (Mounted locally to Videos on DBD2)
---- Nature (local on DAD1)
-- JDrama (local on DAD1)
-- Kids (Mounted to Kids on DAD2)
---- TV (local on DAD2)
---- Movies (local on DAD2)
--Movies (Mounted to Movies on DAD2)
-- Music Videos (Mounted to Music Videos on DAD2)
-- TV (local on DAD1)
DBD1 (DNS B Drive 1)
Videos (inbound mount from DAD1)
-- Movies (Locally on DBD1)
-- Movies 2 (Mounted locally using --bind to DBD2 Videos)
-- Nature (Locally on DBD1)
So there is a single inbound NFS connection from the TVix to the first DNS 323 -DNS A, Drive 1)
There is a single NFS connection between the first and second DNS (from DNS B ---> DNS B))
And several local mounts (--bind) on each DNS from Drive 1 to directories on Drive 2. (I tried using soft links for these, but the TVix would not see them, only hard mount points).
I added a mount_hd.sh to my ffp/start dir to set everything up at boot time, and also made sure to set the NFS parms so as not to hang any of the clients of one of targets went down for some reason.
I can provide the mount commands and exports entries if anyone is truly interested. Fonz recently helped me to optimize our NFS so as to be able to stream full quality HD rips from thsi setup without issue (many thanks for that btw ). We have some BluRays that are a pretty high bitrate to stream (39 Mbps was one that comes to mind).
HTH
Offline
Many thanks for suggestion for Popcorn Hour sharing, so could you please post the mount commands to mount /mnt/HD_a2/Videos to an empty directory for sharing
Offline
Hi Spakss, Can I get your mount_hd.sh and exports files? I'm using tvix6500a and tried to connect my DNS-323 with unfs in ffp0.5.
But only can I get is seeing the list of directories and files from tvix side. None of contens were palyed and the messages from tivix were corrupted file or unsupported file format. Some directories showed empty also.
My export files are
/mnt/HD_a2 192.168.0.0/24(rw,no_root_squash)
/mnt/HD_b2 192.168.0.0/24(rw,no_root_squash)
and I also added following two line at the beginning of fun_plug script.
ln -s /mnt/HD_a2 /tvixhd1
ln -s /mnt/HD_b2 /tvixhd2
Thanks, SK
Offline
Popcorn Hour A-100 / D-Link DNS-323 / NFS Share
I’m writing this short “manual” so other people who have purchased a Popcorn Hour A-100 (Networked Media Tank (nmt)) and a D-Link DNS-323 NAS device can make full advantage of this configuration.
I’m a newbie in the multimedia world but during the short time I’m using multimedia streaming I learn some important things:
- Yes there are some standards defined (uPnP, DLNA, SMB shares, NFS Share, HTTP Streaming, etc) but you CAN NOT assume certified products working together.
- Plug and Play does not exists
- You have to be patient to get things working
I purchased the D-Link DNS-323 NAS and the Popcorn Hour A-100 because I think these are the best products on the market for a fair price.
If picked the DNS-323 NAS because I wanted to have a storage solution I could access from multiple systems. The DNS-323 has great transfer rates.
I selected the Popcorn Hour being the multimedia player supporting the most multimedia formats.
Using an internal disk is something I do not prefer. Even if you use a very quit disk – it still makes some noise.
Next step was to get them to work together.
I’ve tried it all – uPnP provided by the D-Link DNS-323, SMB Shares, Twonky (uPnP Server), LLink, Mediatomb, SMB shares, HTTP streaming, etc
And I got sick of all the messages the Popcorn Hour kept displaying: “No workgroup found”, “Cannot open this picture”, “No content found”, etc.
But after a lost of reading, testing, config changes and so on, finally got it to work!!!!!
I’m using Fonz’s fun_plug to run NFS on my D-Link DNS-323. The instruction (also written below) on how to install NFS are written by Moquilok on the DSM-G600, DNS-323 and TS-I300 Hack Forum
I’ve used the Telnet Deamon written by Sheik Yerbouti to get command line access to the Popcorn Hour to be able to test the commands.
My goal was to be able to mount the D-Link DNS-323, be able to see all (sub) folders and play movies (ISO images), play music and run a picture slideshow.
*******************
**** Instructions ****
*******************
1) Preperations:
a. Update the firmware of your Popcorn hour to the latest version - http://www.popcornhour.com/download/fir … pdate.html
b. Update the firmware of your D-Link DNS-323 - http://support.dlink.com/products/view. … 2D323#firm
c. If enabled – disable the uPNP server on your DNS-323 (it sucks anyway)
2) Install and run NFS on your DNS-323:
a. Install Fonz’s Fun_Plug and the unfs and portmap addons - http://www.inreto.de/dns323/fun-plug/
I’ve used version 0.4.
Fun_Plug – step by step installation instructions (written by Moquilok):
You need to start off by installing the fun-plug:
i. Go to http://www.inreto.de/dns323/fun-plug/0.4/ and download funplug-0.4.tar.gz
ii. 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).
iii. Reboot your DNS-323 and wait until it's fully up and running again
iv. Download putty.exe from http://www.chiark.greenend.org.uk/~sgta … nload.html
v. 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
vi. Go to http://www.inreto.de/dns323/fun-plug/0.4/addons/ and download unfs3-0.9.18.tgz and portmap-6.0.tgz
vii. Move the 2 .tgz files onto your DNS-323 (drop them in the initial area where you have mapped your network drive to it).
viii. 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
ix. Type 'funpkg.sh portmap-6.0.tgz'
x. Type 'funpkg.sh unfs3-0.9.18.tgz'
xi. Type 'chmod 755 /mnt/HD_a2/fun_plug.d/start/unfsd.sh'
xii. 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
3) Mount the NFS share Install and run NFS on your Popcorn Hour:
You can mount a NFS share directly from the Popcorn Hour’s setup menu but you won’t be able to browse through all the folders. Meaning if you have multiple (sub) folders you need to create multiple shares.
You can however seen all (sub) folders if you are able to mount it to a empty folder. But as mentioned before I do not use an internal hard drive in my Popcorn Hour.
Also if you manually mount a NFS share to an empty folder you’ll lose this after a power cut.
The solution for this is using a simple USB Memory stick.
I’ve created multiple files to simple mount the NFS share with the remote control.
I also learned you need to refresh the NFS share file information after you stored new movies, pictures or music on you DNS-323.
On the Memory stick I created an empty folder called Dlink in the root folder.
I created 2 html files – one to mount the NFS share to the folder Dlink
- one to refresh the NFS share file information.
Both html files call an CGI script running the commands to mount and/or refresh the file info.
You need to modify one CGI script to connect to your DNS-323
a. Mount NFS - CGI script:
#!/bin/sh
echo "Content-type: text/html";
echo "";
echo "Please be patient when mounting NFS share";
/bin/mount 192.168.1.1:/mnt/HD_a2/Data /opt/sybhttpd/localhost.drives/USB_DRIVE_A-1/DLink;
ls -aR /opt/sybhttpd/localhost.drives/USB_DRIVE_A-1/DLink;
exit 0;
You need to change the IP Address to link to your DNS-323.
To edit the CGI script you can use ConTEXT text Editor - http://www.contexteditor.org/downloads.html
b. Refresh NFS Share file information – CGI script:
#!/bin/sh
echo "Content-type: text/html";
echo "";
echo "Please be patient when indexing NFS share";
ls -aR /opt/sybhttpd/localhost.drives/USB_DRIVE_A-1/DLink;
exit 0;
There is no need to change anything here.
c. HTML Pages to start CGI scripts:
I’ve created some simple pages you can open from the Popcorn Hour on-screen Menu.
i. Mount NFS – HTML page:
<HTML>
<HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<BODY vLink=#000000 aLink=#0000ff link=#000000 bgColor=#ffffff>
<P align=center><BR>
<IMG src="p/pch-logo.gif"><BR>
<FONT size=6><FONT color=#000000>
Mounting a NFS Share takes some time!!!<BR>
Please be patient for a minute.<BR><BR>
Press <A href="http://localhost.drives:8883/USB_DRIVE_A-1/mount.cgi"><STRONG>Enter</STRONG></A> to start mounting the NFS share.<BR>
Press the <STRONG>Home</STRONG> key when finished.<BR></FONT></FONT>
(some file listing info might appear on the screen)<BR>
<IMG src="p/pch.jpg"><IMG src="p/dns323.jpg">
</FONT></FONT></P></BODY></HTML>
This is what the page looks like:
ii. Refresh NFS Share file information – CGI script:
<HTML>
<HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<BODY vLink=#000000 aLink=#0000ff link=#000000 bgColor=#ffffff>
<P align=center><BR>
<IMG src="p/pch-logo.gif"><BR>
<FONT size=5><FONT color=#000000>
Reading NFS Share!!! <BR>
Please be patient for a minute.<BR><BR>
Press <A href="http://localhost.drives:8883/USB_DRIVE_A-1/index.cgi"><STRONG>Enter</STRONG></A> to start reading the NFS share.<BR>
Press the <STRONG>Home</STRONG> key when finished.<BR></FONT></FONT>
(some file listing info might appear on the screen)<BR>
<IMG src="p/pch.jpg"><IMG src="p/dns323.jpg">
</FONT></FONT></P></BODY></HTML>
***********************
**** End Instructions ****
***********************
After all of the above.
Create a memory stick with the above file on in.
Plug it into your Popcorn Hour.
Select Media Source – USB_Drive_A-1 (when typing these instructions, I’m not sure is it makes any difference if you use the top or bottom USB Port. I used the bottom one!!!)
Select the file icon and then select the Mount_NFS.html file. Press enter to start mounting your NFS share.
This will take some time – don't worry – all is normal - if finished your screen will be flooded with file listing information.
Press the home button on your remote an enjoy browsing all your files and folders.
All files and programs mentioned in these instructions can be found on http://home.concepts.nl/~to16304/pch.zip
These instructions can also be found on http://home.concepts.nl/~to16304/PCH.html
Last edited by smoker99 (2008-06-08 19:11:47)
Offline
You should use the top USB slot as it is slot 0 and the bottom is slot 1. The bottom will work fine as long as you do not plug in any other USB devices.
Offline