DLNA Server

# STEP17

# OPTIONAL: Install a DLNA server (browse and stream the music very easily with your Upnp music player client )

# MiniDLNA Project:

# Install DLNA server type:

  1. $ sudo apt install minidlna

# Edit configuration the server:

  1. $ sudo nano /etc/minidlna.conf

# CTRL+O to save
# CTRL+X to exit

  1. $ sudo systemctl enable minidlna
  2. $ sudo systemctl start minidlna
  1. $ sudo systemctl status minidlna

# That’s it! you can now browse the music library with your Upnp music player like BubbleUpnp

# to check the status of the DLNA server open your net browser and type the ip address of the Raspberry followed by the dedicated port 8200:
# http://192.168.x.x:8200


# force update minidlna database

  1. $ sudo systemctl stop minidlna.service
  2. $ sudo systemd-run -t /usr/sbin/minidlnad -r -f /etc/minidlna.conf
  3. $ sudo systemctl restart minidlna.service

# you can monitor DLNA database update
# “Finished parsing playlists” means it’s completed

  1. $ sudo tail -f /var/log/minidlna/minidlna.log

# check the minidlna log

  1. $ sudo cat /var/log/minidlna/minidlna.log

# in case of error:

WARNING: Inotify max_user_watches [16384] is low or close to the number of used watches [2] and I do not have permission to increase this limit.

# edit /etc/sysctl.conf to change the limit

  1. $ sudo nano /etc/sysctl.conf

# add these lines


# check the status of minidlna service

  1. $ sudo systemctl status minidlna

# in case of error related to autofs

/lib/systemd/system/minidlna.service:4: Failed to add dependency on autofs, ignoring: Invalid argument

# edit service to apply this fix

  1. $ sudo nano /lib/systemd/system/minidlna.service

# and replace autofs by autofs.service
# CTRL + X and Y to SAVE

  1. $ sudo systemctl daemon-reload
  2. $ sudo systemctl restart minidlna