Difference between revisions of "Enable SSH Without Opening the Apple TV"
(→The Steps) |
|||
Line 1: | Line 1: | ||
==Parts Needed== | ==Parts Needed== | ||
− | *External USB | + | *External USB drive |
− | *partition.img repair.img and efi.img from an | + | *<tt>partition.img</tt>, <tt>repair.img</tt> and <tt>efi.img</tt> from an Apple Tv drive |
==The Steps== | ==The Steps== | ||
<font color=red>I AM WAITING FOR SOMEONE TO DO A SECONDARY CONFIRMATION PLEASE REMOVE THIS NOTE IF YOU HAVE CONFIRMED</font> | <font color=red>I AM WAITING FOR SOMEONE TO DO A SECONDARY CONFIRMATION PLEASE REMOVE THIS NOTE IF YOU HAVE CONFIRMED</font> | ||
− | We are going to modify the repair image and the | + | We are going to modify the repair image and the OS that it installs when you factory reset your Apple TV. |
− | # Mount repair.img on your Intel | + | # Mount <tt>repair.img</tt> on your Mac Intel |
# Convert the existing OS.img to one that is writeable: | # Convert the existing OS.img to one that is writeable: | ||
+ | <pre> | ||
hdiutil convert -format UDRW -o RW.dmg /Volumes/Recovery/OS.dmg | hdiutil convert -format UDRW -o RW.dmg /Volumes/Recovery/OS.dmg | ||
− | #Mount the new RW.img | + | </pre> |
− | #Copy sshd and the plist file onto the new OSBoot you created | + | #Mount the new <tt>RW.img</tt> |
+ | #Copy <tt>sshd</tt> and the <tt>ssh.plist</tt> file onto the new OSBoot you created | ||
+ | <pre> | ||
cp /System/Library/LaunchDaemons/ssh.plist /Volumes/OSBoot/System/Library/LaunchDaemons/ssh.plist | cp /System/Library/LaunchDaemons/ssh.plist /Volumes/OSBoot/System/Library/LaunchDaemons/ssh.plist | ||
cp /usr/sbin/sshd /Volumes/OSBoot/usr/sbin/sshd | cp /usr/sbin/sshd /Volumes/OSBoot/usr/sbin/sshd | ||
− | #Convert the new RW.img back into a readonly compressed image | + | </pre> |
− | + | #Convert the new <tt>RW.img</tt> back into a readonly compressed image | |
− | #Copy the NEWOS image onto the repair image | + | <pre> |
− | + | hdiutil convert -format UDZO -o NEWOS.dmg RW.dmg | |
+ | </pre> | ||
+ | #Copy the <tt>NEWOS.dmg</tt> image onto the repair image | ||
+ | <pre> | ||
+ | cp NEWOS.dmg /Volumes/Recovery/OS.dmg | ||
+ | </pre> | ||
#unmount the recovery image | #unmount the recovery image | ||
#Now we are going to setup the external drive: | #Now we are going to setup the external drive: | ||
− | + | <pre> | |
+ | dd if=partition.img of=/dev/disk# bs=1024k count=100 | ||
dd if=EFI.img of=/dev/disk#s1 | dd if=EFI.img of=/dev/disk#s1 | ||
dd if=repair.img of=/dev/disk#s2 | dd if=repair.img of=/dev/disk#s2 | ||
− | #plug in the | + | </pre> |
− | #press menu and - on the remote | + | #plug in the USB drive to the Apple TV after its booted |
+ | #press menu and - (minus) on the remote | ||
#then run factory restore | #then run factory restore |
Revision as of 17:48, 27 March 2007
Parts Needed
- External USB drive
- partition.img, repair.img and efi.img from an Apple Tv drive
The Steps
I AM WAITING FOR SOMEONE TO DO A SECONDARY CONFIRMATION PLEASE REMOVE THIS NOTE IF YOU HAVE CONFIRMED We are going to modify the repair image and the OS that it installs when you factory reset your Apple TV.
- Mount repair.img on your Mac Intel
- Convert the existing OS.img to one that is writeable:
hdiutil convert -format UDRW -o RW.dmg /Volumes/Recovery/OS.dmg
- Mount the new RW.img
- Copy sshd and the ssh.plist file onto the new OSBoot you created
cp /System/Library/LaunchDaemons/ssh.plist /Volumes/OSBoot/System/Library/LaunchDaemons/ssh.plist cp /usr/sbin/sshd /Volumes/OSBoot/usr/sbin/sshd
- Convert the new RW.img back into a readonly compressed image
hdiutil convert -format UDZO -o NEWOS.dmg RW.dmg
- Copy the NEWOS.dmg image onto the repair image
cp NEWOS.dmg /Volumes/Recovery/OS.dmg
- unmount the recovery image
- Now we are going to setup the external drive:
dd if=partition.img of=/dev/disk# bs=1024k count=100 dd if=EFI.img of=/dev/disk#s1 dd if=repair.img of=/dev/disk#s2
- plug in the USB drive to the Apple TV after its booted
- press menu and - (minus) on the remote
- then run factory restore