Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 17/04/2017, à 22:52

florent666

configuration minidlna

Bonjour j'aimerais configurer minidlna pour pouvoir l'utiliser comme serveur pour pouvoir lire mes films et musiques sur mon raspberry pi 3 avec kodi branché sur ma télé.

J'ai réussis a ouvrir le fichier de configuration, mais la je bug, je ne comprend pas ce qu'il faut changer (même avec le tuto, je suis pas expert en programmation)

Si je met le fichier de configuration est ce que quelqu’un sait m’aider et me dire ce qu'il faut changer? 

D'avance je vous remercie pour votre aide car je galère

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

# Specify the user name or uid to run as.
#user=minidlna


# 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)
#   * "PV" for pictures and video (eg. media_dir=PV,/var/lib/minidlna/digital_camera)
media_dir=/var/lib/minidlna

# Set this to merge all media_dir base contents into the root container
# (The default is no.)
#merge_media_dirs=no

# Path to the directory that should hold the database and album art cache.
#db_dir=/var/cache/minidlna

# Path to the directory that should hold the log file.
#log_dir=/var/log

# Type and minimum level of importance of messages to be logged.
#
# The types are "artwork", "database", "general", "http", "inotify",
# "metadata", "scanner", "ssdp" and "tivo".
#
# The levels are "off", "fatal", "error", "warn", "info" or "debug".
# "off" turns of logging entirely, "fatal" is the highest level of importance
# and "debug" the lowest.
#
# The types are comma-separated, followed by an equal sign ("="), followed by a
# level that applies to the preceding types. This can be repeated, separating
# each of these constructs with a comma.
#
# The default is to log all types of messages at the "warn" level.
#log_level=general,artwork,database,inotify,scanner,metadata,http,ssdp,tivo=warn

# 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"
#   * Or, you can specify the ObjectID of your desired root container
#     (eg. 1$F for Music/Playlists)
# If you specify "B" and the client device is audio-only then "Music/Folders"
# will be used as root.
#root_container=.

# Network interface(s) to bind to (e.g. eth0), comma delimited.
# This option can be specified more than once.
#network_interface=

# Port number for HTTP traffic (descriptions, SOAP, media transfer).
# This option is mandatory (or it must be specified on the command-line using
# "-p").
port=8200

# URL presented to clients (e.g. [url]http://example.com:80[/url]).

Modération : merci à l'avenir d'utiliser les balises code (explications ici).

Dernière modification par cqfd93 (Le 17/04/2017, à 22:59)

Hors ligne

#2 Le 18/04/2017, à 01:42

Vobul

Re : configuration minidlna

Il n'y a pas nécessairement de changements à faire dans le fichier. Lance-le a va sur http://localhost:8200.


Vobul
Utilisez le retour utilisable de commandes !!!
J'aime la langue française, mais je parle franglais, deal with it.
RTFM

Hors ligne

#3 Le 18/04/2017, à 19:25

florent666

Re : configuration minidlna

j'ai fait mais ça me sert a quoi? dsl

Mon problème c'est que mes vidéos et autres ne sont sur pas sur le home mais une autre partition du disque dur. j'arrive a lire ceux du home mais pas les autres!!  qqu'un pour m'aider svp? merci

Hors ligne

#4 Le 18/04/2017, à 21:22

Lulux3

Re : configuration minidlna

Bonsoir
1: ton autre partition doit bien sûr être montée (via fstab par exemple) avant de lancer le démon minidlna.
2: en supposant que le point de montage de ta partition soit "/media/ma_partition", et le répertoire à scanner "Vidéos", dans ton fichier de config, il faut ajouter une ligne comme celle-ci:

media_dir=V,/media/ma_patition/Vidéos

3: l'utililisateur "minidlna" doit avoir les doits d'accès et de lecture à ce répertoire. Si ce n'est pas le cas, tu peux changer d'utilisateur en modifiant la ligne

user=minidlna

4: redémarrer ensuite le serveur minidlna

sudo service minidlna restart

Hors ligne

#5 Le 18/04/2017, à 21:47

florent666

Re : configuration minidlna

Punaise pour rester poli, j'étais parvenu a tout lire et tt placer correctement par contre quand j'éteins tt et que je redémarre je n'ai plus rien sur ma télé, si j'ai juste le home qui apparaît mais plus mes disques durs je suis perdu.

Hors ligne

#6 Le 18/04/2017, à 21:49

florent666

Re : configuration minidlna

je vais mettre mes configurations :

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

# Specify the user name or uid to run as.
#user=minidlna


# 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)
#   * "PV" for pictures and video (eg. media_dir=PV,/var/lib/minidlna/digital_camera)
media_dir=V,/home/derzelle/Vidéos
media_dir=V,/media/derzelle/14D4A8F6D4A8DAEE
media_dir=A,/media/derzelle/data2
media_dir=p,/media/derzelle

# Set this to merge all media_dir base contents into the root container
# (The default is no.)
#merge_media_dirs=no

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

# Path to the directory that should hold the log file.
log_dir=/var/log

# Type and minimum level of importance of messages to be logged.
#
# The types are "artwork", "database", "general", "http", "inotify",
# "metadata", "scanner", "ssdp" and "tivo".
#
# The levels are "off", "fatal", "error", "warn", "info" or "debug".
# "off" turns of logging entirely, "fatal" is the highest level of importance
# and "debug" the lowest.
#
# The types are comma-separated, followed by an equal sign ("="), followed by a
# level that applies to the preceding types. This can be repeated, separating
# each of these constructs with a comma.
#
# The default is to log all types of messages at the "warn" level.
#log_level=general,artwork,database,inotify,scanner,metadata,http,ssdp,tivo=warn

# 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"
#   * Or, you can specify the ObjectID of your desired root container
#     (eg. 1$F for Music/Playlists)
# If you specify "B" and the client device is audio-only then "Music/Folders"
# will be used as root.
#root_container=.

# Network interface(s) to bind to (e.g. eth0), comma delimited.
# This option can be specified more than once.
network_interface=enp3s0

# Port number for HTTP traffic (descriptions, SOAP, media transfer).
# This option is mandatory (or it must be specified on the command-line using
# "-p").
port=49200

# URL presented to clients (e.g. http://example.com:80).
#presentation_url=/

# Name that the DLNA server presents to clients.
# Defaults to "hostname: username".
friendly_name=Florent DLNA

# Serial number the server reports to clients.
# Defaults to 00000000.
serial=12345678

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

# Model number the server reports to clients.
# Defaults to the version number of minidlna.
model_number=1

# Automatic discovery of new files in the media_dir directory.
inotify=yes

# List of file names to look for when searching for album art.
# Names should be delimited with a forward slash ("/").
# This option can be specified more than once.
album_art_names=Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg
album_art_names=AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg
album_art_names=Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg

# 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.
strict_dlna=no

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

# Notify interval, in seconds.
notify_interval=900

# Path to the MiniSSDPd socket, for MiniSSDPd support.
#minissdpdsocket=/run/minissdpd.sock

# Always set SortCriteria to this value, regardless of the SortCriteria
# passed by the client
# e.g. force_sort_criteria=+upnp:class,+upnp:originalTrackNumber,+dc:title
#force_sort_criteria=

# maximum number of simultaneous connections
# note: many clients open several simultaneous connections while streaming
#max_connections=50
# 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="root"
GROUP="root"

# Additional options that are passed to the daemon
DAEMON_OPTS=""

Hors ligne

#7 Le 20/04/2017, à 12:41

emkamax

Re : configuration minidlna

Hello, comme l'indique Lulux3 plus haut, il faut verifier que ton disque dur soit bien monté dans le fstab. J'avais rencontré le même genre de problème avec Plex Media Server. J'ai fait un petit tuto, tu peux peutr etre t'en inspirer pour ta config avec minidlna: https://emkamax.fr/index.php/2017/04/14 … ia-server/

Hors ligne

#8 Le 20/04/2017, à 22:22

florent666

Re : configuration minidlna

je n'arrive pas a installer sudo apt-get install ntfs-3g, car j'ai un problème avec ushare,

J'ai le paquet cassé ou partiellement installer et je ne trouve pas comment l'installer correctement je galère sad

derzelle@derzelle-Inspiron-546:~$ sudo apt-get install ntfs-3g
[sudo] Mot de passe de derzelle : 
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
ntfs-3g is already the newest version (1:2015.3.14AR.1-1ubuntu0.1).
Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
  libffmpegthumbnailer4v5 libjs-prototype linux-headers-4.8.0-36
  linux-headers-4.8.0-36-generic linux-headers-4.8.0-41
  linux-headers-4.8.0-41-generic linux-headers-4.8.0-44
  linux-headers-4.8.0-44-generic linux-image-4.8.0-36-generic
  linux-image-4.8.0-41-generic linux-image-4.8.0-44-generic
  linux-image-extra-4.8.0-36-generic linux-image-extra-4.8.0-41-generic
  linux-image-extra-4.8.0-44-generic mediatomb-common mediatomb-daemon
Veuillez utiliser « sudo apt autoremove » pour les supprimer.
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
1 partiellement installés ou enlevés.
Après cette opération, 0 o d'espace disque supplémentaires seront utilisés.
Souhaitez-vous continuer ? [O/n] o
Paramétrage de ushare (1.1a-0ubuntu10) ...
/var/lib/dpkg/info/ushare.config: 22: /etc/ushare.conf: /media/derzelle/14D4A8F6D4A8DAEE: not found
dpkg: erreur de traitement du paquet ushare (--configure) :
 le sous-processus script post-installation installé a retourné une erreur de sortie d'état 127
Des erreurs ont été rencontrées pendant l'exécution :
 ushare
E: Sub-process /usr/bin/dpkg returned an error code (1)

Si qqu'un sait m'aider sur se sujet la aussi ça serait cool. merci

Hors ligne

#9 Le 20/04/2017, à 23:15

florent666

Re : configuration minidlna

J'ai réussis a réparer ushare, ouf!!!

Par contre je ne comprend pas bien comment monter les partitions fstab; si qqu un sait me dire comment faire ça serait vraiment top. merci d'avance

Hors ligne

#10 Le 21/04/2017, à 09:59

emkamax

Re : configuration minidlna

Je t'invite à lire les nombreuses documentations traitant de FSTAB

Hors ligne

#11 Le 21/04/2017, à 22:35

florent666

Re : configuration minidlna

Bon et bien voilà, après moulte lecteur, déboire, désillusion, incompréhension, je pense que j'y suis enfin arrivé!!!

Mes 2 partitions de disques dur sont enfin reconnues par minidlna et plex media!!!  il faut juste que je teste début de semaine prochaine pour être sur que ça fonctionne bien avant de mettre résolu.

Merci pour votre aide, je ne suis vraiment pas doué car au final c'était assez simple je pense smile.

Dernière modification par florent666 (Le 21/04/2017, à 22:36)

Hors ligne