updates for gbm service

This commit is contained in:
graysky 2019-04-29 10:38:00 -04:00
parent 1953328d0f
commit 566e8425b3
3 changed files with 15 additions and 9 deletions

2
MIT
View File

@ -1,4 +1,4 @@
Copyright (c) 2014-2018 graysky Copyright (c) 2014-2019 graysky
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

View File

@ -1,5 +1,5 @@
# kodi-standalone-service # kodi-standalone-service
A systemd service unit to run [Kodi](https://kodi.tv/) in standalone mode without the need for a DE. Systemd service units to run [Kodi](https://kodi.tv/) in standalone mode without the need for a DE. Both X11 and GBM are supported (makes little sense to use Wayland in standalone mode).
## Installation ## Installation
### Arch Linux ### Arch Linux
@ -9,9 +9,9 @@ Arch Linux users can find a PKGBUILD in the [AUR](https://aur.archlinux.org/pack
Users of Arch ARM should NOT use this method as the distro package provides analogous functionality. Users of Arch ARM should NOT use this method as the distro package provides analogous functionality.
### Other distros ### 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: Users of other distros should copy `kodi.service` and `kodi-gbm.service` to `/usr/lib/systemd/system/` and should create both a kodi user and home directory as follows:
``` ```
useradd -u 420 -U -G audio,video -d /var/lib/kodi -s /usr/bin/nologin kodi 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 passwd -l kodi > /dev/null
@ -22,15 +22,21 @@ Users of other distros should copy `kodi.service` to `/usr/lib/systemd/system/`
Note that the kodi user's home directory is `/var/lib/kodi/` in this example, NOT `/home/kodi/` like a regular user. Note that the kodi user's home directory is `/var/lib/kodi/` in this example, NOT `/home/kodi/` like a regular user.
## Usage ## Usage
Simply call systemd to start the service: Simply call the requisite service to start, for kodi-x11:
``` ```
systemctl start kodi systemctl start kodi
``` ```
Or for kodi-gbm:
```
systemctl start kodi-gbm
```
## Dependency List ## Dependency List
* kodi (x11 or gbm)
* polkit * polkit
* systemd
* xorg-server with xorg-xinit * xorg-server and xorg-xinit (for running x11)
* libinput (for running gbm)
## Acknowledgments ## Acknowledgments
Much of the credit for this service goes to the Arch Linux maintainers of the official kodi package. Note that they removed it upon the [1.16-1 release of Xorg](https://git.archlinux.org/svntogit/community.git/commit/trunk?h=packages/xbmc&id=9763c6d32678f3a3f45c195bfae92eee209d504f). Much of the credit for this service goes to the Arch Linux maintainers of the official kodi package. Note that they removed it upon the [1.16-1 release of Xorg](https://git.archlinux.org/svntogit/community.git/commit/trunk?h=packages/xbmc&id=9763c6d32678f3a3f45c195bfae92eee209d504f).

View File

@ -1,5 +1,5 @@
[Unit] [Unit]
Description=Kodi standalone Description=Kodi standalone (X11)
After=systemd-user-sessions.service network-online.target sound.target mysqld.service After=systemd-user-sessions.service network-online.target sound.target mysqld.service
Requires=network-online.target Requires=network-online.target
Conflicts=getty@tty1.service Conflicts=getty@tty1.service