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:02] Slyfox [Configuration automatique] |
doc:reseau:minidlna [12/06/2020 14:15] Slyfox [Configuration automatique] |
||
---|---|---|---|
Ligne 32: | Ligne 32: | ||
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=2 | wget https://debian-facile.org/_export/code/doc:reseau:minidlna?codeblock=2 | ||
- | + | chmod +x doc:reseau:minidlna?codeblock=2 | |
- | chmod +x /home/slyfox/Bureau/minidlna.sh | + | ./doc:reseau:minidlna?codeblock=2 |
- | /home/slyfox/Bureau/minidlna.sh</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="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 58: | ||
yadStatus="$?" | yadStatus="$?" | ||
- | # Récupération données yadMenu | + | # Récupération données yad |
nameServer=$(awk -F [\|] '{print $2}' <<< "$choix") | nameServer=$(awk -F [\|] '{print $2}' <<< "$choix") | ||
aDir=$(awk -F [\|] '{print $3}' <<< "$choix") | aDir=$(awk -F [\|] '{print $3}' <<< "$choix") | ||
vDir=$(awk -F [\|] '{print $4}' <<< "$choix") | vDir=$(awk -F [\|] '{print $4}' <<< "$choix") | ||
pDir=$(awk -F [\|] '{print $5}' <<< "$choix") | pDir=$(awk -F [\|] '{print $5}' <<< "$choix") | ||
+ | |||
+ | [[ -n "nameServer" ]] && nameServer="MiniDLNA" | ||
if [[ "$yadStatus" == "0" ]]; then | if [[ "$yadStatus" == "0" ]]; then |