1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145 | root@nutibara:~# systemctl status minidlna.service
● minidlna.service - LSB: Start minidlna at boot time
Loaded: loaded (/etc/init.d/minidlna)
Active: active (running) since Mon 2017-11-06 17:43:02 -05; 13s ago
Process: 1695 ExecStop=/etc/init.d/minidlna stop (code=exited, status=0/SUCCESS)
Process: 1701 ExecStart=/etc/init.d/minidlna start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/minidlna.service
└─1711 /usr/bin/minidlnad -f /etc/minidlna.conf -P /run/minidlna/minidlna.pid
Nov 06 17:43:02 odroidc2 minidlna[1701]: Starting DLNA/UPnP-AV media server : minidlna[2017/11/06 17:43:02] minidlna.c:594: error: Media directory "A,/dlna/music" not accessible [Permission denied]
Nov 06 17:43:02 odroidc2 minidlna[1701]: [2017/11/06 17:43:02] minidlna.c:594: error: Media directory "V,/dlna/movies" not accessible [Permission denied]
Nov 06 17:43:02 odroidc2 minidlna[1701]: [2017/11/06 17:43:02] minidlna.c:594: error: Media directory "V,/dlna/series" not accessible [Permission denied]
Nov 06 17:43:02 odroidc2 minidlna[1701]: .
Nov 06 17:43:02 odroidc2 systemd[1]: Started LSB: Start minidlna at boot time.
##### /var/log/minidlna.log #####
[2017/11/06 17:43:02] minidlna.c:153: warn: received signal 15, good-bye
[2017/11/06 17:43:02] minidlna.c:1004: warn: Starting MiniDLNA version 1.1.2.
[2017/11/06 17:43:02] minidlna.c:1043: warn: HTTP listening on port 8200
[2017/11/06 17:43:09] upnphttp.c:1043: warn: HTTP Connection closed unexpectedly
[2017/11/06 17:43:29] upnphttp.c:1043: warn: HTTP Connection closed unexpectedly
[2017/11/06 17:43:49] upnphttp.c:1043: warn: HTTP Connection closed unexpectedly
##### /etc/minidlna.conf #####
# This is the configuration file for the MiniDLNA daemon, a DLNA/UPnP-AV media
# server.
#
# Unless otherwise noted, the commented out options show their default value.
#
# On Debian, you can also refer to the minidlna.conf(5) man page for
# documentation about this file.
# Specify the user name or uid to run as.
#user=minidlna
# Path to the directory you want scanned for media files.
#
# This option can be specified more than once if you want multiple directories
# scanned.
#
# If you want to restrict a media_dir to a specific content type, you can
# prepend the directory name with a letter representing the type (A, P or V),
# followed by a comma, as so:
# * "A" for audio (eg. media_dir=A,/var/lib/minidlna/music)
# * "P" for pictures (eg. media_dir=P,/var/lib/minidlna/pictures)
# * "V" for video (eg. media_dir=V,/var/lib/minidlna/videos)
media_dir=A,/dlna/music
media_dir=V,/dlna/movies
media_dir=V,/dlna/series
media_dir=/dlna/test
# Path to the directory that should hold the database and album art cache.
db_dir=/var/cache/minidlna
# Path to the directory that should hold the log file.
log_dir=/var/log
# Type and minimum level of importance of messages to be logged.
#
# The types are "artwork", "database", "general", "http", "inotify",
# "metadata", "scanner", "ssdp" and "tivo".
#
# The levels are "off", "fatal", "error", "warn", "info" or "debug".
# "off" turns of logging entirely, "fatal" is the highest level of importance
# and "debug" the lowest.
#
# The types are comma-separated, followed by an equal sign ("="), followed by a
# level that applies to the preceding types. This can be repeated, separating
# each of these constructs with a comma.
#
# The default is to log all types of messages at the "warn" level.
#log_level=general,artwork,database,inotify,scanner,metadata,http,ssdp,tivo=warn
# Use a different container as the root of the directory tree presented to
# clients. The possible values are:
# * "." - standard container
# * "B" - "Browse Directory"
# * "M" - "Music"
# * "P" - "Pictures"
# * "V" - "Video"
# If you specify "B" and the client device is audio-only then "Music/Folders"
# will be used as root.
#root_container=.
# Network interface(s) to bind to (e.g. eth0), comma delimited.
# This option can be specified more than once.
network_interface=eth0
# IPv4 address to listen on (e.g. 192.0.2.1/24).
# If omitted, the mask defaults to 24. The IPs are added to those determined
# from the network_interface option above.
# This option can be specified more than once.
#listening_ip=
# Port number for HTTP traffic (descriptions, SOAP, media transfer).
# This option is mandatory (or it must be specified on the command-line using
# "-p").
port=8200
# URL presented to clients (e.g. http://example.com:80).
presentation_url=http://server.dguerrero.lan/
# Name that the DLNA server presents to clients.
# Defaults to "hostname: username".
friendly_name=DGUERRERO.LAN
# Serial number the server reports to clients.
# Defaults to 00000000.
serial=681019810597110
# Model name the server reports to clients.
#model_name=Windows Media Connect compatible (MiniDLNA)
# Model number the server reports to clients.
# Defaults to the version number of minidlna.
#model_number=
# Automatic discovery of new files in the media_dir directory.
inotify=yes
# List of file names to look for when searching for album art.
# Names should be delimited with a forward slash ("/").
# This option can be specified more than once.
album_art_names=Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg
album_art_names=AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg
album_art_names=Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg
# Strictly adhere to DLNA standards.
# This allows server-side downscaling of very large JPEG images, which may
# decrease JPEG serving performance on (at least) Sony DLNA products.
#strict_dlna=no
# Support for streaming .jpg and .mp3 files to a TiVo supporting HMO.
#enable_tivo=no
# Notify interval, in seconds.
#notify_interval=895
# Path to the MiniSSDPd socket, for MiniSSDPd support.
#minissdpdsocket=/run/minissdpd.sock
|