This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

[HOWTO] Install minidlna into a jail

Jails with XigmaNAS
Forum rules
Set-Up GuideFAQsForum Rules
User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [HOWTO] Install minidlna into a jail

Post by raulfg3 »

alexey123 wrote:I find patch about folder organize http://sourceforge.net/projects/minidln ... ic/5860281
please use "B" instead "." in minidlna.conf as I suggest, I'm pretty sure that is what you want
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

User avatar
alexey123
Moderator
Moderator
Posts: 1469
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: [HOWTO] Install minidlna into a jail

Post by alexey123 »

raulfg3 wrote:please use "B" instead "." in minidlna.conf as I suggest, I'm pretty sure that is what you want
I use B mode.
I just do not like the organization of virtual folders.
Video - > "All Video", "Folders"
Pictures -> "All Pictures", "Date Taken", "Camera", "Folders"
I do not want to see as there is, I want organize virtual folders as I want.
I study now minidlna, may be I do something wrong.
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600

User avatar
alexey123
Moderator
Moderator
Posts: 1469
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: [HOWTO] Install minidlna into a jail

Post by alexey123 »

raulfg3 wrote:a lot of user thank you if finally you create an extension for minidlna
I tried to make minidlna plugin, not need jail or pkg_add, it begin to work on full and embedded. But I have small non-understanding point.
I have N disks with video, and I cannot define it as uPNP shares
For example, if I define only one line

Code: Select all

media_dir=V,/mnt/diskN/filmsN
It work, but if I try to define multiline

Code: Select all

media_dir=V,/mnt/disk1/films1
media_dir=V,/mnt/disk2/films2
media_dir=V,/mnt/disk3/films3
It not work, but I see true values into web page http://mynasip:8200 with minidlna status
Where is my fault?
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [HOWTO] Install minidlna into a jail

Post by raulfg3 »

alexey123 wrote:Where is my fault?
None, I have not enought experience to know what happend, your 3 lines must work, but I find other Post using Google from other guys with same problem, not sure if the problem are 3 physical Disk ( try to create or point to 2 diferent Video folders in the same Disk), if works, is something related to point to physical disk.

In some post comment some workarrounds (soft links in first folder, etc...).

http://sourceforge.net/projects/minidln ... ic/4805988

and other user in N4F with same problem: viewtopic.php?f=38&t=1250

PD: I only have one Video folder, and inside this Video Folder I have a lot of folders like Movies, Series, Disney, etc... so I haven't this problem previosly , but try to delete your previosly created minidlna.db to avoid problem in test.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

User avatar
alexey123
Moderator
Moderator
Posts: 1469
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: [HOWTO] Install minidlna into a jail

Post by alexey123 »

Thank you Raul. You save my time. I continue to work on extension
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600

jensting
NewUser
NewUser
Posts: 12
Joined: 08 Jun 2013 06:58
Status: Offline

Re: [HOWTO] Install minidlna into a jail

Post by jensting »

First of all thanks for the work that went into this, I got minidlna running in my first try, using TheBrig to set up a full jail (first time I installed a jail). Yay :)

One thing I didn't understand: does the dlna group need to be defined outside the jail? after the first reboot, the dlna user+group were fine inside the jail but not outside (of course not) so I installed it in the WebGUI and the files show up correctly when looking (from outside the jail).

However...

Two things. The first probably isn't serious: there is an error message flashing past at the very end of the NAS4Free boot process saying something about /mnt/../Jail/minidlna/usr/ports : no such file or directory. (And indeed, there is none.) I guess that's not serious.

Second, slightly more irritating. I can't get the mod to /usr/local/www/diag_log.inc to stick across reboots of N4F. I don't get this - it worked when I did the edit, but I expected the change to be permanent (the added variable to rc.conf is permanent).

But at least my Freebox Revolution just played the files-in-directory version of a DVD I put on as a test, so that's gotta be a good thing.

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [HOWTO] Install minidlna into a jail

Post by raulfg3 »

jensting wrote:Two things. The first probably isn't serious: there is an error message flashing past at the very end of the NAS4Free boot process saying something about /mnt/../Jail/minidlna/usr/ports : no such file or directory. (And indeed, there is none.) I guess that's not serious.
you need to create port folder inside the jail to be properly mounted, is explain in TheBrig HowTo .

is as easy as do mkdir /mnt/../Jail/minidlna/usr/ports from outside the jail ( remember to sustitute ... by correct path), and reboot, warninng must dissapear.
jensting wrote:Second, slightly more irritating. I can't get the mod to /usr/local/www/diag_log.inc to stick across reboots of N4F. I don't get this - it worked when I did the edit, but I expected the change to be permanent (the added variable to rc.conf is permanent).
I use modified diag_log.inc in a full install ,and need to save in data disk, to restore when upgrade ( not same problems as you but ...).

You only need to copy modified diag_log.inc to a folder in data disk eg:

Code: Select all

cp /usr/local/www/diag_log.inc /mnt/yourpool/temp
once copied, you need to create a post init job that restore every time you reboot your NAS,
job ( postinit) can be something like this :

Code: Select all

cp /mnt/yourpool/temp/diag_log.inc /usr/local/www
do some test from shell to be sure that script ( script of only one line), works as expected.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [HOWTO] Install minidlna into a jail

Post by raulfg3 »

jensting wrote:One thing I didn't understand: does the dlna group need to be defined outside the jail? after the first reboot, the dlna user+group were fine inside the jail but not outside (of course not) so I installed it in the WebGUI and the files show up correctly when looking (from outside the jail).
No need to be defined outside the jail to work, but if you define, you can see the real name of user / group when you see "proccess" in N4F webGUI, otherwise, you only see the PID number , not the name of the user.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

jensting
NewUser
NewUser
Posts: 12
Joined: 08 Jun 2013 06:58
Status: Offline

Re: [HOWTO] Install minidlna into a jail

Post by jensting »

raulfg3 wrote:...
you need to create port folder inside the jail to be properly mounted, is explain in TheBrig HowTo .
Ah, I got flushed with the excitement of early success. Simple enough.
..
You only need to copy modified diag_log.inc to a folder in data disk eg:
Got it, thanks! That actually makes sense :) I was afraid I had to enter a complicated process of editing the boot image...

I can see how this is slightly linked to the release (and so on the road to doing a full install), but I think I'll start with this.

Thanks for your help!

fhenning09
NewUser
NewUser
Posts: 11
Joined: 24 Apr 2014 05:38
Status: Offline

Re: [HOWTO] Install minidlna into a jail

Post by fhenning09 »

Hey brother I got everything going set everything the way shown even finally have Nas showing up as source but now when go in allshares list all video / Folders as options with nas but no content insidealso web count is untouched have dropped vid's in both /mnt/Videos w/n my jail as well as root mount /

/NasPOOL/VIdeos still neither webui count showing nore on tv any suggestions?

using samsung tv is there any specific file format

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [HOWTO] Install minidlna into a jail

Post by raulfg3 »

fhenning09 wrote:using samsung tv is there any specific file format
NO, can play *.avi , *.mkv and *.mp4 but only until certain bitrates.

see this page: http://www.samygo.tv/

and this: http://wiki.samygo.tv/index.php5/DLNA_f ... quirements
fhenning09 wrote:Hey brother I got everything going set everything the way shown even finally have Nas showing up as source but now when go in allshares list all video / Folders as options with nas but no content insidealso web count is untouched have dropped vid's in both /mnt/Videos w/n my jail as well as root mount /

/NasPOOL/VIdeos still neither webui count showing nore on tv any suggestions?
your english is really difficult for me, please can you explain your problem and atach more info like screen capture or logs?
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

Post Reply

Return to “Jails”