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 14:04] Slyfox [Configuration automatique] |
doc:reseau:minidlna [12/06/2020 14:29] 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é ===== |
Ligne 33: | Ligne 33: | ||
wget https://debian-facile.org/_export/code/doc:reseau:minidlna?codeblock=2 | wget https://debian-facile.org/_export/code/doc:reseau:minidlna?codeblock=2 | ||
chmod +x doc:reseau:minidlna?codeblock=2 | chmod +x doc:reseau:minidlna?codeblock=2 | ||
- | doc:reseau:minidlna?codeblock=2 | + | ./doc:reseau:minidlna?codeblock=2 |
- | rm doc:reseau:minidlna?codeblock=2</code> | + | rm doc:reseau:minidlna?codeblock=2 |
+ | exit</code> | ||
<file config minidlna_install> | <file config minidlna_install> | ||
Ligne 48: | Ligne 49: | ||
--always-print-result \ | --always-print-result \ | ||
--field=" ":LBL " " \ | --field=" ":LBL " " \ | ||
- | --field="Profil":CBE "Serveur DLNA Debian" \ | + | --field="Port":CBE "Par défaut!8200" \ |
+ | --field="Nom du service DLNA":CBE "MiniDLNA" \ | ||
--field="Dossier musique":DIR "/home" \ | --field="Dossier musique":DIR "/home" \ | ||
--field="Dossier video":DIR "/home" \ | --field="Dossier video":DIR "/home" \ | ||
Ligne 57: | 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") | ||
+ | |||
+ | [[ "$port" == "Par défaut" ]] && port="8200" | ||
+ | [[ -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 80: | Ligne 87: | ||
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 95: | Ligne 102: | ||
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: | ||