Raspberri PI - Install XBMC on your debian wheezy

Oscar Brito




XMBC for raspberry has a linux distrubution called Raspbmc that works quite well, which I did not test, because I've already have Debian Wheezy up and running with my stuff.

The problem is installing XBMC in Debian Wheezy:

1) Follow the instructions in http://www.memetic.org/pre-compiled-xbmc-for-raspbian/ where you download and "install" a compiled XBMC for raspberry (with OpenGLES configured).

2) Create a boot instruction for your XBMC installation:

> sudo vim /etc/init.d/xbmc


#! /bin/sh

### BEGIN INIT INFO
# Provides: xbmc
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts instance of XBMC
# Description: starts instance of XBMC using start-stop-daemon and xinit
### END INIT INFO

############### EDIT ME ##################

# path to xinit exec
DAEMON=/usr/bin/xinit

# startup args
DAEMON
OPTS=" /usr/lib/xbmc/xbmc.bin --standalone -- :0"

# script name
NAME=xbmc

# app name
DESC=XBMC

# user
RUNAS=pi

# Path of the PID file
PID
FILE=/var/run/xbmc.pid

############### END EDIT ME ##################

test -x $DAEMON || exit 0

set -e

case "$1" in
start)
echo "Starting $DESC"
start-stop-daemon --start -c $RUNAS --background --pidfile $PIDFILE --make-pidfile --exec $DAEMON -- $DAEMONOPTS
 ;;
stop)
echo "Stopping $DESC"
start-stop-daemon --stop --pidfile $PID
FILE
 ;;

restart|force-reload)
echo "Restarting $DESC"
start-stop-daemon --stop --pidfile $PIDFILE
sleep 5
start-stop-daemon --start -c $RUN
AS --background --pidfile $PIDFILE --make-pidfile --exec $DAEMON -- $DAEMONOPTS
 ;;
*)
N=/etc/init.d/$NAME
echo "Usage: $N {start|stop|restart|force-reload}" >&2
exit 1
 ;;
esac

exit 0

> sudo chmod a+x /etc/init.d/xbmc
update-rc.d xbmc defaults

Done. You've a bootable media center with a linux box inside.

The problem with this solution is xbmc updates. It's precompiled package, then no ap-get update available.




Visit www.divhide.com for more informations, contacts and news about Web Development.
See other blog posts at blog.divhide.com.



Divhide purpose is to follow the HTML5 movement and contribute with applications which prove the quality of technology.


Feel free to contact divhide.