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:01] Slyfox [Configuration automatique] |
doc:reseau:minidlna [12/06/2020 14:47] 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 config script> | + | <file config minidlna_install> |
#! /bin/bash | #! /bin/bash | ||
choix=$(yad --form \ | choix=$(yad --form \ | ||
--title "MiniDLNAConfig" \ | --title "MiniDLNAConfig" \ | ||
- | --geometry="500x500" \ | + | --geometry="550x350" \ |
--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" \ | ||
--field="Dossier musique":DIR "/home" \ | --field="Dossier musique":DIR "/home" \ | ||
--field="Dossier video":DIR "/home" \ | --field="Dossier video":DIR "/home" \ | ||
--field="Dossier image":DIR "/home" \ | --field="Dossier image":DIR "/home" \ | ||
+ | --field="Interval mise à jour":CB "60!360!600!900!1800!3600" \ | ||
--button="gtk-quit:1" \ | --button="gtk-quit:1" \ | ||
--button="gtk-ok:0") | --button="gtk-ok:0") | ||
Ligne 56: | Ligne 60: | ||
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") | ||
+ | pDir=$(awk -F [\|] '{print $6}' <<< "$choix") | ||
+ | notifyInterval=$(awk -F [\|] '{print $7}' <<< "$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 89: | ||
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="$notifyInterval" |
serial=12345678 | serial=12345678 | ||
model_number=1 | model_number=1 | ||
Ligne 94: | Ligne 104: | ||
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 229: | Ligne 239: | ||
Modifions le nom qui apparaîtra sur l’interface des clients ou celui qui apparaîtra sur l'interface du client DLNA (télévisions, smartphones, tablettes...)\\ | Modifions le nom qui apparaîtra sur l’interface des clients ou celui qui apparaîtra sur l'interface du client DLNA (télévisions, smartphones, tablettes...)\\ | ||
- | De base, le nom n’est pas très explicite, et il sera sûrement plus agréable de lire à la place par exemple : « Serveur DLNA Debian ». \\ | + | De base, le nom n’est pas très explicite, et il sera sûrement plus agréable de lire à la place par exemple : « MiniDLNA Server ». \\ |
:-) | :-) | ||
Ligne 235: | Ligne 245: | ||
Ce qui nous donnera pour cet exemple : | Ce qui nous donnera pour cet exemple : | ||
- | <code>friendly_name=Serveur DLNA Debian</code> | + | <code>friendly_name=MiniDLNA Server</code> |
==== Répertoire du cache ==== | ==== Répertoire du cache ==== |