XBMC (Xbox Media Center) is a great media center for anyone’s home entertainment center. It allows you to pull videos from your other computers, servers as well as being able to plug a flash drive and play from there! XBMC is available for just about all operating systems and the RaspberryPi is no different.
There are many different Operating Systems that comes pre-installed with XBMC. This is good if all you will be using your RaspberryPi for is a media center. Since I am building my current image as a complete server, gaming, media package I want to install it on top of the image I am already building. Back in 2012 I found a blog entry (found here) that seemed to be the easiest way possible to install XBMC with just a few steps!
Start by going into the sources.list.d directory with
|pi@raspberrypi ~ $ cd /etc/apt/sources.list.d|
If this directory doesn’t exist then simply create it with:
|pi@raspberrypi /etc/apt/sources.list.d $ sudo mkdir /etc/apt/sources.list.d|
Once in edit or create a file called mene.list with:
|pi@raspberrypi /etc/apt/sources.list.d $ sudo nano mene.list|
In that document add the following line:
|deb http://archive.mene.za.net/raspbian wheezy contrib|
Save and exit the document.
You now have to imports the signaling key with:
|pi@raspberrypi /etc/apt/sources.list.d $ cd
pi@raspberrypi ~ $ sudo apt-key adv –keyserver keyserver.ubuntu.com –recv-key 5243CDED
(Note: there are two dashes in front of keyserver and recv-key, in some browsers they seem to merge together!!)
and update all the packages on the RaspberryPi with:
|pi@raspberrypi ~ $ sudo apt-get update|
With this you can now install XBMC like any other package with:
|pi@raspberrypi ~ $ sudo apt-get install xbmc -y|
Once done you are all set! I rebooted my Pi with
|pi@raspberrypi ~ $ sudo reboot|
and when it loaded I was able to get into XBMC from the terminal with
|pi@raspberrypi ~ $ sudo xbmc -fs|
I run it with sudo because some of the directories I store media in has root privileges and so I don’t have to worry about adding other users to some groups. I run it with -fs because since the 13.0 Gotham update when I loaded it without -fs I would only get a small window for the GUI but the videos would still play correctly.
Update: with the new XBMC versions the above command no longer works. Using the following command will load XBMC:
|pi@raspberrypi ~ $ sudo kodi|