Outils du site

Quel est le synonyme de synonyme ? [Inconnu]

04-linux:82-kodi

Différences

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

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
04-linux:82-kodi [2019/12/30 16:14] – [Configuration] Roge04-linux:82-kodi [2019/12/30 18:39] (Version actuelle) – [Service pour démarrage automatique] Roge
Ligne 28: Ligne 28:
 <code bash> <code bash>
 sudo adduser kodi  sudo adduser kodi 
-sudo adduser kodi audio  + 
-sudo adduser kodi video input +sudo usermod -a -G audio,video,input,dialout,plugdev,netdev,users,cdrom,tty kodi
-sudo adduser kodi video  +
-sudo adduser kodi input +
-sudo adduser kodi dialout +
-sudo adduser kodi plugdev +
-sudo adduser kodi tty+
  
 groups kodi groups kodi
Ligne 61: Ligne 56:
 NICE=-5 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> </code>
  
  
  
Dernière modification : 2019/12/30 16:14