Archive:Install XBMC on Apple TV 1 (Linux): Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
(Restore back for now for formatting fix. Syntax highlighting not really needed)
Line 7: Line 7:
==Before installing a replacement OS==
==Before installing a replacement OS==
{{ATV1 linux warning}}
{{ATV1 linux warning}}
== Crystalbuntu ==
== Crystalbuntu ==
:''See also: '''[[Crystalbuntu]]'''''
:''See also: '''[[Crystalbuntu]]'''''
Line 24: Line 25:
# Download http://download.stmlabs.com/atv-images/ubuntu/hardy/usb/USB.img.gz
# Download http://download.stmlabs.com/atv-images/ubuntu/hardy/usb/USB.img.gz
# Open Terminal, navigate to the downloaded file, and enter the following command followed by return:
# Open Terminal, navigate to the downloaded file, and enter the following command followed by return:
#<source lang="bash">gunzip USB.img.gz</source>
#: <pre>gunzip USB.img.gz</pre>
#Once back to the command prompt, continue with:
# Once back to the command prompt, continue with:
#<source lang="bash">diskutil list</source>
#: <pre>diskutil list</pre>
# 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'''.  
# 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'''. {{highlight|color=red|<big>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.</big>}}
{{note|{{highlight|color=#FFD1D1|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.}}}}
# Enter these commands in your Terminal window, in sequence:
# Enter these commands in your Terminal window, in sequence:
#:<source lang="bash">
#: <pre>diskutil umountDisk /dev/disk1</pre>
diskutil umountDisk /dev/disk1
#: <pre>sudo dd if=USB.img of=/dev/rdisk1 bs=16384</pre>
 
sudo dd if=USB.img of=/dev/rdisk1 bs=16384</source>
# It will ask you for your Mac OS X password; enter it and press enter.
# It will ask you for your Mac OS X password; enter it and press enter.
# Wait for the process to finish. It may take a while.
# Wait for the process to finish. It may take a while.
# 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.
# 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.
# Remove the USB drive and stick it into the ATV1, then power the ATV1 on (or reboot it).
# Remove the USB drive and stick it into the ATV1, then power the ATV1 on (or reboot it).
# 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.
# 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.
Line 45: Line 43:
# Download http://download.stmlabs.com/atv-images/installer/installer.img.gz
# Download http://download.stmlabs.com/atv-images/installer/installer.img.gz
# Open Terminal, navigate to the downloaded file, and enter the following command followed by return:
# Open Terminal, navigate to the downloaded file, and enter the following command followed by return:
#:<source lang="bash">gunzip installer.img.gz
#: <pre>gunzip installer.img.gz</pre>
 
#: <pre>diskutil list</pre>
diskutil list</source>
# 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'''. {{highlight|color=red|<big>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.</big>}}
# 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'''.  
#:{{note|{{highlight|color=#FFD1D1|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.}}}}
# Enter these commands in your Terminal window, in sequence:
# Enter these commands in your Terminal window, in sequence:
#:<source lang="bash">diskutil umountDisk /dev/disk1
#: <pre>diskutil umountDisk /dev/disk1</pre>
 
#: <pre>sudo dd if=installer.img of=/dev/rdisk1 bs=16384</pre>
sudo dd if=installer.img of=/dev/rdisk1 bs=16384</source>
# It will ask you for your Mac OS X password; enter it and press enter.
# It will ask you for your Mac OS X password; enter it and press enter.
# Wait for the process to finish. It may take a while.
# Wait for the process to finish. It may take a while.
Line 62: Line 57:
# Log-in using '''atv''' as both the username and password
# Log-in using '''atv''' as both the username and password
# Enter the following command:
# Enter the following command:
#:<source lang="bash">sudo -s</source>
#: <pre>sudo -s</pre>
# You will be asked for a password, again, which is still '''atv'''
# You will be asked for a password, again, which is still '''atv'''
# Enter the following commands:
# Enter the following commands:
#:<source lang="bash">
#: <pre>cd /</pre>
cd /
#: <pre>echo ubuntu > .distro</pre>
echo ubuntu > .distro
#: <pre>chmod 777 .distro</pre>
chmod 777 .distro
#: <pre>reboot</pre>
reboot
</source>
# Wait for the initial installation process to finish. It will ask you to remove the USB drive and reboot. Do so.
# Wait for the initial installation process to finish. It will ask you to remove the USB drive and reboot. Do so.
# Wait for the rest of the installation process to finish and soon you will be using XBMC via Crystalbuntu on the internal hard drive
# Wait for the rest of the installation process to finish and soon you will be using XBMC via Crystalbuntu on the internal hard drive

Revision as of 17:45, 28 December 2012

Template:XBMC wiki toc Inline

See also: Apple TV 1 and HOW-TO:Install XBMC on Apple TV 1 (original OS)

Apple TV 1 (silver) is no longer available from Apple, but can be purchased from alternative sources (eBay, kijiji, craigslist, etc.).

It is highly recommended that you replace the WiFi card with a Broadcom Crystal HD to enable playback of HD videos.

Before installing a replacement OS

Template:ATV1 linux warning

Crystalbuntu

See also: Crystalbuntu

Crystalbuntu is probably the best and easiest option for running a linux-based OS with XBMC on the Apple TV 1. The system updates itself and boots directly into XBMC.

Installing from Linux or Windows

If you are using a Linux or Windows computer to prepare your USB install drive, you can use the GUI installer

Installing from Mac OS X

If you are using Mac OS X to prepare your USB install drive, use the following install guides:


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
  3. Once back to the command prompt, continue with:
    diskutil list
  4. 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.
  5. Enter these commands in your Terminal window, in sequence:
    diskutil umountDisk /dev/disk1
    sudo dd if=USB.img of=/dev/rdisk1 bs=16384
  6. It will ask you for your Mac OS X password; enter it and press enter.
  7. Wait for the process to finish. It may take a while.
  8. 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.
  9. Remove the USB drive and stick it into the ATV1, then power the ATV1 on (or reboot it).
  10. 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.
  11. 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
  3. 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.
  4. Enter these commands in your Terminal window, in sequence:
    diskutil umountDisk /dev/disk1
    sudo dd if=installer.img of=/dev/rdisk1 bs=16384
  5. It will ask you for your Mac OS X password; enter it and press enter.
  6. Wait for the process to finish. It may take a while.
  7. 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.
  8. Remove the USB drive and take it to the Apple TV 1, along with a USB hub and a USB keyboard
  9. Plug in the USB hub into the Apple TV 1, and then plug the USB drive and USB keyboard into the hub
  10. Boot the Apple TV 1 and wait until it gives you an error.
  11. Log-in using atv as both the username and password
  12. Enter the following command:
    sudo -s
  13. You will be asked for a password, again, which is still atv
  14. Enter the following commands:
    cd /
    echo ubuntu > .distro
    chmod 777 .distro
    reboot
  15. Wait for the initial installation process to finish. It will ask you to remove the USB drive and reboot. Do so.
  16. Wait for the rest of the installation process to finish and soon you will be using XBMC via Crystalbuntu on the internal hard drive

Alternative guides


OpenELEC

Incomplete.png INCOMPLETE:
This page or section is incomplete. Please add information or correct uncertain data which is marked with a ?
See also: OpenELEC

Make sure to select the Apple TV build.

Manual installations