How To: Boxee Beta on the Apple TV

DISCLAIMERS: 1) This post is over a year out of date at this point (as of 3/23/11). 2) You are fully responsible for what you do with your gadgets, including if you mess things up following my directions! Good luck.

I’ve been waxing poetic on my Twitterstream about my Apple TV’s new lease on life, thanks to the Boxee Beta and a few related hacks. A few friends have asked what exactly I did, so I thought I’d put the process together here.

I’m a Boxee beta tester, but you too should be able to get the Beta as it is released to the public. There’s just one problem–there is no Beta release for the Apple TV. But, never fear…the community is on top of things. I honestly think that the Boxee Beta install is even easier than the Alpha ever was.

Ready to install? The details are after the jump!

First of all, you’ll need to create a patchstick to open up access to your Apple TV. If you don’t know how to do that, I’m not going to go into it here. Most likely, you’re here because you already have your ATV patchsticked and you just want to be able to get the Beta on it. If you don’t know how, use this handy dandy utility called ATV USB Creator. Download it here.

Once you have SSH access to your Apple TV, you will need to SSH into your it. Don’t forget, Apple TV hackers–the password is frontrow! Once you’ve gotten access to your Apple TV via Terminal or the command prompt, you’ll need to download and run a script created by a Boxee/Apple TV enthusiast that installs Boxee along with Firefox 3.6, NitoTV, and the newest beta of Flash. Run each line as a command, one at a time.

wget -m -nd http://www.green-light.ca/cmn_external/app/boxee/beta/BoxeeBetaInstallScript.sh
sudo sh BoxeeBetaInstallScript.sh latest
sudo reboot now

Once you’ve gotten your Apple TV rebooted, you’ll need to go to the Nito TV menu > Settings > Install Software > Smart Installer. Let that do its thing installing…at this point I rebooted again for good measure once it was done.

This gets the latest and greatest bits installed. After this, I actually did some further tweaking that has really helped the way that my Apple TV performs, especially with streaming video. Another one of the forum members posted up these tweaks on the Boxee forums. He recommends, as do I, that you shouldn’t attempt these tweaks unless you are comfortable with command line work and are willing to possibly require a factory restore on your Apple TV if you mess something up. However, just follow the directions and you should be fine!

1. Tweak the network settings of the Apple TV.

Make sure you are SSH’ed into your Apple TV, and then you’ll use the terminal to create and run some files.

Type the first command in:

sudo nano /etc/sysctl.conf

Then you’ll copy and paste the following:

kern.ipc.somaxconn=512
net.inet.tcp.mssdflt=1460
net.inet.tcp.sendspace=98304
net.inet.tcp.recvspace=98304
kern.ipc.maxsockbuf=1048576
net.inet.udp.maxdgram=57344
net.inet.udp.recvspace=42080
net.local.stream.sendspace=98304
net.local.stream.recvspace=98304
net.inet.tcp.delayed_ack=0
net.inet.tcp.rfc1323=1
net.inet.tcp.rfc1644=1
net.inet.tcp.newreno=1

Then press Control+X to save, and Y followed by Enter to accept the filename.

Then create a script that will initiate the changes you just made using these two commands (one at a time):

cd ~
nano -w Tweaks.sh

This will create another new file, which you’ll paste this into:

awk '{ if (!index($1, "#") && index($1, "=")) print $1 }' < /etc/sysctl.conf | while read
do
sysctl -w ${REPLY}
done

Control+X to save again, followed by Y and Enter to accept the filename.

Now, run the following commands (again, one at a time):

chmod +x ./Tweaks.sh
sudo ./Tweaks.sh

And you should get the following output (or else something went wrong):

kern.ipc.somaxconn: 128 -> 512
net.inet.tcp.mssdflt: 512 -> 1460
net.inet.tcp.sendspace: 32768 -> 98304
net.inet.tcp.recvspace: 32768 -> 98304
kern.ipc.maxsockbuf: 262144 -> 1048576
net.inet.udp.maxdgram: 9216 -> 57344
net.inet.udp.recvspace: 42080 -> 42080
net.local.stream.sendspace: 8192 -> 98304
net.local.stream.recvspace: 8192 -> 98304
net.inet.tcp.delayed_ack: 3 -> 0
net.inet.tcp.rfc1323: 1 -> 1
net.inet.tcp.rfc1644: 0 -> 1
net.inet.tcp.newreno: 0 -> 1

2. Create advancedsettings.xml to adjust the skiploop feature (making things run faster/smoother, as well as prevent the Boxee screen from randomly blanking out after you turn your TV off for a bit)

Still using SSH and the command prompt, run the following command, which will create another file for you:

nano /Users/frontrow/Library/Application\ Support/BOXEE/UserData/advancedsettings.xml

Then paste this into it, Control+X to save, Y plus Enter to accept the filename:


true
8

Exit Boxee, then run the following command:

rm /Users/frontrow/Library/Logs/boxee.log

Then restart Boxee, and issue the following command:

less /Users/frontrow/Library/Logs/boxee.log

You should scroll down in the results from that command and see a line about advancedsettings.xml. If there is no error, things are just fine!

3. If you want to run Netflix...

Boxee does not include the Netflix app for Apple TV, and even though you're installing the Mac version of the Beta it still doesn't shoehorn the Netflix app into the install. I wish it did, because despite the reports of the Apple TV not being powerful enough for it, it's my experience that Netflix runs GREAT on the Apple TV after all these tweaks are done.

How exactly am I running Netflix? Well, here's the deal. When you install Boxee Beta and Nito TV, Firefox 3.6 gets installed with it, along with Silverlight. Go to the Nito TV menu from the main Apple TV menu, then choose Applications > Firefox. You can use it like a normal browser, and I use it to watch streaming content from netflix.com. I like to pause it and let it buffer just a little bit at the beginning so that playback is smooth.

In order to work with Firefox and Netflix on the Apple TV, I've done a couple of things. I've used the Awkward TV wiki to enable the mouse pointer and install a VNC server so that I can easily control the screen using Chicken of the VNC on my Mac or Mocha VNC Lite on my iPhone. I really only use that to choose what I want to watch from my queue if I'm too far away from the TV to see it clearly (the browser stuff is small).

Mostly, I use Rowmote Pro on my iPhone to control the Apple TV itself as well as Firefox, Boxee, and other apps using the remote feature and the wireless keyboard/mouse feature. It works just like the keyboard does on my Mac when I'm using Netflix in Firefox--space bar pauses, escape exits from full screen. Rowmote is great because it controls just about anything you want on your Mac, plus they have an installer so you can use it on the Apple TV too. I had the 99 cent original Rowmote, but I upgraded to Rowmote Pro so that I could have the wireless keyboard and mouse in addition to just the remote functions.

Another thing I have done (that I figured out myself, mind you!) is installed the extension Full Fullscreen in Firefox on the Apple TV, and set it to launch in fullscreen mode every time. That gets rid of the annoying menu bar and such along the top and makes Firefox true fullscreen. I've been using this extension for a while on my netbook for real fullscreen browsing and it's fantastic.

It's not the MOST elegant solution, but it works great to watch Netflix using the Apple TV. We have an XBox 360 and PS3 in our living room, which I use quite a bit to watch Netflix and I really love the ease of access and always growing library of Netflix's streaming offerings. I was determined to find a way to easily watch Netflix on the new 19" LCD HDTV in our bedroom, and I knew that I couldn't move any of the gaming systems in from the big TV in the living room (my husband wouldn't be pleased). I also didn't want to buy a Roku box or anything else just for Netflix access, but I knew that my netbook doesnt run it well enough that I could have just hooked it up to the TV.

I wanted the Apple TV to be able to work with my needs, and I wasn't disappointed. Between the Boxee installation for local media, music, Boxee apps, Hulu and other streaming media, and now Netflix for my streaming fix, PLUS all the shows and music available via the iTunes store, the Apple TV gives me just about anything I could want.

Thanks go to Keith and Jim from the Boxee forums for figuring out the Beta install and tweaks!

This entry was posted in Apple, How To and tagged , , . Bookmark the permalink.

14 comments

  1. Any ideas? Once I ssh in, my session looks like this:

    -bash-2.05b$ wget -m -nd
    -bash: wget: command not found
    -bash-2.05b$ wget -m -nd http://www.green-light.ca/cmn_external/app/boxee/beta/BoxeeBetaInstallScript.sh
    -bash: wget: command not found
    -bash-2.05b$ wget -m -nd
    -bash: wget: command not found
    -bash-2.05b$ wget
    -bash: wget: command not found
    -bash-2.05b$

  2. Never mind– I took the lazy route to hacking a while back with ATVFlash. Turns out they have a built in script.

  3. Tweak 1 worked, but the second tweak for skiploop advanced settings didn’t. Cannot get past:

    true
    8

  4. Mikeh, I’m not sure what is happening for you. I followed the same directions and didn’t have a problem. What do you mean that you can’t get past true 8?

  5. Well, after the second step of attempting to change the skiploop filter, after Control+X, then Y, then Enter — the error message reads “could not open file for writing: no such file or directory”

  6. fixed it — now working great!

  7. Works great, thanks!

    My hulu though is unusable for the most part. One frame every 2 seconds or so (full audio though, odd..)

    How well is your Hulu on ATV working? Am I encountering an issue or is everyone seeing the same thing?

  8. The first instruction for SSH..says “Run each line as a command, one at a time.

    wget -m -nd http://www.green-light.ca/cmn_external/app/boxee/beta/BoxeeBetaInstallScript.sh
    sudo sh BoxeeBetaInstallScript.sh latest
    sudo reboot now

    —————–

    IS there 4 lines..or 3…it’s NOT clear.
    This can be confusing as the first command wraps on the page.

  9. [...] How To: Boxee Beta on the Apple TV | Daily Tech Diva [...]

  10. So, regarding JUST the Boxee-Beta update of ATV (and not the tweaks):
    Followed your instructions exactly as posted, ran smart installer, rebooted, re-logged in to “new” Boxee install with no problem; but now none of my apps work properly???
    Pandora… can’t log in (with correct un/pw)
    LiveTV… won’t connect to individual channels

    …seems all Boxee connectivity has been lost.

    …all was working before the sh install.

    Mainly wanted to get a newer version of Firefox running with a functional and accepted version of silverlight – yet even that hasn’t worked; firefox 3.6 installed, but silverlight still not recognized by sites such as Netflix. (yes, cache and cookies purged)

    So…
    Was wondering if there is an “uninstall” process to reverse the above-posted sh changes to my ATV???
    Only alternative I see at this point is continuing to try to get old versions of Boxee still on the ATV to somehow come back (still haven’t gotten that to work, though); and – barring that – reinstall entire OS …what a notion… i.e. no way.
    Looking for help,
    Thanks

  11. Hi BrinkMann,

    I honestly don’t know what you can do, I am sorry. This post is over a year old and no longer the method you need to get the Boxee Beta installed on your Apple TV. This was a stopgap measure for before the official Apple TV version was released by Boxee. At the time you could only install the Mac version this way.

    I don’t know if the guy who wrote the script even has it up to date anymore. I have actually stopped using Boxee because I got sick of the freezing, lags, and other issues I was experiencing in the early beta software. If I were you, I might try downloading the current ATV beta from the Boxee site and installing the proper way with that, not following these temporary instructions. Hopefully that will clear up your issues. If not, it really isn’t that big a deal to do a factory restore and start from scratch. I have done it plenty of times.

  12. Oh, okay. Big “oops” on that one I guess.

    Actually, I did use aTV Flash originally before happening upon this site and utilizing the hack mentioned above, in order to update Firefox and Silverlight as mentioned. For others considering doing the same, here is some crucial knowledge I’ve acquired through the experience:

    1) aTV installs a much older version of Firefox (2.x), and does NOT update it to anything newer via the update tools installed. Instead, it utilizes an older ftp server/url on the Fire Core website and simply downloads 2.x again whenever attempts to upgrade or re-install are made. (Version 2.x of Mozilla Firefox will not run current versions of Silverlight, and – as current versions of Silverlight are required to run anything even approaching Netflix, no exception – this places the possibility of utilizing Netflix via the native aTV install in the category of non-existent.)
    2) By ftp-ing/ssh-ing into the Apple TV (this is Gen 1 we’re talking about, just to remind everyone), one CAN drag over Silverlight files and folders to their “proper” locations on the ATV hard drive; but (again, in my own experience) this still proved unsuccessful in getting Silverlight to run, both before and after the successful installation of Firfox 3.6.
    3) The above hack DOES install a newer version of Firefox and Silverlight (along with XBMC and Boxee), but (depending on the success of the install) for some users, Silverlight may still not run, and some functionality of the aTV-install (and update) of Boxee may be lost.

    I realize this is an “at your own risk” area of the world out here, and that – as such – all risk and result should be squarely shouldered by the “risker”; and I would never “blame” anyone for what I choose to do to my own equipment under such conditions. But, conversely, I don’t think I’m alone in the appreciation of a good, old-fashioned caveat or warning posted at the beginning of such tutorials either. Just food for thought.

    At least my post (way down here at the bottom of the page) might stand as some kind of red flag for others still landing at this info and considering using it; and with more info in the post preceding this one, outlining the details to perhaps avoid.

    That said, thanks for the contribution(s) in this area – I’ve learned a lot.

    Off to restore and “start from scratch”,

    BrinkMann

  13. BrinkMann–sorry for the confusion, I just would have figured that the date on the post (and the info, since Apple TV Betas are now out for Boxee) would have indicated that this was out of date. I may go ahead and put a disclaimer at the beginning of the page for any other intrepid Googlers!

    Hope everything goes well with your reinstall. I haven’t been happy with the Boxee performance on my Apple TV in the Beta, which is why I went to XBMC instead. Hulu performance through XBMC blows Boxee out of the water (using bluecop’s repository Hulu plugin) but sadly, Hulu is changing the way their streams work and the plugin is almost dead in the water until a new solution comes along. Sad. :-(

    I’ll be posting more on here again, as I have much more free time thanks to switching jobs in the fall (no more 60 hour weeks!) so I fully plan on talking more about my Apple TV hacking adventures. I hope you’ll follow along and chime in about your own experiences!

    Best,
    Jess

  14. This particular blog site is quite interesting, keep creating awesome info.

Post a Comment

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>