Working VNC: AppleTV 2.3, aTV Flash 3.4.1, iPhone 2.2 (5G77)

Get help with features and problems

Working VNC: AppleTV 2.3, aTV Flash 3.4.1, iPhone 2.2 (5G77)

Postby iMattUK » Sun Nov 16, 2008 6:31 am

******************************************************************************************************************************
Update: I now believe this method may cause you to get an "infinite reboot" condition when upgrading the AppleTV firmware and then re-hacking with aTV Flash. Not sure why, but it has happened twice to me now and I'd like to spare you the pain! The method below works but I can't be bothered to use it any more. Caveat lector.
******************************************************************************************************************************


Folks,

I've been wanting this for a while and today got this working. For the benefit of other users looking for a way to use Firefox on the AppleTV without the need for an external keyboard and mouse, just your iPhone, just follow these steps. Be warned, though, you *will* need to ssh into your AppleTV and enter some commands at the command line / terminal...

1. Download the original AppleTV v1 recovery disk image from the net. This will be named OS-dot-DMG 1.0.dmg, so try http://www.google.co.uk/search?q=OS-dot-DMG%201.0.dmg.

2. Once you have that .dmg, use your favourite SFTP/FTP software to copy it over into the home directory (i.e. / when logged in by SFTP).

3. Now start Terminal.app on your Mac and "ssh frontrow@appletv.local" (or on Windows do whatever you normally do to ssh to your AppleTV). Your password is probably "frontrow".

4. In your root directory, an "ls" command should reveal the "OS-dot-DMG 1.0.dmg" file you copied there in step 2. If not, go sort that out.

5. Enter the following command. This will mount the recovery .dmg on your AppleTV. No damage is done to other mounted disks, so don't panic :-)

sudo hdiutil mount OS-dot-DMG\ 1.0.dmg

6. Now we need to copy some files from the recovery volume to our actual AppleTV. Be careful to get the backslashes right in each command. None of these commands should generate any output, so if they do you have made a mistake :-)

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/

7. Now the RemoteManagement infrastructure is installed, we need to setup a remote login password. Again, this command should not generate any output:

echo 71463E00FFDAAA95FF1C39567390ADCA > /Library/Preferences/com.apple.VNCSettings.txt

8. Now we need to configure some further remote login settings. None of these commands should generate any output either:

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

9. Finally we need to start the actual VNC server process. We put an ampersand (&) at the end to keep the process running the background after we're log out:

/System/Library/CoreServices/RemoteManagement/AppleVNCServer.bundle/Contents/MacOS/AppleVNCServer &

10. You don't even need to reboot at this stage. Just start up a VNC client and connect to your AppleTV's local IP address (or appletv.local from a Mac) and it should connect. If you get a connection failure, try again a couple of times. If it still continues to fail to connect, double check the steps above and repeat if necessary.

11. On connection you will probably get a corrupted version of the AppleTV menu (or similar). This is expected; you don't need to be able to see the AppleTV video output on your iPhone, you just need to be able to get mouse and keyboard events from your phone to the AppleTV...

12. So now run up Firefox, for example, on your AppleTV (instructions for installing Firefox are elsewhere on this site, though I note that the latest aTV Flash 3.3.5 supports installation via the Maintenance menu. You should find that with your iPhone connected via VNC to the AppleTV, you can move the mouse around the screen, click on things, enter text - do everything you would normally do with a browser, in fact. Except that this is on your home TV. Amazing. Now why haven't Apple implemented this?!?

Just for completeness, these were the versions I used:

Hardware:

AppleTV Take Two at firmware version 2.2, hacked with aTV Flash v3.3.5
1st Generation iPhone 2G running firmware version 2.1, hacked to bits with PwnageTool

Software:

Jaadu VNC v1.2 (the best VNC app in the iTunes AppStore; maybe try the Jaadu Lite version first...)
Firefox v3.03
Panic Transmit 3.5.4 for SFTP
MacOS X 10.5.5 versions of Terminal.app and ssh

Props to the aTV Flash team for continuing to make the AppleTV more and more useful. This post is my way of giving something back :-)
Last edited by iMattUK on Sun Jun 28, 2009 4:38 pm, edited 4 times in total.
Sold my AppleTV and bought a PS3. It has native iPlayer support without hacks and just works. Good luck to the aTV Flash guys, but it's no longer for me.
iMattUK
Contributing Member
 
Posts: 26
Joined: Tue Aug 12, 2008 3:10 pm

Re: Working VNC: AppleTV 2.2, aTV Flash 3.3.5, iPhone 2.1

Postby madcran » Sun Nov 16, 2008 1:23 pm

One word..........WOW! :lol:
I just started The Apple Media Center Podcast, come listen. All about the AppleTV. I also have an iPhone 3G 16GB, AppleTV 40GB with aTV Flash, and a Fire Core, LLC modded AppleTV 250GB with aTV Flash.
User avatar
madcran
Moderator
 
Posts: 635
Joined: Sat Sep 06, 2008 11:22 pm
Location: San Diego, CA

Re: Working VNC: AppleTV 2.2, aTV Flash 3.3.5, iPhone 2.1

Postby cms42 » Mon Nov 24, 2008 6:14 pm

Thanks for this tip. However, is there any way to make VNC start a boot rather then having to SSH into it each time and manually start it?

Thanks,

Chris
cms42
New Member
 
Posts: 3
Joined: Sun Nov 09, 2008 1:00 pm

Re: Working VNC: AppleTV 2.2, aTV Flash 3.3.5, iPhone 2.1

Postby iMattUK » Wed Dec 03, 2008 4:48 pm

I found I had major problems when I moved from AppleTV firmware 2.2 to FW2.3. This *may* have been due to the above hack, though I'm still not entirely convinced.

Anyway, I found a neater way to achieve the same thing with 2.3 (and I guess this would work with 2.2 too):

If you download Vine Server / OSXvnc you can copy the Vine Server.app from the dmg to the ~/Applications folder. Next, set yourself up a password:

cd /Users/frontrow/Applications/Vine\ Server.app
/Users/frontrow/Applications/Vine\ Server.app/storepasswd YOURPASSWORD vncpasswd

then run up the server with the following single command:

/Users/frontrow/Applications/Vine\ Server.app/OSXvnc-server -protocol 3.3 -rendezvous Y -rfbauth /Users/frontrow/Applications/Vine\ Server.app/vncpasswd &

You can then connect with Jaadu from your iPhone and have the usual VNC fun.

Starting up automatically at boot... I'd like to do it too. At this stage I'm exploring possibilities for launching the script from a .app in ~/Applications. I'll post details here if I'm successful.
Sold my AppleTV and bought a PS3. It has native iPlayer support without hacks and just works. Good luck to the aTV Flash guys, but it's no longer for me.
iMattUK
Contributing Member
 
Posts: 26
Joined: Tue Aug 12, 2008 3:10 pm

Re: Working VNC: AppleTV 2.3, aTV Flash 3.4.1, iPhone 2.2 (5G77)

Postby arfore » Wed Dec 10, 2008 8:55 pm

I have written a launchd plist that will enable the OSXvnc-server to startup automatically when the Apple TV is rebooted.

Here's a copy of the plist file:

Code: Select all
<?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>Label</key>
        <string>com.arfore.VNC</string>
        <key>OnDemand</key>
        <false/>
        <key>RunAtLoad</key>
        <true />
        <key>ProgramArguments</key>
        <array>
                <string>/Users/frontrow/Applications/OSXvnc-server</string>
                <string>-protocol</string>
                <string>3.3</string>
                <string>-rendezvous</string>
                <string>Y</string>
                <string>-rfbauth</string>
                <string>/Users/frontrow/vncpasswd</string>
        </array>
</dict>
</plist>


It needs to go into the following directory
Code: Select all
/System/Library/LaunchDaemons/
and then reboot the Apple TV.

You can read a detailed write up on my blog.

I hope that this helps.

Andy
arfore
New Member
 
Posts: 8
Joined: Tue Dec 02, 2008 8:23 pm

Re: Working VNC: AppleTV 2.3, aTV Flash 3.4.1, iPhone 2.2 (5G77)

Postby iMattUK » Thu Dec 11, 2008 12:27 am

arfore wrote:I have written a launchd plist that will enable the OSXvnc-server to startup automatically when the Apple TV is rebooted.

Nice work, Andy. I did have a chat with the aTV Flash guys about putting an entry in the maintenance menu. I got as far as having start/stop/restart-VNC entries in the menu but when I tried to use them it instantly crashed my AppleTV. Not that useful as menu entries go... I'll try your way now :-)

Cheers,

iMattUK
Sold my AppleTV and bought a PS3. It has native iPlayer support without hacks and just works. Good luck to the aTV Flash guys, but it's no longer for me.
iMattUK
Contributing Member
 
Posts: 26
Joined: Tue Aug 12, 2008 3:10 pm

Re: Working VNC: AppleTV 2.3, aTV Flash 3.4.1, iPhone 2.2 (5G77)

Postby bbh » Wed Dec 17, 2008 12:17 pm

I have tried to enable VNC on my AppleTV, but while it appears to "broadcast" its presence, I can't access it via VNC. When I try to "Share Screen" under Shared in the Finder (AppleTV.local), I get an error message telling me I can't share with my own computer.

When I try with an outside VNC program such as Chicken of the VNC, I get the strange behavior where it continually tries to draw the screen. See attachment.

Any ideas?
Attachments
Picture 1a.jpg
Chicken of the VNC....
Picture 1a.jpg (216.02 KiB) Viewed 5758 times
bbh
Contributing Member
 
Posts: 33
Joined: Mon Jul 28, 2008 10:00 am

Re: Working VNC: AppleTV 2.3, aTV Flash 3.4.1, iPhone 2.2 (5G77)

Postby iMattUK » Wed Dec 17, 2008 1:28 pm

bbh wrote:I get an error message telling me I can't share with my own computer.


Looks like that might be what you're doing. Did you get the IP addresses right? Try sharing between two Macs first.
Sold my AppleTV and bought a PS3. It has native iPlayer support without hacks and just works. Good luck to the aTV Flash guys, but it's no longer for me.
iMattUK
Contributing Member
 
Posts: 26
Joined: Tue Aug 12, 2008 3:10 pm

Re: Working VNC: AppleTV 2.3, aTV Flash 3.4.1, iPhone 2.2 (5G77)

Postby bbh » Wed Dec 17, 2008 3:17 pm

It appears that I renamed my MacBook as "AppleTV" while messing around with Vine Server while trying yet another technique to get VNC working from my AppleTV. I got that all straightened out and then followed the technique at the beginning of this particular thread. IT WORKED !!!!

Now that I have upgraded the aTV flash to 3.4.3, it no longer works. Oh well. I am going to try to re-do the instructions in THIS thread, hoping that the upgrade simply erased some component I will have to re-install.

Truth be told, the VNC capability on the aTV doesn't amount to much... at least not for me. But... I enjoy messing around with it.

THE REDO OF MR. iMattUK's INSTRUCTION WORKED LIKE A CHARM WITH ATV 3.4.3. I "copied and pasted" to make sure I had all the slashes and dashes correct, by the way.
bbh
Contributing Member
 
Posts: 33
Joined: Mon Jul 28, 2008 10:00 am

Re: Working VNC: AppleTV 2.3, aTV Flash 3.4.1, iPhone 2.2 (5G77)

Postby iMattUK » Wed Dec 17, 2008 4:19 pm

bbh wrote:THE REDO OF MR. iMattUK's INSTRUCTION WORKED LIKE A CHARM WITH ATV 3.4.3. I "copied and pasted" to make sure I had all the slashes and dashes correct, by the way.


[Tips cap to bbh] Happy to help.

the VNC capability on the aTV doesn't amount to much... at least not for me


As will all these things, your mileage may vary. The killer app for me is visiting websites with other people (particularly booking or buying things but also researching things) when those people don't want to stand around a computer.
Sold my AppleTV and bought a PS3. It has native iPlayer support without hacks and just works. Good luck to the aTV Flash guys, but it's no longer for me.
iMattUK
Contributing Member
 
Posts: 26
Joined: Tue Aug 12, 2008 3:10 pm

Next

Return to Features & Troubleshooting

Who is online

Users browsing this forum: Yahoo [Bot] and 4 guests