Apple

Hackin’ the AppleTV

It’s been a while since my last post (as usual). In the past month, while I was bored, I was hacking away with my AppleTV. I wanted to accomplish a few things:

  1. Live TV
  2. Web browsing

overview_hero1_20080929

Ever since I bought my AppleTV, I cancelled my cable television since I usually digest news from the Internet; not to mention that Global News puts out a video podcast every day so I don’t miss out on traditional daily news. Alright, after a month or so, I started to miss live television (even the ads!). So I was thinking how I can utilize my AppleTV to achieve this. I could obviously just run a program on my desktop machine and plug the monitor cable (VGA) into my TV, but I don’t want to do that. Why? Because I own a hacked AppleTV! Other than that, many other people don’t have a VGA ports for their TV. So the hack begins…

First, I looked at Joost, a peer-to-peer TV technology to distribute content. It’s great because the Joost Team actually state that it works on a hacked AppleTV, but I soon realized that it’s not live, and they have recently discontinued their desktop version so I gave up on it quickly. I searched around for some P2P live TV application. It has to be a Mac application but they are all for Windows (TVAnts, PPLive, etc). I figure that AppleTV can’t handle WINE and Windows Apps since it doesn’t have “real” hardware. Just as I was about to give up the whole project, I saw a tweet about a new application called Livestation, a P2P live television program which works on many platforms. Now, assuming that your AppleTV is “hacked,” you may now proceed which these instructions. If it’s not, there are many tutorials on how to do this as well as a paid solution.

  1. Download the Mac version of Livestation on to your computer
  2. SSH in to your AppleTV. Or FTP/SFTP/whatever. Just get in there so you can transfer a file.
  3. I have a Applications directory inside frontrow’s home directory. You can create this or you can put the app somewhere else as long as you know the path to it.
  4. Transfer your Livestation.app to your Applications folder in your AppleTV. And yes, you will discover that apps are actually folders.
  5. /Users/frontrow/Documents/Applist.plist
  6. If you don’t have the file I mentioned in 5, create it.
  7. Copy these in there:

<?xml version=”1.0″ encoding=”UTF-8″?>
<!DOCTYPE plist PUBLIC “-//Apple Computer//DTD PLIST 1.0//EN” “http://www.apple.com/DTDs/PropertyList-1.0.dtd”>
<plist version=”1.0″>
<dict>
<key>Applications</key>
<dict>
<key>0</key>
<dict>
<key>args</key>
<string></string>
<key>remotewatcher</key>
<false/>
<key>fireandforget</key>
<false/>
<key>menu</key>
<string>Livestation</string>
<key>killfinder</key>
<false/>
<key>path</key>
<string>/Users/frontrow/Applications/Livestation.app/Contents/MacOS/Livestation</string>
</dict>
</dict>
</dict>
</plist>

It’s pretty obvious that after you hacked your AppleTV, you will find an Application Menu buried somewhere in the menu. Go there, press on Livestation. It should load up now. Enter your credentials, which you registered freely on their website. You can use this to manage your channels. Except… how do you control the app itself? You have a few options: install VNC or to enable USB keyboard and mouse. I will be talking about the VNC way since all the keyboards that I have are PS/2. However, you can always go old fashioned with keyboard and mouse. In fact, you can either patch the kernel yourself or you can use the smart installer. Chances are that you can just plug in  that USB keyboard since you already have done parts of this hack before. Just full screen Livestation and enjoy live TV channels! Throughout the testing stage, I did notice some stutters in fast motion. This is because of AppleTV’s weak hardware. It’s not too bad – definitely not too bad for this little AppleTV. At the end, I am very happy with Livestation on my AppleTV.

Next, web browsing. Let me just give you an overview of what I am going to do.

  1. Install a browser
  2. Install VNC for 2.x firmware AppleTV’s
  3. Use iPod Touch or iPhone to control it

No. 1 is very simple. In fact, it’s the same step as installing Livestation since that’s how you “install” any applications on to your AppleTV.
After moving your browser application to your AppleTV under that Applications folder. I am using Opera (Mac version duh!) here since it’s actually lighter than another of the other browsers (but I am a huge Firefox fan on the desktop!). Add these lines to that plist file just before the last </dict>.

<key>2</key>
<dict>
<key>args</key>
<string></string>
<key>remotewatcher</key>
<true/>
<key>fireandforget</key>
<false/>
<key>menu</key>
<string>Opera</string>
<key>killfinder</key>
<true/>
<key>path</key>
<string>/Users/frontrow/Applications/Opera.app/Contents/MacOS/Opera</string>
</dict>

If you do want Firefox on your AppleTV, go here. In fact, read how to enable USB for keyboard and mouse, installing System Preferences and mouse pointer. You are done with no. 1. Don’t bother starting the browser since you can’t control it. Getting VNC running on your AppleTV can be a little tricky so you may want to use a old fashioned USB keyboard.
I don’t remember where I got this from since I have looked through so many sites to get information about VNC on AppleTV 2.x firmware. Whoever posted the instructions, kudos to him or her.

Again, this is for AppleTV 2.x firmware. If you have 1.0 firmware you are lucky. Search around on Google and it’s just a few command lines to enable VNC!

  1. Get the 1.0 recovery disk. Its name is OS-dot-DMG 1.0.dmg.
  2. Transfer the file to frontrow’s home directory.
  3. If you are on Mac, open Terminal.app. If you are on PC. Download putty. Then SSH (using version 1) to your AppleTV. Command: ssh -1 frontrow@*address here* Usually the address is just 192.168.1.x
  4. Password is frontrow. I think you know this already. Once you are in, run the command “ls” to verify that OS-dot-DMG 1.0.dmg is in fact in the directory.
  5. Time to enter some commands:
    First, we mount the dmg, then we move some files to the local drive. After that, we configure VNC (RemoteManagement) and we run it!

sudo hdiutil mount OS-dot-DMG\ 1.0.dmg
sudo cp -pr /Volumes/OSBoot\ 1/System/Library/CoreServices/RemoteManagement/ /System/Library/CoreServices/RemoteManagement
sudo cp -pr /Volumes/OSBoot\ 1/System/Library/Perl/ /System/Library/Perl/
sudo cp -pr /System/Library/Perl/Extras/5.8.6/ /System/Library/Perl/5.8.6/
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 frontrow -privs -all -restart -agent -menu
/System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/MacOS/AppleVNCServer &

Once VNC is started, you may now close your SSH connection and head to your iPhone or your iPod Touch. I use Jaadu VNC, which I think, is by far the best VNC for iPhone/iPod Touch. You can use any other VNC applications. You can even use a computer, but that defeats the purpose of this since you want to be sitting on the couch controlling your AppleTV remotely. Using your iPhone or iPod Touch, hop on your home WiFi connection and connect to your AppleTV with the password, “frontrow”. Voila. You are now controlling your AppleTV. I also installed the mouse cursor and disabled the screen on my mobile device. So now, I can sit on the couch, and move my fingers on a mobile device to control my TV! I can even type with the keyboard on Jaadu. You can extend this hack even further by installing Flash plugin so you can watch videos. It’s well documented so I won’t spend any time talking about it here.

Excuse me for any mistakes that I have made (if any). Also, since this is the first tutorial that I have written, some steps may be unclear, if you have trouble understanding, just leave me a comment and hopefully, I’ll get back to you. Other than that, you can also find me on Twitter. Finally, you may be thinking why have I not bought a Mac Mini instead. Well, I went for the AppleTV for simplicity thinking that I won’t ever mess with it, but I ended up hacking it for fun. The AppleTV has a lot of potentials, by that, I mean A LOT. As you may have noticed just by this article, you can run any Mac applications. Of course, many won’t run because we don’t have the core services built in. But hey, there’s hack which allows you to install a full blown OS on there! The possibilities are just endless.

The iPhone, it’s a conspiracy!

I got a kick out of this one.

Apples

apples

Too many apples!

New Leopard Intro

OS X Leopard Intro Movie

Nice into except it’s got the same music as 10.4.

Apple’s success

I wrote a article over at Business | tock describing why Apple is so successful, and how they achieved it. Hope you like it.

The ‘Apple empire’ once almost collapsed, and it is the iPod brand which brought Apple back to life. Now, Apple company is alive and well, not to mention that it is also very successful in its recent product; such as the iPod, iMac, and the iPhone. However, have you ever wondered how Apple came back with such a big hit? And have you ever wondered why apple is so successful in what they do? Well, it’s all about you, and how they treat you! – More…

If you like the article, why not Digg It (*cough, and bring our server down).

Think Different

think different
On June 1st, I posted Apple’s ad, Crazy Ones. And now, leopard’s huge textedit icon is basically the words from the ad! Well, here’s the ad again:

South Park: Mac vs. PC

The Mac vs. PC thing is really everywhere now.

Leopard successfully running on PCs

Hackers are finally able to dual boot Mac OSX Leopard with Vista on a non-Apple hardware machine.

“I’m not joking! It is possible to install leopard on your Windows computer! Just read the following guide…” – Hackers

Of course, downloading OSX is illegal, not to mention running it on a non-Apple hardware is also illegal. Then again, they are just testing this out for information purposes only. If you want to install OSX (tiger or leopard) on your Windows box (either Intel or AMD) computer, your computer processor needs to support at least SSE2. If you’ve got SSE3, then you are extremely lucky because everything will go smoothly.
After making sure that your computer is perfectly fit for running OSX, the real ‘pain’ starts. You are going to do a whole bunch of things from partitioning, editing the image file. Still sounds easy for you? Check their website out at profit42.com.

This is something that I personally would not recommend. Even just a few days ago, Apple announced the new iMac, and they are really beautiful. Not just their beauty, they also come with a really good spec. You other option is to use Unix or linux, because OSX is using Unix under the hood. However, if you are like me, who really want a OSX machine, then you better get a Mac yourself.

Apple iMac vs Dell XPS 410

Wow, the clutter.