Home / Opinions / How to install XBMC on Raspberry Pi

How to install XBMC on Raspberry Pi

Andrew Williams

by

How to install XBMC on Raspberry Pi

Turn your Raspberry Pi into a media demon

If you want to make your Raspberry Pi or Raspberry Pi 2 into a little media centre, you need a version of XBMC, nowadays known officially as Kodi. As you’re reading this you’ve probably heard of it, but XBMC stands for Xbox Media Center.

We’re going to look at how to get up and running with this great piece of software, and have your Pi boot straight into it so you can treat the Raspberry Pi more like a Now TV box than a little computer.

SEE ALSO: Raspberry Pi 2 vs Raspberry Pi

Step One: Pick your XBMC version

As an open-source piece of software, there’s not just one version of XBMC floating around. There are several for the first-generation Raspberry Pi models.

The most popular are Raspbmc and Openelec, two projects that bring the XBMC software to Raspberry Pi. What’s the difference? For most people, not a great deal. They all use the same media player base, so should be able to handle the same sorts of files.

There are subtle differences in performance and how they use plugins, but you can’t go wrong with either. Openelec works for both generations of Pi, but Raspbmc only works for the older type.

Creator of Raspbmc, Sam Nazarko, has said his software won’t support the Raspberry Pi 2, as development is moving to a newer piece of software called OSMC (Open Source Media Center). You can try this out right now for either generation of Pi, although as it's in Alpha it's less stable than the established flavours of XBMC.

Our tip for Raspberry Pi 2 owners: try out Openelec and OSMC.

Step Two: Download the image

What we’re going to do now is to create a bootable SD card, and the simplest way to do this is to download the software in image form, avoiding having to compile the files ourselves. The .img file will include everything we need.

You’ll find both generations of Openelec Raspberry Pi images over at the Openelec website, and just for the first Pi model over at the Raspbmc download page.

These images are distributed as Gz zip files, which can be opened using the built-in compression utility in OS X, or using 7zip for Windows users. Unzip and drop the .img file in a folder of your choosing, we’ll need it later.

Alternatively, the newer OSMC is available in image form, but also offers a one-button installer that avoids needing any tech know-how at all. It’s available for Mac OS X or Windows, and supports both generations of Raspberry Pi.

OSMC looks to be the future of Raspberry Pi as a media centre, but at present it’s in quite an early state, so we advise checking out both it and Openelec/Raspbmc if you have the time.

Step Three: Prepare the bootable SD card

On Windows

If you’re using a Windows computer, we need to get hold of an application that will let us write the image to the SD card. We’re going to use Win32 Disk Imager, available for free from Sourceforge.

Before writing the image, we’re going to format the card, essentially to ensure it's formatted so the Raspberry Pi can read it properly. It needs to use the FAT file format, although cards use this by default anyway. Download the SD Formatter tool from the SD Association, install and run it.

Make sure you pick the right volume when using the SD formatter, otherwise you may lose an awful lot of important data. Here you can also pick a new name for the card. We recommend a volume name you’re not going to mistake for anything else: PIXBMC, perhaps. Select Overwrite Format in the app then set it formatting. This will take a good few minutes if you’re using a larger-capacity card.

Next, run Win32 Disk Imager and select the .img file we downloaded earlier. This will write all the required data to the card. But as when formatting, make sure you select the right drive before doing so. Giving the SD card a clear label during formatting is one way to help out here.

When the image has finished writing, eject the card before removing it. This is done by right-clicking on it and selecting Eject in Windows Explorer.

On OS X

The first thing we need to do is to prep our SD card by formatting it. We’re going to use the SD Formatter tool from the SD Association.

Run it, select Overwrite Format and pick a new name for your card. Choose something easily recognisable.

Hit the Format button and wait: it can take a while for larger cards.

Next we need a utility to let us write the SD image downloaded to the card. You can do this with command line prompts, but there’s a little graphical tool that's much friendlier to use. It’s called RPi-SD Card Builder, and takes away any need for tech know-how.

Run this app, select the image we downloaded earlier and it’ll do the rest of the hard work. Before removing the card from you Mac, right click its entry in the Finder window and select Eject to ensure there’s no data corruption on yanking the thing out.

Step Four: Install OSMC

As it has a dedicated installer, producing an OSMC card is a lot simpler. All you need to do is to format the card using the SD Formatter tool as above then run the installer app.

Part of this process lets you choose the generation of Raspberry Pi you’re using, and the software does the rest. As with the other installations, though, make sure you eject the card before taking it out of your laptop/PC.

OSMC

Step Five: Finishing up and alternative methods

Once your card is prepped, you can just put it in the Raspberry Pi and get going. However, there are other methods you may want to explore, especially if you don’t want your Pi to just run XBMC/Kodi/OSMC and nothing else.

NOOBS is an SD card image that allows installs of multiple packages at once, including Raspbian and the most popular XBMC clients. As the name suggests, it’s there for people who don’t really know what they’re doing with Linux, the software upon which Raspbian is based.

To get on board with NOOBS, just download the image from the Raspberry Pi website and write it to an SD card, just as we did with the other images above. It will then boot up into a menu system that lets you pick the packages you want to install.

The downside of this approach is that you don’t get the seam-free experience on offer in something like Raspbmc, but it is a lot better for tinkering with, meaning you don’t need a whole bunch of SD cards on hand.

MattMe

February 25, 2015, 4:25 pm

I have a question.
I've longed for a HTPC for years, but with the Pi and intel Compute Stick (as well as others) arriving it's starting to make much more sense to me. As such I'm a newbie.

My question is with the XBMC being aimed at playing locally stored files, how do you (legally) get hold of the new films and series' like shown in your screenshots here?
I have a Netflix and Amazon Prime account - can I download from them, or stream even?

MikeL

February 25, 2015, 5:37 pm

you would probably have to install Linux and not use XMBC and stream through a browser like any other PC. Someone correct me if I'm wrong.

MattMe

February 25, 2015, 5:39 pm

I thought as much, but does that mean that primarily you're looking at illegal downloaded films/programmes to make use of these then?

MikeL

February 25, 2015, 6:13 pm

a lot of commercial DVDs and Blu Ray discs comes with a digital version that you can download and save locally.

MattMe

February 26, 2015, 9:36 am

That's true. A few of mine come with the Ultra-Violet card in the sleeve, allowing you to download the film.
I'm not being purposefully awkward, and I'm well aware pirating TV and film is not uncommon, I was more curious seeing as though I already subscribe to both major streaming services.

Kaplan

February 26, 2015, 12:11 pm

Since you have Netflix and Amazon Prime, have you considered a Fire TV (currently £64)? It's a powerful box, and I don't think there's anything better for streaming from those too, plus you can sideload XBMC/Kodi onto it, which works really well for streaming local media.

I used raspbmc on a first-gen RPi for quite a long time, and recently replaced it with a Fire TV box with XBMC/Kodi. Much as I love the RPi, and the great work behind raspbmc, the new set up works much better for me.

MattMe

February 27, 2015, 8:35 pm

You're probably right.
I'm considering an Intel Compute Stick when they're released. That way I get a full-blown PC, browser, access to streaming sites and my NAS, all on my TV.
Probably be quite a lot more expensive than a fire TV or Pi though.

MikeL

March 25, 2015, 3:36 pm

get the Fire TV stick for £19 (for prime members) runs Plex which is available for most platforms if you want to stream local files.

Paul D

April 6, 2015, 1:50 am

I installed OSMC on my Raspberry Pi (v1) successfully. I can't access my NAS though via the Find Files under Movies and TV Series, any tips to discovering my network?

comments powered by Disqus