Outils du site

Ne dites pas: \"J'ai trouvé la vérité\", mais plutôt: \"J'ai trouvé une vérité\". Ne dites pas: \"J'ai trouvé le chemin de l'âme\". Dites plutôt: \"J'ai rencontré l'âme marchant sur mon chemin\". Car l'âme marche sur tous les chemins.L'âme ne marche pas sur une ligne de crête, pas plus qu'elle ne croit tel un roseau.L'âme se déploie, comme un lotus aux pétales innombrables. [Khalil GIBRAN]

04-linux:82-kodi

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
04-linux:82-kodi [2019/12/29 12:14] – créée Roge04-linux:82-kodi [2019/12/30 18:39] (Version actuelle) – [Service pour démarrage automatique] Roge
Ligne 2: Ligne 2:
  
 ===== Install ===== ===== Install =====
 +
 +
 +<code bash>
 +# La base :
 +sudo apt install kodi kodi-repository-kodi kodi-pvr-iptvsimple
 +
 +# autre modules utiles
 +sudo apt install kodi-audioencoder-vorbis kodi-audioencoder-flac kodi-audioencoder-lame kodi-audioencoder-wav 
 +
 +sudo apt install kodi-audioencoder-vorbis kodi-audioencoder-flac
 +sudo apt install kodi-pvr-mythtv kodi-pvr-vuplus kodi-pvr-vdr-vnsi kodi-pvr-njoy kodi-pvr-nextpvr kodi-pvr-mediaportal-tvserv
 +
 +# liste des modules disponibles
 +apt-cache search kodi
 +
 +</code>
 +
 +===== Configure =====
 +
 +
 +==== utilisateur ====
 +
 +
 +
 +<code bash>
 +sudo adduser kodi 
 +
 +sudo usermod -a -G audio,video,input,dialout,plugdev,netdev,users,cdrom,tty kodi
 +
 +groups kodi
 +# kodi : kodi tty dialout audio video plugdev input
 +</code>
 +
 +==== Autostart sur Raspi 3 ====
 +
 +A la fin du fichier ''/boot/config.txt'' ajouter :
 +<code>
 +gpu_mem=256
 +start_x=1
 +</code>
 +
 +
 +==== Configuration ====
 +La configuration se trouve dans ''/etc/default/kodi'' :
 +<code>
 +# set his to 1 to enable startup
 +ENABLED=1
 +
 +# the user to run kodi as
 +USER=kodi
 +
 +# adjust niceness of kodi (decrease for higher priority)
 +NICE=-5
 +
 +</code>
 +
 +
 +==== Service pour démarrage automatique ====
 +
 +
 +<code bash>
 +sudo tee -a /lib/systemd/system/kodi.service <<_EOF_
 +[Unit]
 +Description = Kodi Media Center
 +After = remote-fs.target network-online.target
 +Wants = network-online.target
 +
 +[Service]
 +User = kodi
 +Group = kodi
 +Type = simple
 +ExecStart = /usr/bin/kodi-standalone
 +Restart = on-abort
 +RestartSec = 5
 +
 +[Install]
 +WantedBy = multi-user.target
 +_EOF_
 +
 +
 +# Once this has been copied, you can attempt to start the service using the following command:
 +sudo systemctl start kodi.service
 +
 +# Stop it using following command:
 +sudo systemctl stop kodi.service
 +
 +# When you are happy that this starts and stops your app, you can have it start automatically on reboot by using this command:
 +sudo systemctl enable kodi.service
 +
 +# The systemctl command can also be used to restart the service or disable it from boot up!
 +</code>
  
  
  
Dernière modification : 2019/12/29 12:14