Monday, March 26, 2007

Helpful Commands for Apple TV Hacking

Unload Watchdog (should put this in a startup script)
kextunload -v -b

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/ Finder /path/to/

Launch the Default Finder:

Enable VNC:

echo 71463E00FFDAAA95FF1C39567390ADCA > /Library/Preferences/

sudo /System/Library/CoreServices/RemoteManagement/ -configure -clientopts -setvnclegacy -vnclegacy yes

sudo /System/Library/CoreServices/RemoteManagement/ -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/ frontrow@

Move files from /tmp to Media Partition:
mv /tmp/ /mnt/Media/

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

/mnt/Media/ -f --video-on-top /mnt/Media/movie.avi

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