Como montar un servidor DLNA en una Raspberry Pi

Actualizamos el sistema e instalamos el servidor de DLNA minidlna

sudo apt-get updatesudo apt-get upgrade
sudo apt-get install minidlna

Configuramos el servidor de DLNA modificando el archivo /etc/minidlna.conf y dejándolo así:


# 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.

# 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)
# WARNING: After changing this option, you need to rebuild the database. Either
#          run minidlna with the ‘-R’ option, or delete the ‘files.db’ file
#          from the db_dir directory (see below).
#          On Debian, you can run, as root, ‘service minidlna force-reload’ instead.

# Path to the directory that should hold the database and album art cache.

# Path to the directory that should hold the log file.

# Minimum level of importance of messages to be logged.
# Must be one of “off”, “fatal”, “error”, “warn”, “info” or “debug”.
# “off” turns of logging entirely, “fatal” is the highest level of importance
# and “debug” the lowest.

# 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 client device is audio-only then “Music/Folders” will be used as root

# Network interface(s) to bind to (e.g. eth0), comma delimited.

# IPv4 address to listen on (e.g.

# Port number for HTTP traffic (descriptions, SOAP, media transfer).

# URL presented to clients.
# The default is the IP address of the server on port 80.

# Name that the DLNA server presents to clients.

# Serial number the server reports to clients.

# Model name the server reports to clients.
#model_name=Windows Media Connect compatible (MiniDLNA)

# Model number the server reports to clients.

# Automatic discovery of new files in the media_dir directory.
# List of file names to look for when searching for album art. Names should be
# delimited with a forward slash (“/”).

# 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.

# Support for streaming .jpg and .mp3 files to a TiVo supporting HMO.

# Notify interval, in seconds.

# Path to the MiniSSDPd socket, for MiniSSDPd support.


Para que funcione correctamente en una televisión samsung es necesario que indiquemos explicitamente la diferencia entre la libreria de audio, de video y de imágenes con la separación de los tres comandos:


Es igualmente importante indicar si queremos que se actualicen los ficheros de la libreria multimedia de forma automática con:

# Automatic discovery of new files in the media_dir directory.


También se pueden añadir dos líneas en el archivo /etc/default/minidlna para indicar con que usuario se va a ejecutar el dlna


Finalmente reiniciamos el servicio y actualizamos el contenido de la librería multimedia del servidor de dlna:

sudo service minidlna restart
sudo minidlna -R

Si queremos que cuando arranque siempre se ponga en marcha el servidor DLNA hemos de ejecutar:

sudo update-rc.d minidlna defaults

Y si queremos que esté disponible el disco externo que hayamos conectado a la raspberry hemos de montarlos en el archivo /etc/fstab añadiendo la línea:

/dev/sda1       /media/USBexterno   vfat    defaults      0       0

Finalmente, se puede ver el estado del indexado de archivos por url con:



La información de base ha sido sacada de las dos siguientes webs:


Comments Are Closed