Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| 04-linux:82-kodi [2019/12/29 12:22] – Roge | 04-linux:82-kodi [2019/12/30 18:39] (Version actuelle) – [Service pour démarrage automatique] Roge | ||
|---|---|---|---|
| Ligne 5: | Ligne 5: | ||
| <code bash> | <code bash> | ||
| + | # La base : | ||
| sudo apt install kodi kodi-repository-kodi kodi-pvr-iptvsimple | sudo apt install kodi kodi-repository-kodi kodi-pvr-iptvsimple | ||
| Ligne 17: | Ligne 18: | ||
| </ | </ | ||
| + | |||
| + | ===== Configure ===== | ||
| + | |||
| + | |||
| + | ==== utilisateur ==== | ||
| + | |||
| + | |||
| + | |||
| + | <code bash> | ||
| + | sudo adduser kodi | ||
| + | |||
| + | sudo usermod -a -G audio, | ||
| + | |||
| + | groups kodi | ||
| + | # kodi : kodi tty dialout audio video plugdev input | ||
| + | </ | ||
| + | |||
| + | ==== Autostart sur Raspi 3 ==== | ||
| + | |||
| + | A la fin du fichier ''/ | ||
| + | < | ||
| + | gpu_mem=256 | ||
| + | start_x=1 | ||
| + | </ | ||
| + | |||
| + | |||
| + | ==== Configuration ==== | ||
| + | La configuration se trouve dans ''/ | ||
| + | < | ||
| + | # 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 | ||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| + | ==== Service pour démarrage automatique ==== | ||
| + | |||
| + | |||
| + | <code bash> | ||
| + | sudo tee -a / | ||
| + | [Unit] | ||
| + | Description = Kodi Media Center | ||
| + | After = remote-fs.target network-online.target | ||
| + | Wants = network-online.target | ||
| + | |||
| + | [Service] | ||
| + | User = kodi | ||
| + | Group = kodi | ||
| + | Type = simple | ||
| + | ExecStart = / | ||
| + | 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! | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||