HOWTO: Install Kodi on Raspbian
Posted: Thu Feb 12, 2015 1:57 pm
Update September, 6th, 2017: A lot of information in this thread is deprecated. rascas (kodi package provider) has started a new tutorial which should be used in the future: viewtopic.php?f=66&t=192499
Edit March, 28th, 2016: This update is long overdue
If you want to have the best of both worlds (Raspbian and XBMC, now called Kodi) without having to install different operating systems or using multiple SD cards, you can install Kodi on Raspbian. Here's an easy way how to do that.
kodi 15.2 is now available from the Raspbian repository. For other versions (in some ways optimized 15.x versions or kodi-16) see here: viewtopic.php?f=66&t=109088&hilit=kodi
Installation from the repository:
We have to create the group "input" if it doesn't exist.
Install kodi
Create & edit the following file:
enter the following text and save it:
Create & edit the following file:
enter this text and save it:
run the following commands for user pi (if you haven't changed your user name):
To play full HD video in Kodi, you have to set
gpu_mem=160
in /boot/config.txt (or higher)
Start kodi from the command line with:
Solving some additional possible problems
1) See the following post for patching kodi's desktop file
2) For better keyboard support:
Add to /etc/init.d/rc.local:
3) If you still have problems with a black screen after leaving kodi, you might try my "startkodi" script:
viewtopic.php?f=28&t=139758&p=927086
Edit March, 28th, 2016: This update is long overdue
If you want to have the best of both worlds (Raspbian and XBMC, now called Kodi) without having to install different operating systems or using multiple SD cards, you can install Kodi on Raspbian. Here's an easy way how to do that.
kodi 15.2 is now available from the Raspbian repository. For other versions (in some ways optimized 15.x versions or kodi-16) see here: viewtopic.php?f=66&t=109088&hilit=kodi
Installation from the repository:
Code: Select all
sudo apt-get install kodiCode: Select all
sudo addgroup --system input
Code: Select all
sudo apt-get update
sudo apt-get install kodi
Code: Select all
sudo nano /etc/udev/rules.d/99-input.rulesCode: Select all
SUBSYSTEM==input, GROUP=input, MODE=0660
KERNEL==tty[0-9]*, GROUP=tty, MODE=0660
Code: Select all
sudo nano /etc/udev/rules.d/10-permissions.rulesCode: Select all
# input
KERNEL=="mouse*|mice|event*", MODE="0660", GROUP="input"
KERNEL=="ts[0-9]*|uinput", MODE="0660", GROUP="input"
KERNEL==js[0-9]*, MODE=0660, GROUP=input
# tty
KERNEL==tty[0-9]*, MODE=0666
# vchiq
SUBSYSTEM==vchiq, GROUP=video, MODE=0660Code: Select all
sudo usermod -a -G audio pi
sudo usermod -a -G video pi
sudo usermod -a -G input pi
sudo usermod -a -G dialout pi
sudo usermod -a -G plugdev pi
sudo usermod -a -G tty pi
gpu_mem=160
in /boot/config.txt (or higher)
Start kodi from the command line with:
Code: Select all
kodi-standalone1) See the following post for patching kodi's desktop file
2) For better keyboard support:
Add to /etc/init.d/rc.local:
Code: Select all
chmod 0777 /dev/tty0viewtopic.php?f=28&t=139758&p=927086