Monday, March 26, 2007

Helpful Commands for Apple TV Hacking

Unload Watchdog (should put this in a startup script)
kextunload -v -b com.apple.driver.AppleTCOWatchdog

Disable Ripstop: (part of watchdog)

mkdir /etc/mach_init.disabled
mv /etc/mach_init.d/ripstop.plist /etc/mach_init.disabled

Change your default Finder:
defaults write /Library/Preferences/com.apple.loginwindow Finder /path/to/your.app

Launch the Default Finder:
/System/Library/CoreServices/Finder.app/Contents/MacOS/Finder

Enable VNC:




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 admin -privs -all -restart -agent -menu



Then VNC to the ip address of the box with password 'frontrow'

SCP files from another OSX machine Desktop to Apple TV:
sudo scp -r ~/Desktop/VLC.app/ frontrow@192.168.1.114:/tmp

Move files from /tmp to Media Partition:
mv /tmp/VLC.app /mnt/Media/

Launch VLC movie in fullscreen
(assumes you've copied the VLC app to the Media Partition)

/mnt/Media/VLC.app/Contents/MacOS/VLC -f --video-on-top /mnt/Media/movie.avi

Files that might come in handy:
sshd for OSX (put in /usr/sbin/)
wget for OSX