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 15:08] Slyfox [Configuration graphique et simplifiée] |
doc:reseau:minidlna [12/06/2020 15:10] Slyfox [Configuration graphique et simplifiée] |
||
---|---|---|---|
Ligne 23: | Ligne 23: | ||
apt-get install minidlna</code> | apt-get install minidlna</code> | ||
- | ===== Configuration graphique et simplifiée ===== | + | ===== Configuration graphique ===== |
Ligne 319: | Ligne 319: | ||
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> | ||
+ | ===== Script de configuration graphique ==== | ||
+ | <file config minidlna_install> | ||
+ | #! /bin/bash | ||
+ | choix=$(yad --form \ | ||
+ | --title "MiniDLNAConfig" \ | ||
+ | --geometry="550x350" \ | ||
+ | --borders="25" \ | ||
+ | --center \ | ||
+ | --scroll \ | ||
+ | --columns=1 \ | ||
+ | --always-print-result \ | ||
+ | --field=" ":LBL " " \ | ||
+ | --field="Port":CBE "8200" \ | ||
+ | --field="Nom du service":CBE "MiniDLNA" \ | ||
+ | --field="Dossier musique":DIR "/home" \ | ||
+ | --field="Dossier video":DIR "/home" \ | ||
+ | --field="Dossier image":DIR "/home" \ | ||
+ | --field="Interval mise à jour":CB "60!360!600!900!1800!3600" \ | ||
+ | --button="gtk-quit:1" \ | ||
+ | --button="gtk-ok:0") | ||
+ | |||
+ | yadStatus="$?" | ||
+ | |||
+ | # Récupération données yad | ||
+ | port=$(awk -F [\|] '{print $2}' <<< "$choix") | ||
+ | nameServer=$(awk -F [\|] '{print $3}' <<< "$choix") | ||
+ | aDir=$(awk -F [\|] '{print $4}' <<< "$choix") | ||
+ | vDir=$(awk -F [\|] '{print $5}' <<< "$choix") | ||
+ | pDir=$(awk -F [\|] '{print $6}' <<< "$choix") | ||
+ | pDir=$(awk -F [\|] '{print $6}' <<< "$choix") | ||
+ | notifyInterval=$(awk -F [\|] '{print $7}' <<< "$choix") | ||
+ | |||
+ | [[ -n "$port" ]] && port="8200" | ||
+ | [[ -n "$nameServer" ]] && nameServer="MiniDLNA" | ||
+ | |||
+ | if [[ "$yadStatus" == "0" ]]; then | ||
+ | |||
+ | echo -e "port="$port" | ||
+ | #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="$notifyInterval" | ||
+ | serial=12345678 | ||
+ | model_number=1 | ||
+ | #minissdpdsocket=/var/run/minissdpd.sock | ||
+ | root_container=. | ||
+ | #force_sort_criteria=+upnp:class,+upnp:originalTrackNumber,+dc:title | ||
+ | #max_connections=50" > "/etc/minidlna.conf" | ||
+ | |||
+ | PATH=$PATH:/usr/sbin | ||
+ | service minidlna start | ||
+ | service minidlna force-reload | ||
+ | fi | ||
+ | |||
+ | exit | ||
+ | </file> | ||