Help - Search - Members - Calendar
Full Version: Run AppleTV on your intel mac - uses local media or acts as a standalone appleTV, can QUIT
InsanelyMac Forum > Apple World > Gadgets and Handheld Devices > Apple TV
Pages: 1, 2, 3, 4, 5
DsurioN
NOTE: Apple remote and intel mac required.

This will show you how to run the AppleTV software on your intel mac. You have 2 options:

1) Have it as a standalone app that you double-click to launch Removed - too buggy
2) Have it replace your existing front row (don't worry, we'll back it up)

First of all, you need the files (a copy of the apple tv operating system image and the hacked Finder app binary) - I'm not allowed to tell you where to get those here but look around, or PM me... If you're nice tongue.gif
Sorry, I have lost the links. Good luck finding the files!
Download the O/S and the patched Finder and put the files in a convenient location. don't use the installer floating around the net - for this tutorial, we're doing things manually.

1. Extract the .zip's or whatever format you downloaded. We need to copy some files over from the OS image, so double-click on the apple tv .dmg file to mount it

2. Open up a finder window, and go into the OSBoot image that you just mounted. Navigate to the /System/Library/CoreServices/ folder and copy the Finder.app found there to your DESKTOP.

3. Now, right-click on the Finder.app on your desktop, click "show package contents", and navigate to /Contents/MacOS/ . Find the "Finder" file you downloaded earlier (the one without the extension, the patch file) and drag it into this folder. Let the old one be replaced. Now rename this file to "Front Row". Go back a directory (/Contents) and double-click on "Info.plist". Expand the root and change the value of "CFBundleExecutable" from "Finder" to "Front Row".

4. Close the Finder window and rename the Finder app that we were just working on to "Front Row".

5. Fire up old Terminal and go into the folder we were just using. The command should look something like this:
CODE
cd /Users/[username goes here]/Desktop/Front\ Row.app/Contents/MacOS/

(the backslash is to escape the space character)

6. In Terminal set these permissions for the "Front Row" file:
CODE
sudo chown root:wheel Front\ Row
sudo chmod 755 Front\ Row

(you need the backslash to escape the space character)

7. Head over to /System/Library/PrivateFrameworks/ in your OSBoot image that should still be mounted in the finder, and drag iPhotoAccess.framework and BackRow.framework to your desktop. It will give you an error about special permissions, just hit continue.

8. After that we need to add these frameworks to your OS X system. Go back to Terminal, "cd" to your Desktop and run these commands:
CODE
sudo cp -pr ./iPhotoAccess.framework /System/Library/PrivateFrameworks/.
sudo cp -pr ./BackRow.framework /System/Library/PrivateFrameworks/.

(periods included)

9. Log out and log back in. At this point we should have a working Front Row.app that would launch the apple TV interface if you clicked it. HOWEVER, we can't terminate appleTV when we're using it so we need to set a mouse trigger to quit it for us when it's running.

If you want an 'exit' button in appleTV, download this file:
http://www.mediafire.com/?ffynjg0nbzj
and place it in the /Contents/PlugIns/ folder of the front row app. If you choose this, skip to 14. Otherwise, read on.

Edit: I find this sort of buggy since it screws up some of the menus (no trailers list item, etc). Use at your own risk. I much prefer the method starting at step 10.

10. Download SteerMouse ( http://plentycom.jp/en/steermouse ). Install & reboot.

11. Download PascalW's amazing appleTV closing app:
Mirror 1: http://www.gigasize.com/get.php/1019401/Cl...AppleTV.app.tgz
Mirror 2: http://www.mediafire.com/?3ixjktnnmzz

12. Open up steermouse in system preferences. You'll see the different mappings for the buttons on your mouse. To make SteerMouse truly invisible and only used for appleTV, I recommend these settings:
-Leave left button as "Click"
-Leave right button as "Contextual Menu"
-Change the middle button option to Click Action - > Middle Click
-Change the side button to Click Action -> Default Click
Now SteerMouse won't conflict with your normal mouse & keyboard settings in system prefs.
We want to create a new application profile for appleTV. At the top of the window, select the drop-down menu and click "add/remove applications". Go to "Add" and browse to your modified Front Row.app on your desktop (or wherever else you decided to put it). Click OK, and now select your new Front Row profile from the drop down box at the top. Pick any button on your mouse to be your exit trigger for appleTV (i picked the side button) and tell it to open the Close Apple TV.app file you downloaded earlier, wherever you put it. The rest of the buttons should be set to "same as default". I also recommend going into the "Cursor" tab in SteerMouse and disabling "automatic moving" (in the default profile)

13. Finally, we need to give the apple tv closer-app your default resolution so it can switch it back once you're done with appleTV (appleTV uses a lower resolution). Navigate to Close Apple TV.app, right-click, and show contents. Go to /Contents/Resources/Scripts/ and open resolution.txt. The first line is the width in pixels (on my iMac it's 1680) and the second line is the height (1050 for me). The third line is the refresh rate, but don't bother with that unless you're using a CRT. Save the text file.

14. Now, all we need to do is replace the existing front row with this one:

- Back up /System/Library/CoreServices/Front Row.app
- Make sure you haven't used front row since you logged in (if you did, log out and log back in again)
- Drag the patched Front Row file to this folder (make sure you have a backup of the original first!) - you need to click "Authenticate", "Replace", and then enter your password
- Log out and in
- Make sure your key trigger is set to the front row app in /System/Library/CoreServices/ that we just copied over, and NOT the one on your desktop.
- Pressing "menu" should now launch AppleTV - you can quit it by clicking your pre-assigned mouse button or by using the "exit" item in appleTv - if you used that.

make sure you're not listening to any music or watching any content before you quit, because it could corrupt the files.

Have fun!

UPDATE:

Use this tip to use the media on your local computer!

Found at http://www.hackint0sh.org/forum/showthread.php?p=3654

QUOTE
Greetings to MACDAD82 for this wonderful hack !

Don't Forget to Backup the file you gonna modify

- Open hex edit or 0xED. (make sure it is set in Overwrite mode)

- Load the Front Row binary file inside /System/Library/CoreServices/Front Row.app/Contents/MacOS

- Search for this Offset > 45DDFA



check the image to make sure you are at the right place

replace the string BRFullscreenRenderer to BRWindowRenderer....

When you have done it:



check the image to compare if you've made it right.

Note: There are 8 dots after BRWindowRenderer and the dots are supposed to be 00's. If you see 2E, change it to a 00 (directly in the hex view)

Save and start Front Row

Now if you want to switch to another app you can press Apple+Tab keys and you'll have full support of the mouse and the Keyboard.

Tip from me (DsurioN) : lower your resolution ( to 800 x 600, for example) so that when you launch appleTV it does not take up the whole screen. Now you can move your iTunes window around and set the streaming settings in iTunes.

EDIT >> turn off all the AppleTV Syncing in iTunes, just use the standard iTunes sharing and you can directly access all your iTunes library locally by using the Sources menu in Back Row and select the iTunes sharing (not Sync).
With this tip, you will never get duplicates files.


Personally, after I got the streaming working I switched back to the FullscreenRenderer to avoid the hassle of setting the resolution manually every time ( you have to set it to 1280 x 800 before launching it with this trick).

Bugs/Missing Features:
-When I go to the wireless preferences in appleTV settings, the whole system locks up (but you don't really need those anyway)
-With the apple + tab trick, you now have to set your resolution manually to 1280 x 800 before launching it (or whatever appleTV normally uses on your system), or else it will not display properly.

ANOTHER UPDATE!
There's an app that will prevent Front Row from changing you resolution in the first place. Unfortunately it's only a trial, but you can use it for now (or uh.... "borrow" it...)
http://www.madrau.com/html/SRX/indexSRX.shtml
Just setup a profile for the front row.app and don't let it change the resolution.

Screenshots:









ResX
No Way!

I got to see a pic of this.

Nice Work
neztik
Wow. Cant wait to try this. I can then try some of my HD content. Then off to buy an AppleTV!
Urbz
I can indeed confirm that this works on my Mac mini.
Props to DsurioN for writing this flawless guide!

-Urby
f#a#oo
The progress everyone has made on the AppleTV over the course of a week is outstanding!

Good show internet thumbsup_anim.gif

edit: I'm going to test this in a little bit also biggrin.gif
hackand
Runs pretty well on my iMac. Now if we could find a way to get the media to the software without more than one Mac and if we could figure a good way to exit the UI, we'll be all set.

Maybe that extra menu item hack some guy published earlier…
MrG299
I have tried this method and the original method posted by appletvhacks. Both times the finder simply doesn't boot. the OS boots and I get no finder. Does anyone know why this is?
DsurioN
Someone over at hackint0sh.org has replaced front row with the apple tv's "front row 2.0":

http://www.hackint0sh.org/forum/showpost.p...mp;postcount=52
MrG299
this is the message i get from terminal when i try and open the modified finder

/Users/appletv/Desktop/Finder.app/Contents/MacOS/Finder; exit
Welcome to Darwin!
MAC:~ appletv$ /Users/appletv/Desktop/Finder.app/Contents/MacOS/Finder; exit
dyld: Library not loaded: /System/Library/PrivateFrameworks/BackRow.framework/Versions/A/BackRow
Referenced from: /Users/appletv/Desktop/Finder.app/Contents/MacOS/Finder
Reason: image not found
Trace/BPT trap
logout
DsurioN
Did you copy all the frameworks like the tutorial said? Also, are you trying to run the "Finder" file? Because that will not work since it is simply the binary and not the whole program. You have to run Finder.app
MrG299
Hey thanks for the quick response. Ya it turns out all of the frameworks did not copy over haha. So its up and running now! smile.gif anyone have any ideas on accesing the itunes library its installed on?
ptaylor
I installed it on my 20" iMac and it seems to work as described, except I can't seem to figure out how to connect it to iTunes on my wife's Mac... It says something about selecting the Apple TV in the Devices list in iTunes, but I don't see anything there... Running the latest iTunes...

Anyone else able to get it sync'ing or streaming from another machine?
kevin_4e
biggrin.gif

Great news and thanks for sharing smile.gif
kennyGS13
I get the opening movie, then it crashes, mines hackintosh though so its probably the lack of ir remote. I did a bit of digging in the appletv os image looking for some sort of pass, like the frontrowpass that you can change the vendor id to a mouse, but no luck
DsurioN
QUOTE(ptaylor @ Mar 28 2007, 12:23 AM) *
I installed it on my 20" iMac and it seems to work as described, except I can't seem to figure out how to connect it to iTunes on my wife's Mac... It says something about selecting the Apple TV in the Devices list in iTunes, but I don't see anything there... Running the latest iTunes...

Anyone else able to get it sync'ing or streaming from another machine?


You'll only see the device in iTunes if you go to Sources -> and then (if you want to stream) "connect to another itunes" and if you want to sync, go to the syncing menu item (i forget exactly since I'm not in appleTV right now). You'll get a screen with a number on it, and then you have to enter that code in iTunes. It worked perfectly for me and my other computer sees it as a 170 gig apple TV! thumbsup_anim.gif


As for your problem kennyGS13, as far as I know with this method you're not supposed to get the opening movie... Did you follow these instructions or did you just restore the image to a partition?
kennyGS13
QUOTE(DsurioN @ Mar 28 2007, 05:05 AM) *
As for your problem kennyGS13, as far as I know with this method you're not supposed to get the opening movie... Did you follow these instructions or did you just restore the image to a partition?


I followed all the instructions and when it didn't work the first time, I did it all over again.
DsurioN
Yeah I'm not sure... I don't really have a hackintosh to test on, but you just might be right: it can't detect an IR receiver. Let's see what others come up with for OSx86.
kennyGS13
QUOTE(DsurioN @ Mar 28 2007, 05:14 AM) *
Yeah I'm not sure... I don't really have a hackintosh to test on, but you just might be right: it can't detect an IR receiver. Let's see what others come up with for OSx86.


It's no biggie though, i'll just buy an apple ir remote off ebay and a mantra tr1. Thanks for the help though DsurioN.... thumbsup_anim.gif
imacg5ranger
This means with my imac 20inch duo 2 and apple tv I can do exactly what?

And can I expect to be streaming my desktop to my apple tv so I can play battlefield 2 on my 42 inch anytime soon?

Pleaseeeeeeeeeeeeeeeeeee!!!!!!!!!!!!
DsurioN
No.
joe75
DsurioN, nice work thumbsup_anim.gif

This looks like the best guide so far.
semaja2
I have a solution that you can use to make a way to exit the TV, simply put...

A small daemon that is a startup item, its opens the apple remote in non exclusive mode and waits for the menu hold signal, at that point it will logout the user.

I can have a that daemon whipped up in a few minutes if someone wants it made...
GBK.Xscape
i want it, please!!!!!!
yea this was a piece of cake to get up and running, thanks for the guide! i cant wait to put this to use
semaja2
ok well ill get cracking on it right away then, nothing fancy it will just be a minor app and yeh ill have it in about 10-20 mins just need to do a bit of R&D and then ill post a beta for you guys to test while i get my own setup working
GBK.Xscape
i just got video output working with the dvi-svideo cord and i hooked up the sound to my surround sound system. man this is awesome, i just saved myself $300 dollars. i am streaming from my hackintosh in my brothers room. is there a way to make this play divx or xvid files?
semaja2
ok i got a prototype coded, just used my base apple remote code to build it so pardon the well left overs tongue.gif

i didnt have enough time to think of a easy way to log a user out so i just made it tell the app finder to quit (yes i used ASS code just to speed my dev up) so im assuming this will hopefully work

all you need to do is place it in the startup items and it should be ready to go when you log into that user, just hold down the menu button and it will quit finder and hopefully put you back to your old desktop, i can make it just fast user switch instead if you guys want.

http://files.semaja2.net/AppleTV.zip
http://files.semaja2.net/AppleTV.source.zip

so yes please get back to me on your results, and if you know how to log a user out please do tell me tongue.gif

PS. ill work on a newer version that lets you set what u want to happen (quit/switchuser/logout)
GBK.Xscape
how do i place this in the startup items?
anyone??
semaja2
ok well i did some experiments on my machine after installing it and it seems more complicated then what i expected, will take some more experimenting

im thinking the process might need to be killed completely :S and that might not even work...
lord_muad_dib
appleScript+shortcut?
semaja2
Well ill do more testing on the remote system to see if its even working, then its just a matter of finding a command to kill the appleTV (i even used ARD to try to log a user off or lock screen all that stuff and none of it worked)
hackand
I think I might have found a potential solution to use the media on local Apple TV installs, that is, one-computer setups that want to run aTV as Front Row. I found this over at Awkward TV, I think it could work, but honestly, I can't understand it. If someone smarter than me is willing to simplify this a bit for the rest of us, we might have a solution and I'd appreciate it a lot biggrin.gif
semaja2
ok minor success so far, you cant kill the finder process because it relaunches, but you can kill the login window to log it out...

sudo killall loginwindow

this will logout all users btw, working on automating a way to kill it only for a specified user, now ive also noticed applications dont launch when the finder loads... so its going to be hard to make it work still without another machine

this works:

ps ux -U brad | grep loginwindow | awk '{print "sudo kill " $2""}' |sh
ptaylor
QUOTE(DsurioN @ Mar 28 2007, 12:05 AM) *
You'll only see the device in iTunes if you go to Sources -> and then (if you want to stream) "connect to another itunes" and if you want to sync, go to the syncing menu item (i forget exactly since I'm not in appleTV right now). You'll get a screen with a number on it, and then you have to enter that code in iTunes. It worked perfectly for me and my other computer sees it as a 170 gig apple TV! thumbsup_anim.gif


That's just it though - I am going to that screen in AppleTV and leaving it there with the numbers up on it while I go to my wife's Mac. There, I don't see what to do in iTunes to get it to recognize the AppleTV... Where in iTunes do you enter that code?
DsurioN
Make sure in the iTunes preferences you have "look for apple TV's" enabled and then it should show up in the source menu on the left. It worked for me... After that you just click on the apple TV on the menu and enter the code. (if you just selected streaming, the icon will disappear again, if you selected "sync" it will start uploading to the 'appleTV'.
semaja2
Ok heres the working dameon (Failed again... seems the AppleTV doesnt behave nicely, tested using a normal finder but fails in using the AppleTV version):

download : http://files.semaja2.net/AppleTV.zip
source : http://files.semaja2.net/AppleTV.source.zip
(I hope even know it failed i hope it sparks a idea in someones head)

Now place it into your applications folder (you can change this but you need to change the below commands)

Now open the terminal and enter (replace the appletv user with the short name of your appleTV user): sudo /Applications/Apple\ TV\ Quit\ Daemon.app/Contents/MacOS/Apple\ TV\ Quit\ Daemon -user appletv

It will ask you for your password enter it and it launches, now fast user switch to your appleTV account and enjoy, when finished hold down "menu" until it returns you to the login screen

PS. i take no blame for any damage caused for using this daemon and will not be accountable for anything that may come of it
PSS. sorry if theres bugs or whatnot but im coding this very late at night and in a rush
PSSS. this can also be used to log out of your own user quickly ohmy.gif
TsubakiSama
AppleTV works very nice on my Intel C2D 17" iMac biggrin.gif
vhrocks
QUOTE(semaja2 @ Mar 28 2007, 08:49 AM) *
Ok heres the working dameon (Failed again... seems the AppleTV doesnt behave nicely, tested using a normal finder but fails in using the AppleTV version):

download : http://files.semaja2.net/AppleTV.zip
source : http://files.semaja2.net/AppleTV.source.zip
(I hope even know it failed i hope it sparks a idea in someones head)

Now place it into your applications folder (you can change this but you need to change the below commands)

Now open the terminal and enter (replace the appletv user with the short name of your appleTV user): sudo /Applications/Apple\ TV\ Quit\ Daemon.app/Contents/MacOS/Apple\ TV\ Quit\ Daemon -user appletv

It will ask you for your password enter it and it launches, now fast user switch to your appleTV account and enjoy, when finished hold down "menu" until it returns you to the login screen

PS. i take no blame for any damage caused for using this daemon and will not be accountable for anything that may come of it
PSS. sorry if theres bugs or whatnot but im coding this very late at night and in a rush
PSSS. this can also be used to log out of your own user quickly ohmy.gif


Does this work? Or did you edit the post to say it failed?
DsurioN
I've come upon a keyboard shortcut recently:

shift-option-command-esc

This is supposed to quit the frontmost app, i'm not at home right now so i can't test it, but if you try this on your normal user (just double-clicking on the hacked Finder.app) and try the keyboard shortcut, might work.
macprodan
cant seem to get it to work, the finder with no extensions wont let it be sudo'd. ?
GBK.Xscape
hey tried the shift option command esc and got nothing, i even tried it in my regular install and got nothing
Sabr
QUOTE(f#a#oo @ Mar 28 2007, 03:48 AM) *
The progress everyone has made on the AppleTV over the course of a week is outstanding!


Indeed, fantastic work guys. Excellent progress! smile.gif

Anyone know the status of aTV working on an OSx86 box?
ssbands04
okay....I was able to find something in the comments of AppleTVhacks.net that gave a link to a rapidshare file download......This has the whole apple tv os as a simple application that is easy to use and doesn't require anything besides running the installer.

I got it to run, and do everything it should, but I can't find a way to quit it (seems to be an unfortunate trend) and I don't know how to find out if it actually has SSH enabled, etc. I'm a noob to SSH so I wouldn't even know where to start, but I'd love to get this working to some extent

Thanks in advance guys...you rock!

Jacob
deamobile
I only get through the intro, then it crashes.
It didn't work, so i deleted the dmg :$
Now i believe i know where the problem lies, but i can't find apple tv os anywhere >.<
ssbands04
this may help: REMOVED URL---i put up the wrong one......check a few posts down
therealduckie
Not sure why I had to re-enter my info for an account here, but...HI! Remember me? wink.gif

Ok, got it installed fine. I didn't even bother to reboot. All I did was log out, then back in and it worked perfectly.

TOO perfectly. I had to power off my Mini because I was unable to get back to my other logged in name.

Are we working on a way where we can switch back and forth between users to make this more usable to those of us without 2 Macs laying around?

IN Windows, you can click 'Windows+L" to switch users. Am I missing a key combo in Mac to do the same? Perhaps that would help? If this combo doesn't exist, maybe a script to create it?
ssbands04
Try the installer above.....I promise (at least for me) that it didn't mess up my system in any way, shape, or form.........this is a great solution if you don't want to have to deal with dual booting, and it just works in the current account.....

Anyone that can figure out how to quit the app would truly be my hero
therealduckie
that archive has a password, ssbands04
Jlentz823
its not working the rar is not unraring
ssbands04
wait then it may be the other file it's a gigasize one........Does anyone know what terminal command should be used to kill all running programs on a osx box? I think that that may be the best bet for now doing it over ARD

http://www.gigasize.com/get.php/1002016/Apple_TV_1.1.dmg

yeah that should be it........
therealduckie
QUOTE(Jlentz823 @ Mar 28 2007, 04:03 PM) *
its not working the rar is not unraring


That's because it has a password attached to it...which, like the OSX86 disk image on PirateBay, seems to be conveniently missing and mysteriously---noone knows what they are or they aren't telling on purpose.

I don't like games.

QUOTE(ssbands04 @ Mar 28 2007, 04:08 PM) *
wait then it may be the other file it's a gigasize one........Does anyone know what terminal command should be used to kill all running programs on a osx box? I think that that may be the best bet for now doing it over ARD

http://www.gigasize.com/get.php/1002016/Apple_TV_1.1.dmg

yeah that should be it........


hmm...what's the password to the file you first linked us to?

Also, gigasize and Firefox don't play nice together. The image doesnt show up.

You sure you aren't working for Apple and trying to keep people confused and downloading useless files wink.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.