*ATTENTION*

This tutorial may or may not work, there is a more up to date one here:

http://tutorialninjas.net/2009/01/09/install-boxee-on-apple-tv/

This guide will help you with the following:

  • Disabling the Firewall
  • Enabling SSH & VNC
  • Playing xvid/divx encoded stuff
  • Stopping Watchdog
  • Running Applications(Firefox, Centerstage, etc)
  • Installing Quart

What you will need:

  • 1 Computer(pref. Intel Mac)
  • a torx 10(for the case) and a torx 8(for the hard drive)
  • A way to hook up a 2.5” hard drive to your computer(can be found at bestbuy or radio shack ask for a “2.5” hard drive enclosure”
  • A method of SSHv1 into a box(linux and mac have built in, windows can use putty get Putty and pSFTP)

Notice: This will require opening up your precious aTV however, I talked to people for about 48 hours straight and have not heard of one incident in bricking(breaking the console) so it is fairly safe, only wierd side effect was on non x86/x64 architecture. I can guide you through it personally if you need it as long as I don’t get overwhelmed. However I take no responsibility for any actions in this guide, it was a educational project for me.

The How-To

  1. Gaining physical access to the hard disk

    1. Flip the unit upside down and start pealing off the matt at the corners. You can always buy a sprayable adhesive to fix the matt being lose, if you wish. This is the torx 10.
    2. Now it would be smart to unscrew the hard disk the screws are also under the matt which means you need to peal the a little more of the area off you should see some of the extra screws when you peal the corners, this is a torx 8.
    3. Now take out the hard disk, and unplug the cable.
    4. Hook the hard disk up to your pc
  2. Disabling the firewall:
    1. Create the directory: /Volumes/OSBoot/System/Library/StartupItems/fw/ the apple tv’s your hard disk.
    2. Create the file StartupParameters.plist in this folder with the contents
      • {
        Description = “Firewall”;
        Provides = (”Firewall”);
        Requires = (”Network”);
        OrderPreference = “None”;
        }
    3. Now create the file fw in the same directory with the following
      • #!/bin/sh
        /sbin/ipfw -f flush
        /sbin/ipfw add 65535 allow ip from any to any
  3. Enabling SSH
    1. Obtain a intel build of sshd, this is at the /sbin folder of a intel mac
    2. Copy it to /Volumes/OSBoot/usr/sbin/
    3. obtain the file called: ssh.plst(here) and copy it to the hard disks “/System/Library/LaunchDaemons/” folder
    4. You can now access the command line of your box once you assemble it, the password will be frontrow for everything:
      1. ssh -1 frontrow@IP.Of.Your.aTV
      2. sfto -1 frontrow@IP.Of.Your.aTV
    5. Assemble the aTV back up, we have full access to the HD(except recovery partition) so there is no need to take it out again
  4. Enable VNC
    1. SSH into your atv and run the following commands:
      • echo 71463E00FFDAAA95FF1C39567390ADCA > /Library/Preferences/com.apple.VNCSettings.txt
      • sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart \
        -configure -clientopts -setvnclegacy -vnclegacy yes
      • sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart \
        -activate -configure -access -on -users admin -privs -all -restart -agent -menu
    2. Get Chicken of the VNC or another vnc client and it should work with your iTV, you can control applications such as firefox from it since there is no usb support yet… the password is frontrow
  5. Installing xvid
    1. Go to Perian and get the quicktime component
    2. Put the .component file in the /Library/Quicktime … I use sftp to do this.
    3. xvid now can be played, but it won’t sync with iTunes, Read on for the center stage installation to get it playing that xvid easily.
  6. Stopping Watchdog! So you can run other apps!
    1. SSH into your box issue the following commands:
      • sudo mkdir /etc/mach_init.disabled
      • sudo mv /etc/mach_init.d/ripstop.plist /etc/mach_init.disabled
      • shutdown -r now
      • *let it reboot and ssh back in takes ~1 minute*
      • sudo kextunload -b com.apple.driver.AppleTCOWatchdog
    2. Note: You will need to do the kext unload after each boot which isn’t too much of a hassle since it doesn’t even have a reset button. If you really hate it look into scripting it in either the rc.d or startupitems.
  7. Removing frontrow so it will not take full screen!
    1. Rename Finder which is really frontrow!
      • cd /Volumes/OSBoot/System/Library/CoreServices
      • sudo mv Finder.app Finder.app.sav
      • When you reboot now the desktop won’t change to the front row it will stay at the black screen with apple logo don’t forget to issue the command to unload the kext if you don’t have it run at start up!
        • kextunload -b com.apple.driver.AppleTCOWatchdog
  8. Replacing frontrow with Centerstage(in order to play your xvid’s easily!), this may not have a lot of eye candy but it is open source and will get developed much faster now that this is a easy thing to run on aTV
    1. Download centerstage
    2. Put centerstage in your /Volumes/OSBoot/System/Library/CoreServices as Finder.app This will make it so it will load at boot up!
  9. To Run Any File!
    1. put the .app onto your atv’s hard disk
    2. cd *the directory its in*
    3. open “appname” such as ‘open firefox.app
  10. Optional: Install Quartz(may get a few higher fps)
    1. Get Quartz debug from here
    2. Copy it to your AppleTV.
    3. VNC into your Apple TV
    4. Open the Quartz debug
    5. Go To Tools –> Enable Quartz Extreme and then go to Tools again, this time select Enable Quartz 2D Extreme.
  11. Extra info
    • if you ever are getting an error when trying to edit or upload a file issue this command: ’sudo mount -uw /’
    • put nano into your /usr/bin to get a text editor!

My Todo:

  1. Get USB working so people can play WoW comfortably :-P
  2. Create a launcher gui to replace finder that will launch Centerstage, firefox, etc.

Afterthoughts:

  • They tried to stop us from running 3rd party apps. Just like they say the iPhone won’t do… I really hope it’s the same way
  • It may seem like they put no protection since this is by far easier to mod then consoles. But it did take us about 20 hours to get it hacked the way i explained in this tutorial.

Special Thanks:

  • MrCurious: Ruling out many methods and testing several before I got my aTV.
  • n8manAfter: Testing and willingness to try anything
  • My wonderful fiancée for not being upset that all my time went into appleTV and not life.

Confirmed Working Apps:

  • iTunes
  • VLC
  • CenterStage
  • Firefox
  • Quartz
  • Nano
  • World of Warcraft
  • Joost(currently fonts don’t work but you can watch videos)
  • Many More!

If you have any questions ask it in our forums!

Random Posts

If you have a question ask here