Raspberry Kodi: Unterschied zwischen den Versionen

Aus xinux.net
Zur Navigation springen Zur Suche springen
Zeile 30: Zeile 30:
 
*systemctl enable kodi.service
 
*systemctl enable kodi.service
 
*systemctl start kodi.service
 
*systemctl start kodi.service
 +
=Home and config directory=
 +
*/home/kodi/.kodi

Version vom 2. Januar 2018, 10:15 Uhr

Preperation

  • echo "gpu_mem=256" >> /boot/config.txt

Install

  • apt-get update
  • apt-get install kodi

Create User

  • useradd -m -G dialout,cdrom,audio,video,dip,input,plugdev,users rodi

Systemd stuff

config

  • /etc/systemd/system/kodi.service
[Unit]
Description = Kodi Media Center

After = systemd-user-sessions.service network.target sound.target

[Service]
User = kodi
Group = kodi
Type = simple
ExecStart = /usr/bin/xinit /usr/bin/kodi-standalone -- :0 -nolisten tcp vt7
Restart = on-abort
RestartSec = 5

[Install]
WantedBy = multi-user.target

systemctl

  • systemctl daemon-reload
  • systemctl enable kodi.service
  • systemctl start kodi.service

Home and config directory

  • /home/kodi/.kodi