mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-21 18:59:22 +01:00
parent
ccdcaccdb7
commit
566940d880
120
conf/minidlna/minidlna.conf
Normal file
120
conf/minidlna/minidlna.conf
Normal file
@ -0,0 +1,120 @@
|
||||
# ~/.minidlna/minidlna.conf & ../systemd/user/minidlna.service
|
||||
# NOTE: Ports 1900 & 8200
|
||||
|
||||
#user=mikaela
|
||||
|
||||
# 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)
|
||||
# * "PV" for pictures and video (eg. media_dir=PV,/var/lib/minidlna/digital_camera)
|
||||
media_dir=A,/home/mikaela/Musiikki/minidlna/
|
||||
|
||||
# Set this to merge all media_dir base contents into the root container
|
||||
# (The default is no.)
|
||||
merge_media_dirs=yes
|
||||
|
||||
db_dir=/home/mikaela/.minidlna/cache
|
||||
log_dir=/home/mikaela/.minidlna
|
||||
|
||||
# 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"
|
||||
# * Or, you can specify the ObjectID of your desired root container
|
||||
# (eg. 1$F for Music/Playlists)
|
||||
# If you specify "B" and the client device is audio-only then "Music/Folders"
|
||||
# will be used as root.
|
||||
#root_container=.
|
||||
root_container=M
|
||||
|
||||
# Network interface(s) to bind to (e.g. eth0), comma delimited.
|
||||
# This option can be specified more than once.
|
||||
#network_interface=
|
||||
|
||||
# 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=/
|
||||
|
||||
# Name that the DLNA server presents to clients.
|
||||
# Defaults to "hostname: username".
|
||||
friendly_name=CHANGEME
|
||||
|
||||
# Serial number the server reports to clients.
|
||||
# Defaults to the MAC address of nework interface.
|
||||
#serial=
|
||||
|
||||
# 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
|
||||
|
||||
# Which method to use for registering in TiVo: 'bonjour' (default) or
|
||||
# legacy 'beacon'
|
||||
#tivo_discovery=bonjour
|
||||
|
||||
# SSDP notify interval, in seconds.
|
||||
#notify_interval=895
|
||||
|
||||
# Path to the MiniSSDPd socket, for MiniSSDPd support.
|
||||
#minissdpdsocket=/run/minissdpd.sock
|
||||
|
||||
# Always set SortCriteria to this value, regardless of the SortCriteria
|
||||
# passed by the client
|
||||
# e.g. force_sort_criteria=+upnp:class,+upnp:originalTrackNumber,+dc:title
|
||||
#force_sort_criteria=
|
||||
|
||||
# maximum number of simultaneous connections
|
||||
# note: many clients open several simultaneous connections while streaming
|
||||
#max_connections=50
|
||||
|
||||
# set this to yes to allow symlinks that point outside user-defined media_dirs.
|
||||
wide_links=yes
|
7
conf/systemd/user/README.md
Normal file
7
conf/systemd/user/README.md
Normal file
@ -0,0 +1,7 @@
|
||||
`~/.config/systemd/user`
|
||||
|
||||
To enable lingering
|
||||
|
||||
`sudo loginctl enable-linger username` or if it doesn't work, `sudo touch /var/lib/systemd/linger/username`
|
||||
|
||||
https://wiki.archlinux.org/index.php/Systemd/User will be a big help
|
12
conf/systemd/user/minidlna.service
Normal file
12
conf/systemd/user/minidlna.service
Normal file
@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=lightweight DLNA/UPnP-AV server targeted at embedded systems
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
# ../../minidlna/minidlna.conf
|
||||
ExecStart=/usr/sbin/minidlnad -f %h/.minidlna/minidlna.conf -P %h/.minidlna/minidlna.pid
|
||||
#ExecReload=/bin/kill -HUP $MAINPID
|
||||
PIDFile=%h/.minidlna/minidlna.pid
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
Loading…
Reference in New Issue
Block a user