Bonjour
Je viens d'installer Focal Fossa et je voudrais configurer mon réseau DLNA (pour lire mes médias depuis la télé).
J'arrive à lire ce qu'il y a sur mon disque dur mais pas ce qui est sur un disque USB.
[right]J'ai résolu le problème avec minidlna, il suffit de changer le point de montage du disque dur externe
gnome-disk-utility[/right]
[right]
et de changer le chemin dans minidlna.conf[/right]
media_dir=V,/mnt/DD-BCD/Vidéos
[right]Un grand merci à tous les participants, vous m'avez bien aidé, je ne suis jamais déçue quand je poste sur ce forum. [/right]
J'ai essayé de suivre
miniDLNA
Configuration de l'utilisateur et groupe
Par défaut, miniDLNA (lorsqu'il a été installé depuis les dépôts) est exécuté automatiquement au démarrage de l'ordinateur comme un service. L'utilisateur et le groupe par défaut utilisés sont : minidlna.
Modifier les lignes du fichier /etc/default/minidlna avec les droits d'administration:
#USER="minidlna"
#GROUP="minidlna"
Concrètement, ajouter la ligne :
GROUP="nom_de_l'utilisateur"
(où nom_de_l'utilisateur est à remplacer par le nom de l'utilisateur (user) de votre machine).
Je dois louper un détail parceque ça ne marche pas.
Pouvez vous m'aider ?
Merci
Pour info :
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="minidlna"
GROUP=bcd16
# Additional options that are passed to the daemon
# We pass -r option to do soft non-destructive rebuild on every start-up.
# If your systerm restarts often, you might want to remove this.
DAEMON_OPTS="-r"
minidlna.conf
# 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 (root by default).
# On Debian system command line option (from /etc/default/minidlna) overrides this.
#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
media_dir=A,/home/bcd16/Musique
media_dir=A,/home/bcd16/Documents/Christiane/Santé/Maigrir
media_dir=P,/home/bcd16/Images/Photos classées
media_dir=V,/media/bcd16/DD-BCD/Vidéos
# 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. http://example.com:80).
#presentation_url=/
# Name that the DLNA server presents to clients.
# Defaults to "hostname: username".
#friendly_name=
# Serial number the server reports to clients.
# Defaults to the MAC address of nework interface.
#serial=
# 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=
# 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
# Which method to use for registering in TiVo: 'bonjour' (default) or
# legacy 'beacon'
#tivo_discovery=bonjour
# SSDP notify interval, in seconds.
#notify_interval=895
# 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
# set this to yes to allow symlinks that point outside user-defined media_dirs.
#wide_links=no
status minidlna
bcd16@bcd16:~$ ls /etc/apt/sources.list.d -1
skype-stable.list
teamviewer.list
bcd16@bcd16:~$ sudo systemctl status minidlna
[sudo] Mot de passe de bcd16 :
● minidlna.service - LSB: minidlna server
Loaded: loaded (/etc/init.d/minidlna; generated)
Active: active (running) since Sat 2020-05-16 06:46:59 CEST; 20min ago
Docs: man:systemd-sysv-generator(8)
Process: 34900 ExecStart=/etc/init.d/minidlna start (code=exited, status=0/SUCCESS)
Tasks: 2 (limit: 4495)
Memory: 9.1M
CGroup: /system.slice/minidlna.service
└─34912 /usr/sbin/minidlnad -f /etc/minidlna.conf -P /run/minidlna/minidlna.pid -r
mai 16 06:46:59 bcd16 systemd[1]: minidlna.service: Succeeded.
mai 16 06:46:59 bcd16 systemd[1]: Stopped LSB: minidlna server.
mai 16 06:46:59 bcd16 systemd[1]: Starting LSB: minidlna server...
mai 16 06:46:59 bcd16 minidlna[34910]: [2020/05/16 06:46:59] minidlna.c:631: error: Media directory "V,/media/bcd16/DD-BCD/Vidéos" not accessible [Permission denied]
mai 16 06:46:59 bcd16 systemd[1]: Started LSB: minidlna server.
bcd16@bcd16:~$ screenfetch
./+o+- bcd16@bcd16
yyyyy- -yyyyyy+ OS: Ubuntu 20.04 focal
://+//////-yyyyyyo Kernel: x86_64 Linux 5.4.0-29-generic
.++ .:/++++++/-.+sss/` Uptime: 1d 18h 29m
.:++o: /++++++++/:--:/- Packages: 1782
o:+o+:++.`..```.-/oo+++++/ Shell: bash 5.0.16
.:+o:+o/. `+sssoo+/ Resolution: 1920x1080
.++/+:+oo+o:` /sssooo. DE: GNOME 3.36.1
/+++//+:`oo+o /::--:. WM: Mutter
\+/+o+++`o++o ++////. WM Theme: Adwaita
.++.o+++oo+:` /dddhhh. GTK Theme: Yaru [GTK2/3]
.+.o+oo:. `oddhhhh+ Icon Theme: Yaru
\+.++o+o``-````.:ohdhhhhh+ Font: Ubuntu 11
`:o+++ `ohhhhhhhhyo++os: Disk: 348G / 2,3T (16%)
.o:`.syhhhhhhh/.oo++o` CPU: Intel Pentium G4400 @ 2x 3,3GHz [23.0°C]
/osyyyyyyo++ooo+++/ GPU: Intel Corporation HD Graphics 510 (rev 06)
````` +oo+++o\: RAM: 2596MiB / 3801MiB
`oo++.
bcd16@bcd16:~$ ls /etc/apt/sources.list.d -1
skype-stable.list
teamviewer.list