Créer un serveur UPnP en 10 min avec miniDLNA
J’avais commencé une série d’articles détaillant la mise en place et la configuration d’un serveur UPnP il y a quelques temps. À l’époque, j’avais choisi Mediatomb sous Ubuntu 12.04 serveur. Malheureusement après de nombreuses tentatives, je n’ai jamais réussi à obtenir exactement ce que je voulais et Mediatomb propose de plus des options dont je n’avais pas forcément besoin.
Je me suis donc tourné vers une solution alternative et j’ai testé un concurrent open source initialement développé par NETGEAR pour ses solutions NAS : miniDLNA. Ultra-léger, sans base de données, configurable à travers deux fichiers de configuration, je crois que je vais définitivement l’adopter !
sudo apt-get install minidlna |
et là, la magie opère ! Après 10 minutes de configuration, votre serveur est prêt !
Pour faire simple, voici mes fichiers de configuration :
- /etc/default/minidlna :
# Defaults for minidlna initscript # sourced by /etc/init.d/minidlna # installed at /etc/default/minidlna by the maintainer scripts # These options can be set to modify the behavior of the minidlna init script. # The options commented out show the default values. # Start the daemon if set to "yes" START_DAEMON="yes" # Path to the configuration file CONFIGFILE="/etc/minidlna.conf" # Path to the log file LOGFILE="/var/log/minidlna.log" # User and group the daemon should run as USER="minidlna" GROUP="home-admin" # Additional options that are passed to the daemon # DAEMON_OPTS="" |
- /etc/minidlna.conf
# port for HTTP (descriptions, SOAP, media transfer) traffic port=49200 network_interface=eth0 # set this to the directory you want scanned. # * if have multiple directories, you can have multiple media_dir= lines # * if you want to restrict a media_dir to a specific content type, you # can prepend the type, followed by a comma, to the directory: # + "A" for audio (eg. media_dir=A,/home/jmaggard/Music) # + "V" for video (eg. media_dir=V,/home/jmaggard/Videos) # + "P" for images (eg. media_dir=P,/home/jmaggard/Pictures) media_dir=V,/home/samba/public/Video # set this if you want to customize the name that shows up on your clients friendly_name=Serveur Multimédia # set this if you would like to specify the directory where you want MiniDLNA to store its database and album art cache db_dir=/tmp # set this if you would like to specify the directory where you want MiniDLNA to store its log file log_dir=/var/log # this should be a list of file names to check for when searching for album art # note: names should be delimited with a forward slash ("/") album_art_names=Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg/AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg/Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg # set this to no to disable inotify monitoring to automatically discover new files # note: the default is yes inotify=yes # set this to yes to enable support for streaming .jpg and .mp3 files to a TiVo supporting HMO enable_tivo=no # set this to strictly adhere to DLNA standards. # * This will allow server-side downscaling of very large JPEG images, # which may hurt JPEG serving performance on (at least) Sony DLNA products. strict_dlna=no # default presentation url is http address on port 80 #presentation_url=http://www.mylan/index.php # notify interval in seconds. default is 895 seconds. notify_interval=900 # serial and model number the daemon will report to clients # in its XML description serial=12345678 model_number=1 |
Je pense que les commentaires sont suffisamment explicites… Néanmoins, si vous souhaitez plus d’informations, vous pouvez aller faire un tour sur la documentation Ubuntu ou bien sur la page sourceforge du projet.
Ah et j’oubliais, pour les utilisateurs de Webmin, un module a été développé. Il est encore en version alpha mais fait ce qu’il a à faire donc bon, à vous de voir…
Le téléchargement du module, c’est par ici. Pour l’installation, rendez-vous dans Webmin, Webmin > Configuration de Webmin > Modules (en haut), sélectionnez votre module puis « Installer ».
Pour ma part, miniDLNA fonctionne sans problème avec une Panasonic TX-L32E5E.
Cet article vous a plu ? Partagez-le sur les réseaux sociaux !




17/03/2013 @ 08:33
Hello,
Merci pour ton tuto qui m’a permis de me sortir de la panade.
J’avais installé minidlna sur mon serveur 12.04 et, après avoir procédé aux modifications de base du fichier de configuration de minidlna (/etc/minidlna.conf) il n’y avait rien à faire pour le faire fonctionner « out of the box » : il ne pouvait scanner aucun des répertoires paramétrés.
J’ai compris avec ton tuto qu’il fallait corriger /etc/default/minidlna pour y parvenir.
Dans mon cas, la seule config qui fonctionne c’est avec le user « root » et le grouge « root », « minidlna » refusant systématiquement de fonctionner.
bonne journée
17/03/2013 @ 10:39
Curieux que minidlna ne fonctionne qu’avec root. N’y aurait-il pas un problème de droits sur les dossiers qu’il doit scanner ?