Setup MiniDLNA server together with NextCloud
apitude install minidlna # Installing the minidlna server
Customize the following configuration file:
/etc/minidlna.conf
media_dir=A,/media/USB-Store/nextcloud/data/Benutzername/files/Audio
media_dir=P,/media/USB-Store/nextcloud/data/Benutzername/files/Bilder
media_dir=V,/media/USB-Store/nextcloud/data/Benutzername/files/Videos
network_interface=eth0
friendly_name=Banana Pi
inotify=yes
Because the data of a User from NextCloud should be available via MiniDLNA,
include minidlna user in the www-data group:
usermod -a -G www-data minidlna
Restart minidlna service:
sudo minidlna -R
sudo service minidlna restart