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.

Announcement

#1 2008-06-14 19:26:22

Milo
Member
Registered: 2008-06-14
Posts: 8

Dlink and Popcorn Hour - network issue

I'm using a D-Link 323 with funplug to make available files to a popcorn hour.
My dlink has 2 HDDs installed as separate drives so I can map them independently from windows as P and Q drive.
Then I found this brillinat piece of code Movie Jukebox ("http://code.google.com/p/moviejukebox/wiki/MovieJukebox") which will search your movie library and create a html index that allows you to browse and launch a movie of your choice.
For some sample images of this jukebox go here: "http://www.networkedmediatank.com/viewtopic.php?t=4287&postdays=0&postorder=asc&start=270"
In oder for the code to work I have to specify to things: search path and network path which is done in an library file(see below):

NMT Root Path Examples
The following examples illustrate how to set your NMT Root Path

Location  Path Example 
Internal PCA HDD  file:///opt/sybhttpd/localhost.drives/HARD_DISK/Video/ 
USB Attached HDD  file:///opt/sybhttpd/localhost.drives/USB_DRIVE_A/ 
SMB  file:///opt/sybhttpd/localhost.drives/[SMB] ServerName:ShareName/ 
NFS  file:///opt/sybhttpd/localhost.drives/[NFS] ServerName::ShareName/ 


my library file:

<?xml version="1.0" encoding="utf-8"?>

<!--                                                                                   -->
<!-- Libraries element contains all your media directories and their paths.            -->
<!-- Both local and nmt path are specified here.                                       -->
<!--                                                                                   -->
<!-- path element contains local path                                                  -->
<!-- nmtpath element contains nmtpath                                                  -->
<!-- exclude element contains a file exclusion filter for the library                  -->
<!--                                                                                   -->


<libraries>

<library>
<path>P:/Media/</path>
<nmtpath>../</nmtpath>
<exclude name="sample,tmp/,temp/"/>
</library>

<library>
<path>Q:/DivX/</path>
<nmtpath>file:///opt/sybhttpd/localhost.drives/[SMB] 192.168.0.110:Volume_2/DivX/</nmtpath>
<exclude name="sample,tmp/,temp/"/>
</library>

</libraries>



Searching the files works very well(maybe due to the folders mapped in winXP) as well as creating the index files.
The files I can access are on P:/Media and I tried at first to used a as "nmtpath" something like
<!-- <nmtpath>file:///opt/sybhttpd/localhost.drives/[NFS] 192.168.0.110::Media/</nmtpath> -->
but it didn't work. The only way to make it work was to use "../".  And it works flawlessly because I'm storing the index file on P:/Media where the first set of file is.

The other files I want to access are on Q:/DivX (are on volume 2)
I've tried different ways to specify the path but none works.
See below a few I've tried:

<!--<nmtpath>file:///opt/sybhttpd/localhost.drives/192.168.0.110/Volume_2/DivX/</nmtpath> -->
<!-- <nmtpath>file:///opt/sybhttpd/localhost.drives/[SMB] 192.168.0.110:DivX/</nmtpath> -->
<!-- <nmtpath>file:///opt/sybhttpd/localhost.drives/[SMB] DLINK-4890FD:Volume_2/DivX/</nmtpath> -->
<!-- <nmtpath>Q:/DivX/</nmtpath> -->
<!-- <nmtpath>file:///Q:/DivX/</nmtpath> -->
<!-- <nmtpath>file:///opt/sybhttpd/localhost.drives/[SMB] 192.168.0.110:Volume_2:DivX/</nmtpath> -->
<!-- <nmtpath>file:///opt/sybhttpd/localhost.drives/[SMB] 192.168.0.110:Volume_2/DivX/</nmtpath> -->

Can anyone help?

Thank you,

Milo

Last edited by Milo (2008-06-14 23:43:43)

Offline

 

#2 2008-06-14 22:36:10

bq041
Member
From: USA
Registered: 2008-03-19
Posts: 709

Re: Dlink and Popcorn Hour - network issue

How can ou have your DNS set-up JBOD and have 2 drives?  JBOD makes both drives appear as 1 large one.  I think you are confusing this with standard drive set-up.


DNS-323     F/W: 1.04b84  H/W: A1  ffp: 0.5  Drives: 2X 400 GB Seagate SATA-300
DNS-323     F/W: 1.05b28  H/W: B1  ffp: 0.5  Drives: 2X 1 TB  WD SATA-300
DSM-G600   F/W: 1.02       H/W: B                Drive:  500 GB WD ATA

Offline

 

#3 2008-06-14 23:42:53

Milo
Member
Registered: 2008-06-14
Posts: 8

Re: Dlink and Popcorn Hour - network issue

Yes, your right. On the network it shows as 2 different drives.

Any thoughts onmy issue?

Milo

Offline

 

#4 2008-06-15 00:04:32

bq041
Member
From: USA
Registered: 2008-03-19
Posts: 709

Re: Dlink and Popcorn Hour - network issue

No, I am still waiting for my popcorn hour to ship, so I have not dove into any of the mriad of programs to send files to it.  Have you thought about this: http://dns323.kood.org/forum/p16409-200 … tml#p16409

Last edited by bq041 (2008-06-15 00:05:43)


DNS-323     F/W: 1.04b84  H/W: A1  ffp: 0.5  Drives: 2X 400 GB Seagate SATA-300
DNS-323     F/W: 1.05b28  H/W: B1  ffp: 0.5  Drives: 2X 1 TB  WD SATA-300
DSM-G600   F/W: 1.02       H/W: B                Drive:  500 GB WD ATA

Offline

 

#5 2008-06-15 03:08:36

Milo
Member
Registered: 2008-06-14
Posts: 8

Re: Dlink and Popcorn Hour - network issue

That is a nice ideea but I think it only allows you to browse multiple directories.
My problem is that I cannot form the nmtpath corectly for my setup.
The correct path should be:

file:///opt/sybhttpd/localhost.drives/[NFS] NAS-XX-XX-XX::media/
where NAS-XX-XX-XX is the complete name of your Network share
If you want to use SMB then it's
file:///opt/sybhttpd/localhost.drives/[SMB] NAS-XX-XX-XX:media/
only one semi colon.

I'm stupid so I can't figure out what "NAS-XX-XX-XX" should be for my setup.
The ip of the dlink is 192.168.0.110
The name of the NAS is "DLINK-4890FD" - this is how popcorn shows it
The first drive shows as "Volume_1" while the second as "Volume_2"

Any ideas?

TIA

Milo

Offline

 

#6 2008-06-15 13:45:33

toni
Member
Registered: 2007-08-26
Posts: 41

Re: Dlink and Popcorn Hour - network issue

Hi,

I also have the popcorn and DNS-323 set up. Movie Jukebox seems to be interesting for me as well. Few questions:
Do you run the program on your windows machine or on your DNS-323?
Can you post (or link) a html file it creates to see, what are the links in it (how is it pointing to a file)?
Have you concidered to create a simlink for your HD_b2 drive on the HD_a2 dirve? This would solve you second drive issue - create a divx directory on HD_a2 and simlink the HD_b2 directory to it so all will be on the same drive :-)
You can use your DNS IP address instead NAS-XX-XX-XX, there will be no problem I assume. It is strange, that for the SMB you have one : and for the nfs you have :: I guess this is a mistake...

"SMB  file:///opt/sybhttpd/localhost.drives/[SMB] ServerName:ShareName/
NFS  file:///opt/sybhttpd/localhost.drives/[NFS] ServerName::ShareName/  "

Please report if you make any progress, as the interface really looks greate :-)

Cheers,

Toni

Offline

 

#7 2008-06-15 17:40:48

Milo
Member
Registered: 2008-06-14
Posts: 8

Re: Dlink and Popcorn Hour - network issue

Hi,

I've followed bq041 advice and mounted the second link on a USB stick. This is easier because from then on I have to point to a USB stick and the link looks like
file:///opt/sybhttpd/localhost.drives/USB_DRIVE_A-1/DLink/(and even I cant make a mistake)
The network part for a SMB or NFS is still confusing to me.
Now it works , the only drawback is that it takes some time to mount and refresh.

"Do you run the program on your windows machine or on your DNS-323? "
Yes, I launch the program from my PC and the index and all the files are stored on the Dlink, in the same folder with the first set of files.

"Can you post (or link) a html file it creates to see, what are the links in it (how is it pointing to a file)?"
If my nmtpath in the library look like
<nmtpath>file:///opt/sybhttpd/localhost.drives/[NFS] 192.168.0.110::Media/Test/</nmtpath> then the index file will create a link like
file:///opt/sybhttpd/localhost.drives/[NFS] 192.168.0.110::Media/Test/movie.avi
Actually if the link look like this
<nmtpath>Q:/DivX/</nmtpath>
Then I can launch the movie from windows(obviously this cannot be understood by popcorn as Q is mapped by windows PC)

"Have you concidered to create a simlink for your HD_b2 drive on the HD_a2 dirve? This would solve you second drive issue - create a divx directory on HD_a2 and simlink the HD_b2 directory to it so all will be on the same drive :-)"
This is a great ideea. I'll give it a try. How would the command look like?
/mnt/HD_b2/Media/   <----files are lauched fine from this folder
/mnt/HD_a2/DivX/     <----this is the folder I want to link



"You can use your DNS IP address instead NAS-XX-XX-XX, there will be no problem I assume. It is strange, that for the SMB you have one : and for the nfs you have :: I guess this is a mistake...

"SMB  file:///opt/sybhttpd/localhost.drives/[SMB] ServerName:ShareName/
NFS  file:///opt/sybhttpd/localhost.drives/[NFS] ServerName::ShareName/  "

Actualy it seems that this is correct, ie :: for NFS and : for SMB


Milo

Offline

 

#8 2008-06-15 17:57:44

bq041
Member
From: USA
Registered: 2008-03-19
Posts: 709

Re: Dlink and Popcorn Hour - network issue

You don't need a symlink from one drive to the other.  You can just mount the second drive in a folder on the first.  That folder will then contain the entire second drive.  You can add a line to fun_plug to do this.  For example:

Code:

mount /dev/sdb2 /mnt/HD_a2/Drive2

This will mount the second drive on the folder Drive2 in the root of the first drive.


DNS-323     F/W: 1.04b84  H/W: A1  ffp: 0.5  Drives: 2X 400 GB Seagate SATA-300
DNS-323     F/W: 1.05b28  H/W: B1  ffp: 0.5  Drives: 2X 1 TB  WD SATA-300
DSM-G600   F/W: 1.02       H/W: B                Drive:  500 GB WD ATA

Offline

 

#9 2008-06-15 19:18:55

Milo
Member
Registered: 2008-06-14
Posts: 8

Re: Dlink and Popcorn Hour - network issue

bq041 wrote:

You don't need a symlink from one drive to the other.  You can just mount the second drive in a folder on the first.  That folder will then contain the entire second drive.  You can add a line to fun_plug to do this.  For example:

Code:

mount /dev/sdb2 /mnt/HD_a2/Drive2

This will mount the second drive on the folder Drive2 in the root of the first drive.

I like this but I have some files that I would like not to index with the Movie Jukebox(at least for now). It seems the jukebox browse all the subdirectories found.
Can you suggest how I would creat a symlink?

TIA,

Milo

Offline

 

#10 2008-06-15 20:01:20

toni
Member
Registered: 2007-08-26
Posts: 41

Re: Dlink and Popcorn Hour - network issue

Hi,

I would go with the simlink. I don't have access to my dns-323 right now, but I would guess:

ln -s /mnt/HD_b2/divx/ divx or ln -s /mnt/HD_b2/divx/ /HD_a2/media/divx

As far as I remember, this will link your second drive divx directory to a divx directory where you execute the command. After that you can type cd /mnt/HD_a2/media/divx and it will bring you actually on your b2 drive. Check this out with ln --help or some wiki, but I guess this should work (simlinks have different colors in the directory listing...)

I generated some files on my notebook as well and it works great.  I think I will try to use http protocol instead of nfs as it is more easy and stable and speed is the same (just need to wait for llink to support iso as well, but as I get it, they are near to it)...

Tóni

Offline

 

#11 2008-06-15 21:54:58

Milo
Member
Registered: 2008-06-14
Posts: 8

Re: Dlink and Popcorn Hour - network issue

Well, I've used

ln -s /mnt/HD_a2/DivX/ /mnt/HD_b2/Media/DivX

and indeed now I can browse the folder on second drive from the first drive.
But the Movie Jukebox is still not functional. Maybe the popcorn doe not like symlinks...

Also, is it possible to mount a singular folder instead of a full drive using a command similar with the one suggested by bq041?

"mount /dev/sdb2 /mnt/HD_a2/Drive2" 

TIA,

Milo

Offline

 

#12 2008-06-15 22:37:35

bq041
Member
From: USA
Registered: 2008-03-19
Posts: 709

Re: Dlink and Popcorn Hour - network issue

Yes.

Code:

mount /mnt/HD_b2/DivX /mnt/HD_a2/DivX

This will mount the second (HD_b2) drive's DivX directory in the first (HD_a2) drive's DivX directory.

Last edited by bq041 (2008-06-15 22:39:05)


DNS-323     F/W: 1.04b84  H/W: A1  ffp: 0.5  Drives: 2X 400 GB Seagate SATA-300
DNS-323     F/W: 1.05b28  H/W: B1  ffp: 0.5  Drives: 2X 1 TB  WD SATA-300
DSM-G600   F/W: 1.02       H/W: B                Drive:  500 GB WD ATA

Offline

 

#13 2008-06-15 23:06:26

Milo
Member
Registered: 2008-06-14
Posts: 8

Re: Dlink and Popcorn Hour - network issue

bq041 wrote:

Yes.

Code:

mount /mnt/HD_b2/DivX /mnt/HD_a2/DivX

This will mount the second (HD_b2) drive's DivX directory in the first (HD_a2) drive's DivX directory.

It works like a charm. Thank you.
One more question: Can I add the code to the fun_plug file so I dont have to add the code manually?

TIA

Milo

Offline

 

#14 2008-06-16 00:01:19

bq041
Member
From: USA
Registered: 2008-03-19
Posts: 709

Re: Dlink and Popcorn Hour - network issue

Drop this in your /ffp/start directory.  You can open it and edit the "mnt_a=" and "mnt_b=" lines if they are not correct for your use.  It will run and mount the directories on reboot.

NOTE: Do not edit this in windows.  It will corupt it.  Use vi in the command shell to edit it, or another program that will put the correct line endings on it.

Last edited by bq041 (2008-06-16 00:02:40)


Attachments:
Attachment Icon popcornmnt.sh, Size: 807 bytes, Downloads: 378

DNS-323     F/W: 1.04b84  H/W: A1  ffp: 0.5  Drives: 2X 400 GB Seagate SATA-300
DNS-323     F/W: 1.05b28  H/W: B1  ffp: 0.5  Drives: 2X 1 TB  WD SATA-300
DSM-G600   F/W: 1.02       H/W: B                Drive:  500 GB WD ATA

Offline

 

#15 2008-06-16 01:31:03

Milo
Member
Registered: 2008-06-14
Posts: 8

Re: Dlink and Popcorn Hour - network issue

bq041 wrote:

Drop this in your /ffp/start directory.  You can open it and edit the "mnt_a=" and "mnt_b=" lines if they are not correct for your use.  It will run and mount the directories on reboot.

NOTE: Do not edit this in windows.  It will corupt it.  Use vi in the command shell to edit it, or another program that will put the correct line endings on it.

Thank you for the help.
It's just like magic - hehe

Milo

Offline

 

#16 2009-12-30 19:40:27

bojan
New member
Registered: 2009-03-23
Posts: 2

Re: Dlink and Popcorn Hour - network issue

Hi Milo,

I am just trying to get Movie JukeBox (YAMJ) onto DNS323  for Popcorn and from this old threat it seems that you have managed it. I have found the link how to install it, but not specifically with fun_plug. Can you help me how did you manage to install Java, Mediainfo, etc onto the dns323? E.g: I have the jre...bin which does not run on dlink (I have choosen Linux as a platform), I have the MediaInfo with rpm which does not run on 323 as well.

Thanks your help!

Rgds

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB