Improve Apple TV 2 (5.2) with a Jailbreak & XBMC
The Apple TV is a great living room accessory, but many with media center and home theater PC experience prefer more powerful apps like Plex and XBMC for their additional features and broader video codec support. With XBMC you can play almost any video or audio format, access shared network drives for network playback, accept media streams from a LAN or the internet, install new user themes (skins), display weather and news information, and basically serve as a full fledged multimedia jukebox.
Thanks to the wonderful world of jailbreaking, you can now install the excellent free XBMC software on an Apple TV 2 running 5.2 (Apple TV 5.2 software shipped alongside iOS 6.1 for other idevices) and help to unleash the devices full potential as a home theater device. Getting it all up and running is slightly more complicated than your average jailbroken app installation process because there’s no Cydia, and you’ll be required to SSH into the ATV and then use a package manager to retrieve and install the appropriate XBMC files. But it’s really not too complicated, so follow along and you’ll be able to get it done in short order.
Requirements
- Apple TV 2nd generation
- Update the Apple TV 2 to version 5.2 (iOS 6.1) if you haven’t done so yet
- Download Seas0nPass (Mac OS X) (Windows)
- USB cable to connect the Apple TV to a computer to perform the jailbreak
- SSH client (Terminal for Mac OS X, PuTTY for Windows)
Unfortunately, the Apple TV 3rd generation is not yet jailbroken and thus can not accept an installation of XBMC. Jailbreaking an Apple TV with Seas0nPass is very easy and fairly similar to the Evasi0n tool for mobile iOS devices, you’ll need to physically connect the Apple TV to a computer to perform the jailbreak. With base requirements met, you are ready to proceed.
Jailbreaking Apple TV 2 Running 5.2 (iOS 6.1)
- Open Seas0nPass
- Choose “Create IPSW” and let Seasonpass build the jailbroken IPSW to install, then follow on screen instructions to connect the Apple TV 2 to the computer via USB when requested
- Put the Apple TV into DFU mode by using the ATV remote to hold down both MENU and PLAY buttons for 7 seconds
- iTunes will launch to restore the Apple TV to the newly made jailbreak IPSW, continue to follow onscreen instructions from Seas0npass
Apple TV will reboot and you will know Seas0nPass has been effectively installed because the Settings icon on the Apple TV home screen is temporarily replaced with a red “FC” logo.
Now for the good part, installing XBMC.
Installing XBMC on the Apple TV 2 (5.2)
Before beginning, find the Apple TV’s local IP address by doing the following:
- Go to “Settings” then “General” then “Network”
- Make a note of the ATV IP address, you will need this to SSH into the device and install XBMC
From a Mac (or Windows PC), open a new Terminal window and use SSH to connect to the Apple TV as root user using the IP you just retrieved:
ssh root@appletv-ip
The default password for Apple TV is “alpine” without the quotes, just like all iPads, iPhones, and iPods. It will be “alpine” unless you changed it at some point.
Now that you are logged into the Apple TV remotely, the installation process begins. The official method from XBMC outlined below uses the command line, though the XBMC Wiki offers an alternate method if you’re adventurous.
apt-get install wget
wget -O- http://apt.awkwardtv.org/awkwardtv.pub | apt-key add -
echo "deb http://apt.awkwardtv.org/ stable main" > /etc/apt/sources.list.d/awkwardtv.list
echo "deb http://mirrors.xbmc.org/apt/atv2 ./" > /etc/apt/sources.list.d/xbmc.list
apt-get update
mkdir -p /Applications/AppleTV.app/Appliances
apt-get install org.xbmc.xbmc-atv2
mkdir -p /Applications/XBMC.frappliance
reboot
The Apple TV will reboot and you’ll now have the lovely XBMC media center app running on it.
Installing Plugins & Custom Skins in XBMC on Apple TV
You’ll need to use the Terminal or SFTP (either with an app like Cyberduck or from the OS X Finder sFTP feature) to install custom skins on an Apple TV running XBMC but it’s not complicated if you’ve made it this far. Connect to the ATV using root@ip-address and then navigate to:
/private/var/mobile/
Place the zip files into that directory, then from XBMC navigate to “Add Ons” and use “Install from Zip”
Alternatively, you can unzip skins and plugins on the computer then use scp or SFTP to copy them directly into their appropriate plugin or skin directories.
Skins can look really great and are free to download from XBMC.
Confluence is a great looking subtle skin that became the default, and AEON is a popular third party choice, though it hasn’t been updated in quite some time.
Uninstall XBMC from Apple TV
Decided you’re not a fan of XBMC? No big deal, it’s much easier to uninstall then to install. Log into the Apple TV again using SSH:
ssh root@appletv-ip
Now use the apt-get packaging tool to uninstall XBMC:
apt-get remove org.xbmc.xbmc-atv2
Finally, reboot the ATV again:
reboot
The Apple TV2 will reboot without XBMC.
Uninstalling XBMC does not undo the jailbreak on the Apple TV. If you want to unjailbreak the Apple TV, you would need to connect it to iTunes running on a computer, and use the “Restore” feature to return it to factory settings.
What is XBMC Anyway?
For some history, XBMC is short for “Xbox Media Center”, yes, Xbox, as in the Microsoft game console. XBMC was originally built for modded xboxes to turn them into media centers, but it has since evolved into a cross-platform compatible media center app that runs directly on top of just about anything, from Mac and Windows computers to the Raspberry Pi. The latest versions of XBMC include support to function as AirPlay receivers both for streaming video and audio from iTunes, so you won’t lose those iOS designed features by using XBMC, but unlike Apple TV’s default software, it can flawlessly play mkv files directly on the ATV (or desktop) without struggling.
XBMC has been able to run on jailbroken Apple TV’s for a while, but this is the first time it’s been available on the latest 5.2 software update.
Iam getting this after i put in my ip address
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
Can you still use itunes ?
I was told last week that if you upgrade to 6.1 and then JB your ATV2 that XBMC will not work. That for me is the only reason TO Jailbreak. Are you positive this new info is correct. I don’t want to lose XBMC.
This works with the 2nd generation Apple TV, both XBMC and Seasonpass were updated to accomodate this. Here is a brief entry on the official XBMC blog discussing this:
http://xbmc.org/natethomas/2013/02/22/xbmc-now-available-on-ios-6-1-for-apple-tv/
That said, if you have no compelling reason to update, there isn’t much reason to: “If it ain’t broke, don’t fix it”
I’ve done this mainly to use Amazon Prime streaming (via a 3rd-party plug-in). It works moderately well.
One thing I would like to know is if the new XBMC audio engine will enable streaming of music that has a higher sampling frequency than 48KHz. Anyone have that working?
Ahh wish someone would jailbrake the 3 soon.