advertisement
Forums

The Forum is sponsored by 
 

AAPL stock: Click Here

You are currently viewing the Tips and Deals forum
FU: Running OS X on AppleTV - Success! ...ntp and usb questions...
Posted by: mattkime
Date: May 07, 2008 10:52PM
In follow up to: [forums.macresource.com]

OS X is running very well on my AppleTV but not without hiccups. the biggest one is that the time doesn't update properly. luckily enough its a perfectly even ratio 2 seconds to the AppleTV is 3 seconds to everyone else. So I can use it for timed events if I take this into account. However, I would like to update the time once a day at midnight (8pm on the appletv).

I found Lingon, which is an excellent interface for launchd, a tool for timed and triggered events. [lingon.sourceforge.net] I can run scripts every 40 seconds which i can't do with cron.

Does anyone know the shell command to run ntpudate?

also, i'd like the machine to reset itself if it loses connection with the camera. Does anyone know of a way to do this? is there a command line app that reports on connected devices?







Edited 1 time(s). Last edit at 05/07/2008 10:53PM by mattkime.
Options:  Reply • Quote
Re: FU: Running OS X on AppleTV - Success! ...ntp and usb questions...
Posted by: endymion
Date: May 08, 2008 12:34AM
This is very interesting to me. Too bad I sold my refurb 40GB ATV a while back. Maybe when the next rev is (ever) released...
So are you running it from an external drive entirely, along with keyboard and mouse through a USB hub?
g=
Options:  Reply • Quote
Re: FU: Running OS X on AppleTV - Success! ...ntp and usb questions...
Posted by: mattkime
Date: May 08, 2008 01:17AM
>>So are you running it from an external drive entirely, along with keyboard and mouse through a USB hub?

Yes, I installed OS X on an external USB drive. Unplug the drive and its back to normal.

I can plug in a keyboard and mouse but mostly I'm controlling it with Chicken of the VNC/Apple Remote Desktop.



Options:  Reply • Quote
Re: FU: Running OS X on AppleTV - Success! ...ntp and usb questions...
Posted by: mattkime
Date: May 08, 2008 02:05AM
hm, this seems to work -

sudo SystemStarter -d restart "Network Time"

now, does anyone know how to automate it since it needs to run as root?
Options:  Reply • Quote
Re: FU: Running OS X on AppleTV - Success! ...ntp and usb questions...
Posted by: mikebw
Date: May 08, 2008 04:29AM
can't you just login as root all the time?
Options:  Reply • Quote
Re: FU: Running OS X on AppleTV - Success! ...ntp and usb questions...
Posted by: MacMagus
Date: May 08, 2008 07:18AM
'Dunno if this still works under Leopard...

Change the user field of a cron job to "root" and it should run as root.
Options:  Reply • Quote
Re: FU: Running OS X on AppleTV - Success! ...ntp and usb questions...
Posted by: ztirffritz
Date: May 08, 2008 07:59AM
If it is running OS X you should be able to do it using CRONtab

This might help:
[www.bradrice.com]



**************************************
MacResource User Map: [www.zeemaps.com]#
Options:  Reply • Quote
Re: FU: Running OS X on AppleTV - Success! ...ntp and usb questions...
Posted by: space-time
Date: May 08, 2008 12:07PM
"the biggest one is that the time doesn't update properly. luckily enough its a perfectly even ratio 2 seconds to the AppleTV is 3 seconds to everyone else."

I am not sure I understand, so 2 seconds inside Apple TV is 3 seconds to the outside world? Like time is slowed down 1/3? 16 "hours" per day? what could cause that???

does Apple TV have an internal "clock" (quart crystal) that runs at a slower frequency than the ones used in real Macs? Maybe you can adjust this factor in a kernel extension or something, that being said, this is just a shot in the dark, I never hack an OS before.

BTW: thanks for the LaserWriter manual!!!
Options:  Reply • Quote
Re: FU: Running OS X on AppleTV - Success! ...ntp and usb questions...
Posted by: mattkime
Date: May 08, 2008 12:18PM
>>does Apple TV have an internal "clock" (quart crystal) that runs at a slower frequency than the ones used in real Macs?

Its something like that but anyone who is knowledgeable enough to fix it isn't interested in the project.

I'd prefer to avoid cron to fix the problem but at this point it looks like my only choice.

I might be able to AppleScript the System Profiler and parse it to give me the status of connected usb devices. not ideal, but possible.



Options:  Reply • Quote
Re: FU: Running OS X on AppleTV - Success! ...ntp and usb questions...
Posted by: mikebw
Date: May 08, 2008 11:17PM
What about syncing the system clock to a network time server? Should that keep it in time?
Options:  Reply • Quote
Re: FU: Running OS X on AppleTV - Success! ...ntp and usb questions...
Posted by: mattkime
Date: May 09, 2008 12:23AM
unfortunately it updates and then continue running 2/3 behind. i can run ntpdate or SystemStarter but both must be done as root.

i want to timestamp files. i'll update the time once a day and then calculate based on the difference between the current time and when it was last updated.
Options:  Reply • Quote
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 153
Record Number of Users: 186 on February 20, 2020
Record Number of Guests: 5122 on October 03, 2020