# Raspberry Pi as a Media Center

## Overview

The low cost and full HD video playing capabilities of the Raspberry Pi make it ideal for building your own media center. This will allow you to play music and videos through your Raspberry Pi onto a TV.

![](https://cdn-learn.adafruit.com/assets/assets/000/005/897/medium800/raspberry_pi_xbmc_playing_music.jpg?1396829295)

The advantage of using a Raspberry Pi, is that all the software can be configured and modified in whatever way you want.

In this tutorial we will show you how to set your Raspberry Pi up as a media centre and in [the next tutorial](http://learn.adafruit.com/using-an-ir-remote-with-a-raspberry-pi-media-center/) you will find out how you can use the Raspberry Pi's GPIO connector to add a IR remote facility.

# Raspberry Pi as a Media Center

## Parts

To setup your Raspberry Pi as a media centre, you will need access to a Mac or PC and the following:

  
  
# Raspberry Pi as a Media Center

## Software

Early on in the life of Microsoft's X-box, an open source project was begun to provide software to turn the X-box into a media centre. This project was called XBMC (X-Box media center). Since then this highly successful project has been ported to many different platforms including the Raspberry Pi.

The easiest way to install XBMC on a Raspberry Pi is to use a custom distribution. This means copying a new disk image onto an SD card and putting it into the Raspberry Pi.

There are three commonly used distributions that all use XBMC but provide different ways of setting it up and configuring it for the Raspberry Pi.

- OpenELEC

- Xbian

- Raspbmc

There is not a huge amount to chose between these distributions. In this tutorial I have used Raspbmc, largely because there is an offline distribution (useful if you want to use a WiFi adapter rather than a cable) and because it is easy to get the image file, to copy onto an SD card, whatever you plan to use as a computer on which to make the SD card.

# Raspberry Pi as a Media Center

## Creating an SD Card

To write a disk image onto an SD card, you need to first download the image file onto your Mac or PC from here: [http://www.raspbmc.com/download/](http://www.raspbmc.com/download/)

You can if you like use the UI installer, that is available for Windows and Mac, but as a Raspberry Pi user, it is useful to know how to create an SD card for the Pi for any disk image. For example you will need to do this when trying out a different distribution of Raspbian or Occidentalis.

![](https://cdn-learn.adafruit.com/assets/assets/000/005/898/medium800/raspberry_pi_raspbmc_web_page.png?1396829321)

So, scroll down the page until you get to the section **Just want an image without a fancy installer?**

Then click on the link for **Standalone Image**.

The alternative network image just contains enough of the system to then download the rest of itself once it is installed in the Raspberry Pi. The problem with this is that it requires a network connection to do this, which is fine if you are connected with a network cable, but does not work with a USB WiFi dongle.

By selecting the Standalone image, we will just get everything we need in one go.

Now you have downloaded the disk image, the process is exactly the same as for any other image file, so follow the instructions here on creating an SD card. [http://learn.adafruit.com/adafruit-raspberry-pi-lesson-1-preparing-and-sd-card-for-your-raspberry-pi](http://learn.adafruit.com/adafruit-raspberry-pi-lesson-1-preparing-and-sd-card-for-your-raspberry-pi "Link: http://learn.adafruit.com/adafruit-raspberry-pi-lesson-1-preparing-and-sd-card-for-your-raspberry-pi")

![](https://cdn-learn.adafruit.com/assets/assets/000/005/899/medium800/raspberry_pi_installing_raspbmc_mac.png?1396829352)

# Raspberry Pi as a Media Center

## Connecting Up

Connect your Raspberry Pi to the TV and if you are using a wireless keyboard and mouse, fit the USB dongle.

![](https://cdn-learn.adafruit.com/assets/assets/000/005/900/medium800/raspberry_pi_connecting.png?1396829400)

Similarly your Raspberry Pi will need a network connection so either connect it to your home hub with a patch cable or use a USB WiFi adapter.

# Raspberry Pi as a Media Center

## Configure and Test

Turn everything on and you should find that when the Pi boots, it will take you through a few configuration steps including selecting your language.

![](https://cdn-learn.adafruit.com/assets/assets/000/005/901/medium800/raspberry_pi_xmbc_select_lang.jpg?1396829415)

## Setting up WiFi

If your Raspberry Pi is connected to the Internet using a cable, then it should automatically connect itself to your network using DHCP and find itself an Internet connection.

If however, you want to use a USB WiFi adaptor, then you need to configure this, by using the Raspbmc Setting program, that you will find in the Programs section of XBMC.

![](https://cdn-learn.adafruit.com/assets/assets/000/005/902/medium800/raspberry_pi_raspbmc_settings.jpg?1396829432)

Select the WiFi option and scroll down to enter your SSID (WiFi network name) and WiFi password.

![](https://cdn-learn.adafruit.com/assets/assets/000/005/903/medium800/raspberry_pi_xmbc_wifi.jpg?1396829451)

# Raspberry Pi as a Media Center

## Using XBMC

XBMC is a very full-featured media center and you will enjoy exploring it and discovering all its features. You will find lots of resources on the Internet about how to use XBMC and install add-ons etc.

Just to highlight a couple of features.

A quick way to make sure the Internet connection is working is to select the Weather option.

![](https://cdn-learn.adafruit.com/assets/assets/000/005/904/medium800/raspberry_pi_weather.jpg?1396829471)

XBMC also operates a web server, that means, if you can remote control it through any computer, tablet or phone on the network, just by entering the IP address of your Raspberry Pi.

![](https://cdn-learn.adafruit.com/assets/assets/000/005/905/medium800/raspberry_pi_xmbc_web_remote.jpg?1396829494)

To find the IP address, go to System and then System Info and you will find the IP address listed.

![](https://cdn-learn.adafruit.com/assets/assets/000/005/906/medium800/raspberry_pi_xmbc_ip_address.jpg?1396829512)

In the next tutorial [http://learn.adafruit.com/using-an-ir-remote-with-a-raspberry-pi-media-center/](http://learn.adafruit.com/using-an-ir-remote-with-a-raspberry-pi-media-center/ "Link: http://learn.adafruit.com/using-an-ir-remote-with-a-raspberry-pi-media-center/") we will look at how we can use the Raspberry Pi's GPIO connector to add an Infrared remote to the media center.

  

## Featured Products

### Raspberry Pi Model B starter pack Doesn't include Raspberry Pi 1

[Raspberry Pi Model B starter pack Doesn't include Raspberry Pi 1](https://www.adafruit.com/product/955)
You want to get hacking with your Pi fast, right? Get everything you need to start with the Adafruit Starter Pack for Raspberry Pi. It's the perfect accompaniment to your new Pi, everything you need to get a distro image loaded and running. **We even pre-assemble the Cobbler for you,...**

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/955)
[Related Guides to the Product](https://learn.adafruit.com/products/955/guides)
### USB MicroSD Card Reader/Writer - microSD / microSDHC / microSDXC

[USB MicroSD Card Reader/Writer - microSD / microSDHC / microSDXC](https://www.adafruit.com/product/939)
This is the cutest little microSD card reader/writer - but don't be fooled by its adorableness! It's wicked fast and supports up to 64 GB SDXC cards! Simply slide the card into the edge and plug it into your computer. No drivers are required, it shows up as a standard 'Mass...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/939)
[Related Guides to the Product](https://learn.adafruit.com/products/939/guides)
### 5V 1A (1000mA) USB port power supply - UL Listed

[5V 1A (1000mA) USB port power supply - UL Listed](https://www.adafruit.com/product/501)
Need a USB jack for charging or powering a project, but don't want to lug around a computer? This switching supply gives a clean regulated output at up to 1000mA! 110 or 240 input, so it works in any country. The plugs are "US 2-prong" style so you may need a plug adapter, but...

In Stock
[Buy Now](https://www.adafruit.com/product/501)
[Related Guides to the Product](https://learn.adafruit.com/products/501/guides)
### Ethernet Cable - 10 ft long

[Ethernet Cable - 10 ft long](https://www.adafruit.com/product/730)
We have so many Internet-connected goodies in the shop, we figured it's time to carry a cable so you can easily connect them up! This cable is 10 feet long, black and has all 8 wires installed. Perfect for use with the [BeagleBone](http://www.adafruit.com/products/513), <a...></a...>

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/730)
[Related Guides to the Product](https://learn.adafruit.com/products/730/guides)
### Miniature WiFi (802.11b/g/n) Module: For Raspberry Pi and more

[Miniature WiFi (802.11b/g/n) Module: For Raspberry Pi and more](https://www.adafruit.com/product/814)
Make your Internet of Things device cable-free by adding WiFi. Take advantage of the Raspberry Pi and Beagle Bone's USB port to add a low cost, but high-reliability wireless link. We tried half a dozen modules to find one that works well with the Pi and Bone without the need of recompiling...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/814)
[Related Guides to the Product](https://learn.adafruit.com/products/814/guides)
### USB WiFi (802.11b/g/n) Module: For Raspberry Pi and more

[USB WiFi (802.11b/g/n) Module: For Raspberry Pi and more](https://www.adafruit.com/product/1012)
Make your Internet of Things device cable-free by adding WiFi. Take advantage of the Raspberry Pi and Beagle Bone's USB port to add a low cost, but high-reliability wireless link. We tried half a dozen modules to find one that works well with the Pi and Bone without the need of recompiling...

In Stock
[Buy Now](https://www.adafruit.com/product/1012)
[Related Guides to the Product](https://learn.adafruit.com/products/1012/guides)
### USB WiFi (802.11b/g/n) Module with Antenna for Raspberry Pi

[USB WiFi (802.11b/g/n) Module with Antenna for Raspberry Pi](https://www.adafruit.com/product/1030)
Discontinued - [**you can grab** USB WiFi (802.11b/g/n) Module: For Raspberry Pi and more **instead!&nbsp;**](https://www.adafruit.com/product/1012)

Make your Internet of Things device cable-free by adding super WiFi. Take advantage of the Raspberry Pi and Beagle...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/1030)
[Related Guides to the Product](https://learn.adafruit.com/products/1030/guides)
### Pi Shell - Blue Raspberry Pi Model A or B Case

[Pi Shell - Blue Raspberry Pi Model A or B Case](https://www.adafruit.com/product/1144)
**Like this case but want something a little more protective? [Check out our brand new Adafruit case, its easy to use, great looking, and much more durable as well. All for a great low price, check it out!](http://www.adafruit.com/products/1326)**  
  
 A snap-together...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/1144)
[Related Guides to the Product](https://learn.adafruit.com/products/1144/guides)

## Related Guides

- [Raspberry Pi Wifi-Controlled Cat Laser Toy](https://learn.adafruit.com/raspberry-pi-wifi-controlled-cat-laser-toy.md)
- [Adafruit's Raspberry Pi Lesson 12. Sensing Movement](https://learn.adafruit.com/adafruits-raspberry-pi-lesson-12-sensing-movement.md)
- [Touchscreen Pi Timelapse Controller](https://learn.adafruit.com/touchscreen-pi-timelapse-controller.md)
- [Press Your Button for Raspberry Pi](https://learn.adafruit.com/press-your-button-for-raspberry-pi.md)
- [Getting Started With Windows IoT Core on Raspberry Pi](https://learn.adafruit.com/getting-started-with-windows-iot-on-raspberry-pi.md)
- [Adafruit's Raspberry Pi Lesson 2. First Time Configuration](https://learn.adafruit.com/adafruits-raspberry-pi-lesson-2-first-time-configuration.md)
- [Reverse Engineering a Bluetooth Low Energy Light Bulb](https://learn.adafruit.com/reverse-engineering-a-bluetooth-low-energy-light-bulb.md)
- [Embedded Linux Board Comparison](https://learn.adafruit.com/embedded-linux-board-comparison.md)
- [Onion Pi](https://learn.adafruit.com/onion-pi.md)
- [Using an External Drive as a Raspberry Pi Root Filesystem](https://learn.adafruit.com/external-drive-as-raspberry-pi-root.md)
- [Adafruit PiTFT 3.5" Touch Screen for Raspberry Pi](https://learn.adafruit.com/adafruit-pitft-3-dot-5-touch-screen-for-raspberry-pi.md)
- [Windows IoT Core Application Management](https://learn.adafruit.com/windows-iot-application-management.md)
- [TMP006 Temperature Sensor Python Library](https://learn.adafruit.com/tmp006-temperature-sensor-python-library.md)
- [Resizing the Raspberry Pi Boot Partition](https://learn.adafruit.com/resizing-raspberry-pi-boot-partition.md)
- [Simple Raspberry Pi Robot](https://learn.adafruit.com/simple-raspberry-pi-robot.md)
