Install XBMC on Raspbian
raspbmc
build from source:
install pre-built package using apt-get:
The easiest way to install the package is to add my archive to your system. To do this, store the following in /etc/apt/sources.list.d/mene.list: (this file does not exist before, you need to create it)
deb http://archive.mene.za.net/raspbian wheezy contrib
and import the archive signing key:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key 5243CDED
Then update the package lists:
sudo apt-get update
You can then install it as you would with any other package, for example, with apt-get:
sudo apt-get install xbmc
The user which you're going to run XBMC as needs to be a member of the following groups:
audio video input dialout plugdev tty
The check your current user, use command:
whoami
The command to check if these groups exist:
egrep -i "^groupname" /etc/group
For example find out if audio group exists or not, enter:
egrep -i "^audio" /etc/group
If a group doesn't exist, you need to create it:
addgroup --system input
To check the groups that a user belongs to, use the command:
groups username
or
groups
which check for the current user by default
To add an existing user to an existing group
usermod -a -G group_name user_name
Setup some udev rules to grant it ownership of input devices (otherwise the keyboard won't work in XBMC), by placing the following in /etc/udev/rules.d/99-input.rules:
SUBSYSTEM=="input", GROUP="input", MODE="0660"
KERNEL=="tty[0-9]*", GROUP="tty", MODE="0660"
Running
To run XBMC, run xbmc-standalone from a VT (i.e. not under X). XBMC accesses the display directly and not via Xorg.
If you want XBMC to automatically start when the system boots, edit /etc/default/xbmc and change ENABLEDto 1:
ENABLED=1
You also need to set the user which XBMC should run as (the xbmc user is not automatically created at the moment). Run sudo service xbmc start to test this.