How to Install MiniDLNA on FreeNAS 9.3 (Prior to Plugin)

IceBoosteR

Guru
Joined
Sep 27, 2016
Messages
503
While all my computers at home are Windoze, my FreeNAS is setup as Unix. This makes things very simple and I do not worry about authentication issues since I'm on a closed network and I don't have kids to start deleting things by accident. If I need to ever do some authentication at a later date, I'll tackle it then.
I can understrand this completely. As I have a family in my house which also want to access some files, I wanted to have this under full windows control, just with editing the permission on the shares with my computer. Nevertheless:
THANK YOU
You solved the riddle. I tried it with adding the dlna user in my group 1001 and it dindt worked - but with you hint of "make it readable for others" it is just working fine now.
I got a dataset called stuff and on this dataset all permissions are set as it was before. But under this dataset is a folder "movies" where the files are, I want to share in the local network. I leave everything with windows style, but added "everyone" with read-only permissions, and it worked. So only the authorized user can access the dataset and the share itselft, and the underneeth folder is accessable for miniDLNA and not visible for unauthorized users.
Much appreciate for our input. ;)

Yes I know everythign could be done simple, but with a safe permission structure everything is getting more - time intensive :/
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
Glad you got things working again. Someday I'll likely venture into playing with permissions but it won't be on my main FreeNAS unit, not unless I figured it all out and worked perfectly and effortlessly.
 

IceBoosteR

Guru
Joined
Sep 27, 2016
Messages
503
Glad you got things working again. Someday I'll likely venture into playing with permissions but it won't be on my main FreeNAS unit, not unless I figured it all out and worked perfectly and effortlessly.
I understand that completely and would also do those testing on a non-productiv machine ;)
 

Ziggy

Contributor
Joined
Oct 7, 2015
Messages
157
Glancing at my interaction profile (top left of page), it appears I did not officially thank anyone for help received on this forum. Altho I thought I had, I probably didn't press the 'Thanks' button. Going to try to do so now as I'm really grateful for the generous advice and time received here.
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994

urdel62

Explorer
Joined
Nov 27, 2016
Messages
53
Hello,

I get the installation completed well and all went perfectly. But it seems that dlna server can't access my media folder. In the log I get :
upload_2017-1-25_22-25-39.png

But I did the same as for plex jail.
I created a dlna user and put it in the Medias group in the freenas system. And in the jail system I created a Medias group with dlna user having the same GID that my Medias group in freenas system. But apparently the dlnaserver can't access my medias.
Any idea ? Thanks in advance.
PS : with SSH in the jail I can see my medias but no way to access it on my tv or on my computer
 

Attachments

  • upload_2017-1-25_22-23-35.png
    upload_2017-1-25_22-23-35.png
    52.3 KB · Views: 351
  • upload_2017-1-25_22-23-53.png
    upload_2017-1-25_22-23-53.png
    52.3 KB · Views: 346
Last edited:

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
You have a permissions issue so you will need to fix that so you are on the right track.
 

urdel62

Explorer
Joined
Nov 27, 2016
Messages
53
You have a permissions issue so you will need to fix that so you are on the right track.
Thank you for your answer. I restart the full install and did exactly the same as plex install but server can't reach medias for permissions issues I guess. Any usual mistake that can explain my problem ? Except give 777 permissions to my media folder in the jail
Thanks,
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994

IceBoosteR

Guru
Joined
Sep 27, 2016
Messages
503
Sometimes that is the easy way.
But also a very unsafe way.
I had also problems with that kind of permissions, and of course 777 ist easy and is working perfect. The problems is, that the jail is acting like another computer. So you cannot easily create a user and group and hope, you can access the data. It worked for plex, yes, but this is causing a lot of permission problems in my case and subvert the security. I was then creating a subfolder in a dataset, leave the permissions on the datset on 700, so only the owner is able to do something, and on the subfolder, where MiniDLNA is mounted, I put 704, read only for others and it worked for me. So no one can SSH into that subfolder, and only the jail is able to the the data. After thinking a bit of this, the question is, which user is the MiniDLNA software using, so urdel62's way does not work?
I am not a specialist in this, I can only give you some thoughts and my way to do it.
Regards
IceBoosteR
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
Hi,
is possible install MiniDLNA on Freenas Corral ?
Of course it is however I have only just started to look at Corral on a test machine. I'm not sure if a Docker or VM is most appropriate, I've never used a Docker to date. If someone has an appropriate way to do this, please post it here and I'll verify it works and then update the first page of the thread and give credit of course.

My first thought is to use a Docker of Busybox and then perform an installation on that but I'd still need to learn Busybox. The next thought was a Docker of Centos or even Ubuntu (I like Ubuntu).
 

IceBoosteR

Guru
Joined
Sep 27, 2016
Messages
503
I had to reinstall my whole box including all data.
I also had to set up a new jail for MiniDLNA under 9.10.2U2 and it worked perfectly.
Thank you again ;)
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
I had to reinstall my whole box including all data.
I also had to set up a new jail for MiniDLNA under 9.10.2U2 and it worked perfectly.
Thank you again ;)
So did you have a bad experience with Corral which forced you down that path?
 

wenceslauneto

Dabbler
Joined
Jun 15, 2016
Messages
19
My english is poor, but I'll try to explain my solution.
Minidlna exists in binhex collection on Docker Hub. (https://hub.docker.com)

Create new collection: binhex
collection.JPG


hwfg5l.jpg

Create new Container, using binhex collection
container.JPG


createcontainer.JPG



Setup properly the container and enjoy.
 
Last edited:

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994

Rinski

Cadet
Joined
Apr 4, 2017
Messages
2
First of all, thx Joe for awesome HowTo!
But I have some issues, that I couldn't fix myself:

1. minidlna crashes
Code:
upnpevents.c:423: fatal: upnpevents_selectfds: file descriptor 1045 too big for select, limit is 1024


I read here , that you found something about this issues. Can you write step-by-step what should I do? :)

2. I have few lines in my log file like this one:
Code:
inotify.c:108: error: inotify_add_watch[kqueue,open](/media/tv-shows) [Too many open files]


Thanks in advance for any help!
 
Top