Vous n'êtes pas identifié(e).
L'icône rouge permet de télécharger chaque page du wiki visitée au format
PDF et la grise au format ODT →
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente Prochaine révision Les deux révisions suivantes | ||
doc:reseau:minidlna [12/06/2020 13:57] Slyfox [Fichier configuration simplifié] |
doc:reseau:minidlna [12/06/2020 14:36] Slyfox [Configuration rapide et simplifié] |
||
---|---|---|---|
Ligne 23: | Ligne 23: | ||
apt-get install minidlna</code> | apt-get install minidlna</code> | ||
- | ===== Configuration automatique ===== | + | ===== Configuration rapide et simplifié ===== |
- | <note warning>ATTENTION! Cette méthode est actuellement en cours expérimentale</note> | + | <note warning>ATTENTION! Cette méthode est actuellement en cours de test (mais peut fonctionner)</note> |
<code root> | <code root> | ||
apt-get update | apt-get update | ||
apt-get -y install minidlna yad sysvinit-utils | apt-get -y install minidlna yad sysvinit-utils | ||
- | wget https://debian-facile.org/_export/code/doc:reseau:minidlna?codeblock=1 | + | wget https://debian-facile.org/_export/code/doc:reseau:minidlna?codeblock=2 |
- | chmod +x /home/slyfox/Bureau/minidlna.sh | + | chmod +x doc:reseau:minidlna?codeblock=2 |
- | /home/slyfox/Bureau/minidlna.sh</code> | + | ./doc:reseau:minidlna?codeblock=2 |
+ | rm doc:reseau:minidlna?codeblock=2 | ||
+ | exit</code> | ||
- | <file script> | + | <file config minidlna_install> |
#! /bin/bash | #! /bin/bash | ||
choix=$(yad --form \ | choix=$(yad --form \ | ||
--title "MiniDLNAConfig" \ | --title "MiniDLNAConfig" \ | ||
- | --geometry="500x500" \ | + | --geometry="500x350" \ |
--borders="25" \ | --borders="25" \ | ||
--center \ | --center \ | ||
Ligne 47: | Ligne 49: | ||
--always-print-result \ | --always-print-result \ | ||
--field=" ":LBL " " \ | --field=" ":LBL " " \ | ||
- | --field="Profil":CBE "Serveur DLNA Debian" \ | + | --field="Port":CBE "8200" \ |
+ | --field="Nom du service":CBE "MiniDLNA Server" \ | ||
--field="Dossier musique":DIR "/home" \ | --field="Dossier musique":DIR "/home" \ | ||
--field="Dossier video":DIR "/home" \ | --field="Dossier video":DIR "/home" \ | ||
Ligne 56: | Ligne 59: | ||
yadStatus="$?" | yadStatus="$?" | ||
- | # Récupération données yadMenu | + | # Récupération données yad |
- | nameServer=$(awk -F [\|] '{print $2}' <<< "$choix") | + | port=$(awk -F [\|] '{print $2}' <<< "$choix") |
- | aDir=$(awk -F [\|] '{print $3}' <<< "$choix") | + | nameServer=$(awk -F [\|] '{print $3}' <<< "$choix") |
- | vDir=$(awk -F [\|] '{print $4}' <<< "$choix") | + | aDir=$(awk -F [\|] '{print $4}' <<< "$choix") |
- | pDir=$(awk -F [\|] '{print $5}' <<< "$choix") | + | vDir=$(awk -F [\|] '{print $5}' <<< "$choix") |
+ | pDir=$(awk -F [\|] '{print $6}' <<< "$choix") | ||
+ | |||
+ | [[ -n "$port" ]] && port="8200" | ||
+ | [[ -n "$nameServer" ]] && nameServer="MiniDLNA" | ||
if [[ "$yadStatus" == "0" ]]; then | if [[ "$yadStatus" == "0" ]]; then | ||
- | echo -e "port=8200 | + | echo -e "port="$port" |
#network_interface=eth0 | #network_interface=eth0 | ||
#user=jmaggard | #user=jmaggard | ||
Ligne 79: | Ligne 86: | ||
strict_dlna=no | strict_dlna=no | ||
#presentation_url=http://www.mylan/index.php | #presentation_url=http://www.mylan/index.php | ||
- | notify_interval=900 | + | notify_interval=60 |
serial=12345678 | serial=12345678 | ||
model_number=1 | model_number=1 | ||
Ligne 94: | Ligne 101: | ||
exit | exit | ||
</file> | </file> | ||
- | ===== Configuration ===== | + | ===== Configuration avancée ===== |
Voici le fichier de configuration ''/etc/minidlna.conf'' par défaut: | Voici le fichier de configuration ''/etc/minidlna.conf'' par défaut: | ||
Ligne 292: | Ligne 299: | ||
Une fois toutes les modifications faites enregistrons-les via les touches <key>F3</key> ou <key>C-o</key> puis validons par <key>Entrée</key>. \\ | Une fois toutes les modifications faites enregistrons-les via les touches <key>F3</key> ou <key>C-o</key> puis validons par <key>Entrée</key>. \\ | ||
Nous pouvons enfin quitter [[:doc:editeurs:nano:]] via les touches <key>F2</key> ou <key>C-x</key> | Nous pouvons enfin quitter [[:doc:editeurs:nano:]] via les touches <key>F2</key> ou <key>C-x</key> | ||
- | |||
- | ===== Fichier configuration simplifié ===== | ||
- | |||
- | Voici un exemple de fichier de configuration très simplifié, épuré et sans commentaires. | ||
- | |||
- | <file config /etc/minidlna.conf> | ||
- | port=8200 | ||
- | #network_interface=eth0 | ||
- | #user=jmaggard | ||
- | media_dir=A,"$aDir" | ||
- | media_dir=V,"$vDir" | ||
- | media_dir=P,"$pDir" | ||
- | #merge_media_dirs=no | ||
- | friendly_name="$nameServer" | ||
- | #db_dir=/var/cache/minidlna | ||
- | #log_dir=/var/log | ||
- | #log_level=general,artwork,database,inotify,scanner,metadata,http,ssdp,tivo=warn | ||
- | 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 | ||
- | inotify=yes | ||
- | enable_tivo=no | ||
- | strict_dlna=no | ||
- | #presentation_url=http://www.mylan/index.php | ||
- | notify_interval=900 | ||
- | serial=12345678 | ||
- | model_number=1 | ||
- | #minissdpdsocket=/var/run/minissdpd.sock | ||
- | root_container=. | ||
- | #force_sort_criteria=+upnp:class,+upnp:originalTrackNumber,+dc:title | ||
- | #max_connections=50 | ||
- | </file> | ||