Unable to edit Minidlna.conf ( Read only )

Status
Not open for further replies.

Djbinh

Dabbler
Joined
May 7, 2013
Messages
19
Hi All,

Sorry for another noob question, from the terminal i was able to locate etc/minidlna.conf

Command : vi minidlna.conf

once im in Vi Error message minidlna.conf already locked, session is read-only

Stop MiniDLNa plugin( thought that would've done the trick however it didn't )
 
D

dlavigne

Guest
It sounds like you already have a copy of that file open. Did you open it earlier in another jexec or ssh session?
 

Djbinh

Dabbler
Joined
May 7, 2013
Messages
19
I think I've might of open it in SSH

How do I close.those session, I don't want to reboot all the time
 

Dusan

Guru
Joined
Jan 29, 2013
Messages
1,165
I don't think you trying to edit the right minidlna.conf. There is no /etc/minidlna.conf in the root FreeNAS filesystem.
You need to edit the file in the jail filesystem:
[jail_root]/[jail_name]/usr/pbi/minidlna-amd64/etc/minidlna.conf
For example, if your jail root is /mnt/tank/jails, your DLNA jail is named dlna_1, you need to edit:
/mnt/tank/jails/dlna_1/usr/pbi/minidlna-amd64/etc/minidlna.conf
 

Djbinh

Dabbler
Joined
May 7, 2013
Messages
19
Hi dusan

I'm editing the correct one sorry I didn't put down the full path in my post
 

Dusan

Guru
Joined
Jan 29, 2013
Messages
1,165
You can use
fstat
to check which process is accessing the file (it also gives you the PID so you can try to kill the process).
 

Djbinh

Dabbler
Joined
May 7, 2013
Messages
19
Thank Dusan that did the trick,

i've came across another issue

This is my current Minidlna.conf file, everytime i change the Friendly_name to friendly_name=Media_server, it retive back to friendly_name=Test
media_dir=/mnt/Datastore1/test1
port=8200
inotify=yes
enable_tivo=no
strict_dlna=no
notify_interval=895
friendly_name=Test
 

Dusan

Guru
Joined
Jan 29, 2013
Messages
1,165
The .conf file is regenerated based on the GUI settings every time the plugin starts or stops.
 

Dusan

Guru
Joined
Jan 29, 2013
Messages
1,165
In the FreeNAS WebGUI go to Plugins/MiniDLNA. If you need to change parameters that are not directly present on the form use the Auxiliary parameters field.
 

Djbinh

Dabbler
Joined
May 7, 2013
Messages
19
ok

in Auxiliary parameters field. here is my conf
media_dir=V,/mnt/Datastore1/test1/Movies
media_dir=P,/mnt/Datastore1/test1/Photos
media_dir=M,/mnt/Datastore1/test1/Music

do i need to rebulid the DB if so how ?
 

Djbinh

Dabbler
Joined
May 7, 2013
Messages
19
MiniDLNA status

Audio files: 0
Video files: 0
Image files: 0

This is so annoying

they;re post to just turn on and off the services dint work for me
 

Dusan

Guru
Joined
Jan 29, 2013
Messages
1,165
Are you file permissions set correctly? Is the dlna account able to access them?
 

Dusan

Guru
Joined
Jan 29, 2013
Messages
1,165
is the DLNA account daemon ?
I'm sorry, but I do not understand the question.
What are the unix permissions & owner of the files & directories you are trying to share via DLNA? ls -l shows you this information.
 

paleoN

Wizard
Joined
Apr 22, 2012
Messages
1,403
in Auxiliary parameters field. here is my conf
media_dir=V,/mnt/Datastore1/test1/Movies
media_dir=P,/mnt/Datastore1/test1/Photos
media_dir=M,/mnt/Datastore1/test1/Music
Are these the jail-side mounts, because they don't appear to be. From outside the jail:
Code:
mount
 

Djbinh

Dabbler
Joined
May 7, 2013
Messages
19
[root@freenas] /mnt/Datastore1/Test1# ls -l
total 56
drwxrwxrwx 5 nobody wheel 7 Sep 16 19:40 ./
drwxrwxrwx 13 root wheel 15 Sep 15 13:26 ../
-rw-r--r-- 1 nobody wheel 6148 Sep 15 22:09 .DS_Store
-rw-r--r-- 1 nobody wheel 4096 Sep 15 22:09 ._.DS_Store
drwxrwxrwx 2 nobody wheel 2 Sep 16 19:40 Logs/
drwxrwxrwx 3 nobody wheel 3 Sep 15 13:56 Movies/
drwxrwxrwx 2 nobody wheel 3 Sep 16 17:06 Photos/
 
Status
Not open for further replies.
Top