MiniDLNA
From Gentoo Wiki
Resources
MiniDLNA (also known as ReadyMedia) is a media server aiming to be DLNA/UPnP-AV compliant.
Installation
USE flags
USE flags for net-misc/minidlna DLNA/UPnP-AV compliant media server
Emerge
Install net-misc/minidlna:
root #
emerge --ask net-misc/minidlna
Configuration
Configuration is controlled by /etc/minidlna.conf these settings should be changed.
#friendly_name=My DLNA Server
media_dir=/opt
Automatic file discovery
MiniDLNA supports inotify monitoring to automatically discover new files. To enable inotify support the kernel needs to have inotify support enabled.
File systems --->
[*] Inotify support for userspace
And inotify=yes
set in the MiniDLNA configuration file.
inotify=yes
Manual database rebuild
root #
rc-service minidlna stop && minidlnad -R
Port forwarding
MiniDLNA uses UDP port 1900 & TCP port 8200.
Permissions
The service runs as user minidlna. Thus directories and files like the database in db_dir need correct ownership. Owner must be minidlna.
Discovery Problems
- do not use spaces for friendly_name
Service
OpenRC
Start MiniDLNA:
root #
rc-service minidlna start
Start MiniDLNA at boot:
root #
rc-update add minidlna default
systemd
Start MiniDLNA:
root #
systemctl start minidlna
Start MiniDLNA at boot:
root #
systemctl enable minidlna