Kodi: Difference between revisions
From fakedWiki
Line 41: | Line 41: | ||
<nowiki>sudo systemctl daemon-reload | <nowiki>sudo systemctl daemon-reload | ||
sudo systemctl enable kodi | sudo systemctl enable kodi | ||
systemctl enable systemd-networkd-wait-online.service | |||
</nowiki> | </nowiki> | ||
* reboot. now. Kodi won't start with the new driver unless you reboot | * reboot. now. Kodi won't start with the new driver unless you reboot | ||
<nowiki>sudo reboot | <nowiki>sudo reboot | ||
</nowiki> | </nowiki> |
Revision as of 02:25, 15 December 2015
Install OS
- Ubuntu 15.10
- New User: Kodi
- Choose
- [x] Basic Ubuntu server
- [x] OpenSSH server
Gigabyte GA-F2A88XN-WIFI
Install Kodi
- make sure you're install the correct driver for your hardware, i need fglrx or Kodi has a constant CPU load of ~100%
- i used the "unstable" PPA, but if you prefer final releases just replace the "unstable" with "ppa"
sudo add-apt-repository -y ppa:team-xbmc/unstable sudo apt-get update sudo apt-get install -y xinit fglrx-updates alsa-utils libva-glx1 libva-egl1 vainfo upower libcurl3 mysql-client kodi
- allow "anybody" to start the X server
sudo sed -i 's/allowed_users=console/allowed_users=anybody/' /etc/X11/Xwrapper.config
- grant the "kodi" user access to serial devices (CEC), the soundcard and to shutdown, reboot, etc.
sudo usermod -aG dialout,audio,sudo kodi
Autostart Kodi
- create /etc/systemd/system/kodi.service
[Unit] Description=Job that runs Kodi After=default.target graphical.target getty.target sound.target network-online.target Wants=network-online.target [Service] User=kodi Restart=always RestartSec=1s ExecStart=/usr/bin/xinit /usr/bin/kodi --standalone -- -nocursor [Install] WantedBy=default.target
- enable the startup script
sudo systemctl daemon-reload sudo systemctl enable kodi systemctl enable systemd-networkd-wait-online.service
- reboot. now. Kodi won't start with the new driver unless you reboot
sudo reboot