Kodi: Difference between revisions
From fakedWiki
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
** [x] Basic Ubuntu server | ** [x] Basic Ubuntu server | ||
** [x] OpenSSH server | ** [x] OpenSSH server | ||
= Gigabyte GA-F2A88XN-WIFI = | |||
== Install Kodi == | == Install Kodi == | ||
Line 11: | Line 13: | ||
<nowiki>sudo add-apt-repository -y ppa:team-xbmc/unstable | <nowiki>sudo add-apt-repository -y ppa:team-xbmc/unstable | ||
sudo apt-get update | sudo apt-get update | ||
sudo apt-get install -y xinit | sudo apt-get install -y xinit fglrx-updates alsa-utils libva-glx1 libva-egl1 vainfo upower libcurl3 kodi | ||
</nowiki> | </nowiki> | ||
* allow "anybody" to start the X server | * allow "anybody" to start the X server | ||
Line 54: | Line 56: | ||
<nowiki>sudo service kodi start | <nowiki>sudo service kodi start | ||
sudo service kodi stop | sudo service kodi stop | ||
</nowiki> | </nowiki> |
Revision as of 00:44, 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 *-radeon and *-ati
- 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 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) and the soundcard and enable audio passthrough
sudo usermod -aG dialout,audio kodi pactl set-sink-formats 0 "pcm; ac3-iec61937; dts-iec61937; eac3-iec61937"
Enable Audio
- create /etc/asound.conf
pcm.!default { type plug slave { pcm "iec958" } }
Autostart Kodi
- create /etc/systemd/system/kodi.service
[Unit] Description=Job that runs Kodi After=default.target graphical.target getty.target sound.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
- test it
sudo service kodi start sudo service kodi stop