Crystalbuntu/Install from Mac

To run off a USB drive and not touch the internal HDD
Great for dual booting if you want to still use original ATV OS features, or to just test Crystalbuntu out.
 * 1) Download http://download.stmlabs.com/atv-images/ubuntu/hardy/usb/USB.img.gz
 * 2) Open Terminal, navigate to the downloaded file, and enter the following command followed by return:
 * gunzip USB.img.gz
 * 1) Once back to the command prompt, continue with:
 * diskutil list
 * 1) This will list all connected memory devices. Look for the one that is your USB stick. Normally, with no other USB drives connected, it is listed as disk1.
 * If your USB drive shows up as something else then you must replace that number in the instructions below. Failure to do so will likely result in data loss.
 * 1) Enter these commands in your Terminal window, in sequence:
 * diskutil umountDisk /dev/disk1
 * sudo dd if=USB.img of=/dev/rdisk1 bs=16384
 * 1) It will ask you for your Mac OS X password; enter it and press enter.
 * 2) Wait for the process to finish. It may take a while.
 * 3) After it is done Mac OS X might show a message saying that there is a disk inserted that it cannot read. This is because the USB drive has a Linux format that Mac OS X doesn't normally read. Ignore the message.
 * 4) Remove the USB drive and stick it into the ATV1, then power the ATV1 on (or reboot it).
 * 5) The first time the drive is ran it will do some first-time installation things. This only happens the very first time the new USB drive is ran.
 * 6) The ATV1 should now reboot itself, and you should be now using XBMC via Crystalbuntu via USB drive.

To make an install USB drive that will erase the internal hard drive and install Crystalbuntu

 * 1) Download http://download.stmlabs.com/atv-images/installer/installer.img.gz
 * 2) Open Terminal, navigate to the downloaded file, and enter the following command followed by return:
 * gunzip installer.img.gz
 * diskutil list
 * 1) This will list all connected memory devices. Look for the one that is your USB stick. Normally, with no other USB drives connected, it is listed as disk1.
 * If your USB drive shows up as something else then you must replace that number in the instructions below. Failure to do so will likely result in data loss.
 * 1) Enter these commands in your Terminal window, in sequence:
 * diskutil umountDisk /dev/disk1
 * sudo dd if=installer.img of=/dev/rdisk1 bs=16384
 * 1) It will ask you for your Mac OS X password; enter it and press enter.
 * 2) Wait for the process to finish. It may take a while.
 * 3) After it is done Mac OS X might show a message saying that there is a disk inserted that it cannot read. This is because the USB drive has a Linux format that Mac OS X doesn't normally read. Ignore the message.
 * 4) Remove the USB drive and take it to the Apple TV 1, along with a USB hub and a USB keyboard
 * 5) Plug in the USB hub into the Apple TV 1, and then plug the USB drive and USB keyboard into the hub
 * 6) Boot the Apple TV 1 and wait until it gives you an error.
 * 7) Log-in using atv as both the username and password
 * 8) Enter the following command:
 * sudo -s
 * 1) You will be asked for a password, again, which is still atv
 * 2) Enter the following commands:
 * cd /
 * echo ubuntu > .distro
 * chmod 777 .distro
 * reboot
 * 1) Wait for the initial installation process to finish. It will ask you to remove the USB drive and reboot. Do so.
 * 2) Wait for the rest of the installation process to finish and soon you will be using XBMC via Crystalbuntu on the internal hard drive