retroarch-standalone-service/README.md
2017-05-28 13:51:11 -04:00

1.7 KiB

kodi-standalone-service

A simple systemd service file to run kodi in standalone mode.

Installation

Arch Linux

Arch Linux users (not Arch ARM users) can find a PKGBUILD in the AUR that will take care of everything. Simply install and use.

Other distros

Users of other distros should copy kodi.service to /usr/lib/systemd/system/ and should create both a kodi user and home directory as follows:

 useradd -c 'kodi user' -u 420 -g kodi -G audio,video,network,optical \
   -d /var/lib/kodi -s /usr/bin/nologin kodi
 
 passwd -l kodi > /dev/null

 mkdir /var/lib/kodi/.kodi
 chown -R kodi:kodi /var/lib/kodi/.kodi

Usage

Simply call systemd to start the service:

systemctl start kodi

Dependency List

  • polkit
  • systemd
  • xorg-server with xorg-xinit

Note

Most users should not /etc/X11/Xwrapper.config since the created X server becomes the controlling process of the VT to which it is bound. Most users does not mean all users. There have been reports of some AMD users still requiring this file. As well, users of Xorg's native modesetting driver may also require it.

The recommendation is to first try starting kodi.service without it, but if the service fails to start X, you may need to create /etc/X11/Xwrapper.config which should contain the following:

needs_root_rights = yes

Credit

Note that this service was provided by the Arch Linux maintainers of the official kodi package, but was removed upon the 1.16-1 release of Xorg.