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 19/01/2023, à 23:05

douxy19

RESOLU minidlna ne me donne pas accés a mes fichiers sous ubuntu 22.04

Bonsoir à toutes et à tous.
Petit souci avec ubuntu 22.04 : dans cette version et après installation et configuration, minidlna ne me donne pas l'accès à mes fichiers.
Des dossiers s'affichent, mais rien de visible dedans.
Je passe toujours par vlc pour vérifier que tout cela fonctionne, mais là, juste la version, les dossiers et… Le vide ?
idem si je passe par bubble upnp avec mon téléphone : système repéré, mais dossiers vides.
Sous ubuntu 20.04 et linuxmint 20 même configuration de minidlna tout va bien.
Avec linuxmint 21 (base ubuntu 22.04) ça ne marche pas mieux ?
J'ai décidément des soucis avec cette version. À moins que j'aie raté un petit quelque chose !

Douxy

Dernière modification par douxy19 (Le 24/01/2023, à 23:35)


intel core 2 duo E 7500 2.93Ghz.
Mb asus P5QPL-AM.ubuntu 20.04...debian  buster 10.5 KDE. linuxmint 20 et 21 cinnamon
Chipset graphique intel:G41.
Dell 3010 intel i3  8Gb ram avec ubuntu 22.04

Hors ligne

#2 Le 21/01/2023, à 15:49

douxy19

Re : RESOLU minidlna ne me donne pas accés a mes fichiers sous ubuntu 22.04

Hello à toutes et à tous
je désespère un peu, car aucunes des configurations essayées ne fonctionnent
un petit sentiment de tristesse sad.


intel core 2 duo E 7500 2.93Ghz.
Mb asus P5QPL-AM.ubuntu 20.04...debian  buster 10.5 KDE. linuxmint 20 et 21 cinnamon
Chipset graphique intel:G41.
Dell 3010 intel i3  8Gb ram avec ubuntu 22.04

Hors ligne

#3 Le 21/01/2023, à 16:11

Compte supprimé

Re : RESOLU minidlna ne me donne pas accés a mes fichiers sous ubuntu 22.04

Tu peux aussi lancer minidlna en le mettant dans ton groupe utilisateur.
C'est expliqué dans la doc pour avoir les droits sur les fichiers lus.
https://doc.ubuntu-fr.org/minidlna#conf … _et_groupe

Dernière modification par Compte supprimé (Le 21/01/2023, à 16:14)

#4 Le 21/01/2023, à 18:56

douxy19

Re : RESOLU minidlna ne me donne pas accés a mes fichiers sous ubuntu 22.04

Bonjour tamarou.
A priori et sauf mauvaise manip de ma part, j'ai essayé ce chemin.
Pour l'instant toujours rien.
Un clic sur parcourir les dossiers et... le vide roll
À titre d'infos.
Ma configuration

# 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=/home/jean-raymond
#media_dir=A,/home/jean-raymond/multimedia/audio
#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
db_dir=/var/cache/minidlna
# Path to the directory that should hold the log file.
#log_dir=/var/log/minidlna
log_dir=/var/log/minidlna
# 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=
network_interface=enp1s0
# 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
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=
friendly_name=linuxmint 21
# 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=
model_number=1
# Automatic discovery of new files in the media_dir directory.
#inotify=yes
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
strict_dlna=no
# Support for streaming .jpg and .mp3 files to a TiVo supporting HMO.
#enable_tivo=no
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
notify_interval=5
# 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 

et:

# Defaults for minidlna initscript
# sourced by minidlna.service and /etc/init.d/minidlna
#
# WARNING: This file is used for compatibility with sysv init only.
# If you are using systemd (Debian default), please override minidlna.service
# unit instead of modifying these variables.


# These options can be set to modify the behavior of the minidlna init script.
# The options commented out show the default values.

# Path to the configuration file
#CONFIGFILE="/etc/minidlna.conf"

# Path to the log file
#LOGFILE="/var/log/minidlna/minidlna.log"

# User and group the daemon should run as
# only for sysV init, for systemd please override minidlna.service

#GROUP="minidlna"
GROUP="jean_raymond"
# 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" 

Ça peut aider...

Et ce qui fonctionne dans mint 20 (idem celle pour ubuntu 20.04)

# 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=/home/jean-raymond

# 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
db_dir=/var/cache/minidlna

# Path to the directory that should hold the log file.
#log_dir=/var/log
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=
network_interface=enp1s0

# 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=
friendly_name=linuxmint 20
# 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=
model_number=1
# Automatic discovery of new files in the media_dir directory.
#inotify=yes
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
strict_dlna=no
# Support for streaming .jpg and .mp3 files to a TiVo supporting HMO.
#enable_tivo=no
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
notify_interval=5
# 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 
# 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"

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

Dernière modification par douxy19 (Le 21/01/2023, à 19:09)


intel core 2 duo E 7500 2.93Ghz.
Mb asus P5QPL-AM.ubuntu 20.04...debian  buster 10.5 KDE. linuxmint 20 et 21 cinnamon
Chipset graphique intel:G41.
Dell 3010 intel i3  8Gb ram avec ubuntu 22.04

Hors ligne

#5 Le 21/01/2023, à 20:23

Compte supprimé

Re : RESOLU minidlna ne me donne pas accés a mes fichiers sous ubuntu 22.04

Et bien entendu, après ces modifications, tu as relancé le serveur.

#6 Le 21/01/2023, à 22:26

douxy19

Re : RESOLU minidlna ne me donne pas accés a mes fichiers sous ubuntu 22.04

Pour sûr !
J'ai même fait une nouvelle installation avec une configuration similaire a ubuntu 20.04 et linuxmint20.
Même punition :j'accède dans Vlc a mon "friendly-name". Un clic sur parcourir tous les dossiers et ......toujours le vide de l'espace !
Ça commence à me gonfler que des choses qui tournaient bien deviennent un case-tête.
j'ai un problème différent d'affichage des vignettes dans une fenêtre ouverte pour mon téléphone, mais qui reste irrésolu à ce jour (pas l'endroit, je sais, mais ça se cumule)
pour curiosité : https://forum.ubuntu-fr.org/viewtopic.php?id=2075648
Bon, je me détends et si ça m'attrape, je réinstalle une 20.04 et bonjour 2025 et zut a... je ne sais pas trop d'ailleurs tongue

Dernière modification par douxy19 (Le 21/01/2023, à 22:28)


intel core 2 duo E 7500 2.93Ghz.
Mb asus P5QPL-AM.ubuntu 20.04...debian  buster 10.5 KDE. linuxmint 20 et 21 cinnamon
Chipset graphique intel:G41.
Dell 3010 intel i3  8Gb ram avec ubuntu 22.04

Hors ligne

#7 Le 24/01/2023, à 23:20

douxy19

Re : RESOLU minidlna ne me donne pas accés a mes fichiers sous ubuntu 22.04

Bonsoir à toutes et a tous.
J'ai trouvé !!!!! big_smile
https://restez-curieux.ovh/2022/02/04/m … na-facile/
la ligne de commande qui sauve : sudo adduser minidlna jean-raymond (c'est moi !) ou sudo adduser minidlna xxxxxxx  (votre beau nom d'utilisateur)
Une vérification de la configuration, un service minidlna restart et ça marche, j'ai accès à mes dossiers et fichiers.
Une simple question de droit ......enfin simple, façon de causer…
Je suis content, car minidlna n'est pas une usine à gaz et cela me suffit cool

et merci à Cyrille wink


intel core 2 duo E 7500 2.93Ghz.
Mb asus P5QPL-AM.ubuntu 20.04...debian  buster 10.5 KDE. linuxmint 20 et 21 cinnamon
Chipset graphique intel:G41.
Dell 3010 intel i3  8Gb ram avec ubuntu 22.04

Hors ligne

#8 Le 25/01/2023, à 08:50

Compte supprimé

Re : RESOLU minidlna ne me donne pas accés a mes fichiers sous ubuntu 22.04

Alors oui, mettre son utilisateur dans le groupe minidlna est une autre solution.
Mais ta remarque m'a poussé à chercher un peu plus, vu que la modification du groupe dans minidlna.conf a fonctionné sur mon serveur.

minidlna.conf a écrit :

# User and group the daemon should run as
# only for sysV init, for systemd please override minidlna.service

C'est l'explication !
Sur des installations récentes qui utilisent systemd, il faut changer le groupe dans /usr/lib/systemd/system/minidlna.service.

sudo nano /usr/lib/systemd/system/minidlna.service

suivi d'un

sudo systemctl daemon-reload

C'est finalement plus simple de se mettre dans le groupe minidlna.

Edit : je viens de le noter dans la documentation. Regarde si c'est compréhensible.

Dernière modification par Compte supprimé (Le 25/01/2023, à 09:47)

#9 Le 25/01/2023, à 10:17

douxy19

Re : RESOLU minidlna ne me donne pas accés a mes fichiers sous ubuntu 22.04

Bonjour tamarou.
Merci les précisions.
Je suis allé dans la doc et l'ajout est non seulement indispensable et me parait très clair.
Ne me reste plus qu'à régler mon problème de vignettes dans la fenêtre ouverte pour le contenu d'un téléphone
Réf: https://forum.ubuntu-fr.org/viewtopic.php?id=2075648
Bonne journée


intel core 2 duo E 7500 2.93Ghz.
Mb asus P5QPL-AM.ubuntu 20.04...debian  buster 10.5 KDE. linuxmint 20 et 21 cinnamon
Chipset graphique intel:G41.
Dell 3010 intel i3  8Gb ram avec ubuntu 22.04

Hors ligne

#10 Le 25/01/2023, à 10:37

Compte supprimé

Re : RESOLU minidlna ne me donne pas accés a mes fichiers sous ubuntu 22.04

Je ne vais pas aller dans ton autre sujet pour le moment car je n'ai pas encore d'explication.
Mais sur une VM de Lubuntu 22.04, si je branche mon Xperia xz2 en LineageOs 20 (Android 13), alors les vignettes des photos sont affichées dans l'explorateur de fichiers.
Alors que dans Ubuntu 22.04, elles ne s'affichent pas.

Dernière modification par Compte supprimé (Le 25/01/2023, à 10:41)

#11 Le 25/01/2023, à 10:45

douxy19

Re : RESOLU minidlna ne me donne pas accés a mes fichiers sous ubuntu 22.04

Je continue mes recherches aussi.


intel core 2 duo E 7500 2.93Ghz.
Mb asus P5QPL-AM.ubuntu 20.04...debian  buster 10.5 KDE. linuxmint 20 et 21 cinnamon
Chipset graphique intel:G41.
Dell 3010 intel i3  8Gb ram avec ubuntu 22.04

Hors ligne

#12 Le 25/01/2023, à 11:09

Compte supprimé

Re : RESOLU minidlna ne me donne pas accés a mes fichiers sous ubuntu 22.04

sudo apt install pcmanfm-qt

testé sur Ubuntu 22.04, pcmanfm-qt affiche bien les vignettes.

Dernière modification par Compte supprimé (Le 25/01/2023, à 11:09)

#13 Le 25/01/2023, à 21:41

douxy19

Re : RESOLU minidlna ne me donne pas accés a mes fichiers sous ubuntu 22.04

Hello.
Desolé,mais dans mon ubuntu 22.04 toujours pas d'affichage sad


intel core 2 duo E 7500 2.93Ghz.
Mb asus P5QPL-AM.ubuntu 20.04...debian  buster 10.5 KDE. linuxmint 20 et 21 cinnamon
Chipset graphique intel:G41.
Dell 3010 intel i3  8Gb ram avec ubuntu 22.04

Hors ligne

#14 Le 25/01/2023, à 21:56

Compte supprimé

Re : RESOLU minidlna ne me donne pas accés a mes fichiers sous ubuntu 22.04

Si c'est pour les vignettes, va nous en dire plus sur ton sujet dédié.

#15 Le 25/01/2023, à 21:56

douxy19

Re : RESOLU minidlna ne me donne pas accés a mes fichiers sous ubuntu 22.04

Bien sur.
On y va !


intel core 2 duo E 7500 2.93Ghz.
Mb asus P5QPL-AM.ubuntu 20.04...debian  buster 10.5 KDE. linuxmint 20 et 21 cinnamon
Chipset graphique intel:G41.
Dell 3010 intel i3  8Gb ram avec ubuntu 22.04

Hors ligne