kodi (was xbmc) standalone

kodi (was xbmc) standalone

ubuntu 16.04 hw2018 kodi tvheadend

Just in case you have:

  • A computer with an HDMI and USB port
  • A TV (with HDMI and CEC)
  • An USB-CEC Adapter
  • And optionally:
    • 40 meters of cat 5e cable
    • A HDBaseT transmitter and receiver

Here is how to autostart kodi.

Packages

sudo add-apt-repository ppa:team-xbmc/ppa
sudo apt-get update
sudo apt-get install kodi xserver-xorg

Automatic start

Edit (create) /etc/X11/Xwrapper.config:

needs_root_rights = yes
sudo -i
sudo groupadd kodi
sudo useradd -c 'kodi user' -u 420 -g kodi -G audio,video,dialout -d /var/lib/kodi -s /usr/bin/nologin kodi
passwd -l kodi > /dev/null
mkdir -p /var/lib/kodi/.kodi
chown -R kodi:kodi /var/lib/kodi
cd /lib/systemd/system
wget https://raw.githubusercontent.com/graysky2/kodi-standalone-service/master/init/kodi.service
exit
sudo systemctl daemon-reload
sudo systemctl enable kodi --now

~~~

Question, remark, bug? Don't hesitate to contact me or report a bug.