Ad: Get our free CNET iPhone and iPad app

How to turn your Raspberry Pi into an XBMC media centre

CNET How To

The Raspberry Pi is a bargain mini computer that's designed to get kids into programming. It sells for just £22 and includes an HDMI socket so you can connect it to a TV. With Ethernet and USB ports on board too, you can easily turn it into a cheap-as-chips media streamer for watching online TV catch-up services like iPlayer and 4oD.

I'm going to show you the easy way to do this and how to get the XBMC media centre software (known as Raspbmc) running on your Raspberry Pi.

You won't need any knowledge of Linux or programming to get it to work. In fact, all you'll need is an SD card to install the software onto via your Windows PC, plus a USB keyboard to quickly change some settings on your Pi to allow you to use your smart phone or tablet as a remote control.

The SD card needs to be at least 2GB in size. For best performance, it should be a Class 6 card or faster. Okay, let's get cracking.

Step 1: Grab the Windows installer

How to turn your Raspberry Pi into an XBMC media centre: 1

The first thing you need to do is download the Windows installer here. I experienced problems with the site being down on one occasion when I visited -- if you have a similar problem, download it here instead. Once you've got it on your computer, unzip the compressed file (you can use a program such as Winzip to do this -- get a free trial here). Before running the software, it's best to remove any USB drives or other memory cards from your system. Then plug the SD card you're going to use with your Raspberry Pi into your computer's card reader.

Step 2: Prepare your SD card

How to turn your Raspberry Pi into an XBMC media centre: 2

Double-click on 'installer' to run the program. It will show you any removable drives attached to your system. Make sure your SD card is shown and then tick the box next to it. If more than one drive is shown here, and you're not sure which drive to select, exit the program and find out which option relates to your SD card via Windows Explorer.

If you don't do this there's a chance you could overwrite a disc instead of copying the software to your memory card. That would be a very, very bad mistake (you'd lose all your data and then have a little cry).

Step 3: Install the software

How to turn your Raspberry Pi into an XBMC media centre: 3

With your SD card selected, click on the Install button. The software contacts the Raspbmc servers and starts downloading the latest version to the SD card. This isn't always reliable as the servers are sometimes down. I had to try it a couple of times to get it to work. When the download has been completed successfully, a window should pop up saying "Congratulations". If this doesn't happen, the download has failed, so try again.

Step 4: Connect the cables

How to turn your Raspberry Pi into an XBMC media centre: 4

Now the fun really begins! Take the card out of your computer and insert it into the SD slot on the Raspberry Pi. You can't really go wrong with this as the grooves on the slot only allow you to insert the card if it's the correct way up. Connect up your HDMI and Ethernet cables and then attach the micro-USB power cable.

Step 5: Downloading from the Raspbmc server

How to turn your Raspberry Pi into an XBMC media centre: 5

The Raspberry Pi will start up and show some lines of text on your TV to indicate that it's reading the SD card and setting itself up. It will then contact the Raspbmc server and start downloading the Root File System before unpacking the files and installing them on the SD card.

This takes a while, so be patient. If the progress bar on the downloader doesn't update, power down the Pi and start it up again. If this doesn't solve the problem, remove the SD card, return to your computer and run the installer again as the transfer may not have worked properly.

Step 6: Plug in your keyboard

How to turn your Raspberry Pi into an XBMC media centre: 6

Once the install has finished, the Pi should display the Raspberry Pi splash screen and then boot into the XBMC user interface. Naturally, you need a way to navigate around the interface. You can use a tablet or smart phone as a remote control but first you have to configure XBMC to recognise it.

To do this you need to attach a USB keyboard to your Pi. Once it's connected, use the arrow keys to move to the Settings option and then hit the Return key. Select Services and press Return. Scroll down to Webserver, hit the right cursor key to select 'Allow Control of XBMC via HTTP' and hit Return to activate the setting. You can now disconnect the keyboard.

Step 7: Smart phone or tablet remote control

How to turn your Raspberry Pi into an XBMC media centre: 7

I'm going to use an iPad to control XBMC on the Pi, but there are free software remote control apps available for most mobile platforms including these for iOS and Android. I couldn't get the two free ones for Windows Phone to work but you could use this cheap plug-and-play remote instead.

On the iPad or iPhone, go to the App Store and download the free Official XBMC Remote. Start it up and tap on the box at the bottom of the screen (next to the volume control), and select 'XBMC(raspbmc)'. Now tap the 'Use as Remote Control' button and you can navigate XBMC using the touchpad remote that appears on the screen.

Step 8: Get the plug-ins

How to turn your Raspberry Pi into an XBMC media centre: 8

Okay, it's time to install the add-ons that will allow you to access the video-on-demand services from the UK's terrestrial broadcasters. Download the 4oD plug-in here, grab BBC iPlayer here, get ITV Player here, and finally, download Demand 5 here.

Step 9: Install video-on-demand services

How to turn your Raspberry Pi into an XBMC media centre: 9

Do not unzip these files, but simply copy them to a USB memory key and insert it into either of the Pi's two USB ports. Tap the Home button on the remote and go to System, Add-ons and select 'Install from Zip File'. Tap the central button on the remote and choose your USB key from the list. It should be the first entry. When the file browser opens select the 4oD file and press OK. Wait a few seconds and you should see a '4oD Add-on Enabled' message at the bottom of the screen.

Repeat the process for the three other files. That's it -- you can now access these plug-ins by tapping the Home button on the remote, before selecting Movies and then Add-ons. If you want to play back videos from USB drives, just select the Files option instead.

Let me know how you get on in the comments or over on Facebook, and if you want to know more about Raspberry Pi, watch our video below.

Comments 24

Add your comment

anonymous's avatar

anonymous 12 July, 2012 18:12

Should check out Openelec it runs on my RPi much faster as Raspbmc. http://sources.openelec.tv/tmp/image/openelec-rpi/

anonymous's avatar

anonymous 12 July, 2012 18:24

I agree with the OpenELEC recommendation. Very nice setup they have.

anonymous's avatar

anonymous 12 July, 2012 18:50

Not at all stable on my Pi. Barely works for 30 sec before crashing. Maybe the wired mouse/keyboard drivers are iffy and remote control essential?

anonymous's avatar

anonymous 12 July, 2012 19:33

I've used OpenELEC before on a windows media server but I can't seem to find a install guide for Windows. Any suggestions?

anonymous's avatar

anonymous 12 July, 2012 20:40

Have had good success with XBMC on my Rpi, have done everything listed above, plus set up streaming from the media centre to other devices. Great stuff :)

anonymous's avatar

anonymous 12 July, 2012 21:00

Anyone know how you get wifi dongles to work on OpenELEC? Works in Debian but not OpenELEC...

anonymous's avatar

anonymous 12 July, 2012 21:06

Another vote for Openelec. Everything worked, with Raspbmc the remote didnt work (mce). Once this has been sorted I might try it again..

anonymous's avatar

anonymous 12 July, 2012 21:49

anonymous 12 July, 2012 19:33

How did you get Windows working on a Pi?

anonymous's avatar

anonymous 12 July, 2012 23:35

look on YouTube for "raspbmc rc3 demonstration" to see just how fast it is. Would be better to like to repos for plugins for automatic updates and you've forgotten about tvcatchup which provides like uk TV.

anonymous's avatar

anonymous 12 July, 2012 23:47

Please credit the Dev of raspbmc! He has put many many hours of effort in (and continues to do so).

anonymous's avatar

anonymous 13 July, 2012 01:25

I've tried them both and as at a short while ago RaspBMC was a lot snappier than OpenELEC. Saying that, I need to revisit OpenELEC to retry it. However there has been a lot of work been done on RaspBMC to resolve various issues and it runs all day for me (for 8 or 9 hours, continuously) without any problems. There are installers for RaspBMC for Windows, Linux and OS/X, and I think the first release should be fairly soon (it's currently on RC4).

In response to the "how did you manage to run Windows on the Pi" - that is the Windows installer for RaspBMC, however someone has (IIRC) managed to get Windows 98 running on one.

anonymous's avatar

anonymous 13 July, 2012 03:58

Just created another guide on how too install raspbmc, but also a guide on how to set up your wii remote with RASPBMC, check it out, htpp://frost-software.com

anonymous's avatar

anonymous 13 July, 2012 04:00

Also i created a guide for people using mac, http://frost-software.com

anonymous's avatar

anonymous 13 July, 2012 09:07

The trouble with OpenElec it that it is closed, there's no way to add support for WiFi cards etc. At least with RaspBMC you have a fighting chance of modifying it for your needs. Plus I believe the RC4 version will have a lot more support for WiFi.

Peter Andrews's avatar

Peter Andrews 13 July, 2012 12:28

It didn't take long to download the zip file open it and put the installer on an SD card using macbook with ddgui. Put the SD card into the raspi, share internet connection from macbook and let it go. I've installed the players. Just having a problem controlling the audio output level. I've been streaming BBC6 Music, using iPlayer and watching videos on ARTE TV. Really impressive software and kit. Thanks to all who are working on this.

anonymous's avatar

anonymous 13 July, 2012 17:05

Hats off to them, exactly what I was planning to do mine. If this is pushed, you could get a Smart TV for under £30 and a bit of graft on the code. ;)

shauney3's avatar

shauney3 13 July, 2012 21:14

It's nice to look at the comments and read an adult conversation =)

Peter Andrews's avatar

Peter Andrews 15 July, 2012 08:53

Having problems using the Live streams for BBC TV channels. Keeps coming up with script error. Any help would be appreciated.

anonymous's avatar

anonymous 15 July, 2012 23:32

I installed it to the SD card, and it partitioned the SD card, then downloaded the root file system, but now it is cycling 3 pages, the Raspbmc image, "Relax, XBMC will resume shortly..." and the bluw insaller page which has 6 lines of text, first line is "cannot stat 'xmbc-rbp-20120620.tar.gz': no such file or directory" the middle text box says it is trying to update.
Not sure if this is a start from scrat thing or if the servers are down where it is trying to download the update.
I'm new to Linux btw, total novice, great guide/article though!

anonymous's avatar

anonymous 17 July, 2012 12:01

I had loads of problems with raspbmc crashing until I read the FAQ and realised that the USB power form my TV wasn't enough to keep it going properly. Using a proper power supply has transformed it. Great for storing programmes for the kids to watch without having to get past the babyproofing on the DVD cabinet.

Klaptrap Von Spilldabeanz's avatar

Klaptrap Von Spilldabeanz 19 July, 2012 15:59

Hi.
Everything goes ok with the download until I get a small window stating:

Raspbmc installer
formatting partitions...
(Please be patient)

And that's that.I left it for nearly an hour and nothing happened to retried with a reboot as suggested.
The initialisation went perfectly (apparently) again connected to the server and then i got the same 3 line window alert again.

Any ideas welcome
KvS

Klaptrap Von Spilldabeanz's avatar

Klaptrap Von Spilldabeanz 19 July, 2012 16:40

Oooops - panic over.
Apparently I didn't wait long enough. It took over 50 minutes!

Klaptrap Von Spilldabeanz's avatar

Klaptrap Von Spilldabeanz 19 July, 2012 18:54

Well so far so good. Streaming video from Fox news and US space centre working faultlessly.
Tomorrow, if I get the time then I'll be adding the iplayer, itvplayer, 4oD and Demand5 zip files.
The comes the biggie of getting it up and running via my wifi dongles followed by using my galaxy as a remote control. Good so far though.
Many thanks to the people who have written and developed XBMC and finally showed that the Raspberry Pi can 'do' something other than be a portal for hacked, tedious games!
I'd like to run SDR software on it but that's WAY out of my league to even consider trying myself.

anonymous's avatar

anonymous 24 July, 2012 13:33

Hi, I have this problem, the boot is stop at the line "cannot remove 'xmbc-rbp-20120620.tar.gz': no such file or directory". Any ideas ?
Thanks.

Post your comment

Log in with your CNET UK or Facebook account to post a user review, or click Join to create an account

Your email will not be displayed with your comment

Copy the letters and numbers to prove that you're human. You won't have to do this if you log in or register

Your comment must comply with the Terms of Use

About CBS Interactive

Copyright © 2012 CBS Interactive Limited. All rights reserved.