Enable AFP Server
AppleTV 1.0 software
Editing /etc/hostconfig will start Appleshare service on boot.
AppleTV 1.1 software
- Copy from you mac Intel computer the binary:
cp -R /System/Library/CoreServices/AppleFileServer.app /Volumes/OSBoot/System/Library/CoreServices/AppleFileServer.app
- Alternatively you can extract AppleFileServer.app from your Apple TV's recovery partition, this method involves:
- extracting a dmg from the disk0s2 partition : dd if=/dev/disk0s2 of=recovery.dmg bs=1m
- transferring that dmg to your Mac (verified on a G4 so no Intel mac required for this).
- mounting the dmg
- mounting the "osboot.dmg" found inside the mount
- Find AppleFileServer.app in that mount, in /System/Library/CoreServices
- Editing /etc/hostconfig will start Appleshare service on boot.
CAUTION: If your AppleTV came with software version 1.1 factory installed then the recovery partition doesn't seem to contain the required binary any longer. Copying it from a mac machine didn't work for me either as AppleFileServer crashed every time on startup with "Illegal instruction" error. The only way I found to obtain the working AppleFileSever was to dump the recovery partition from AppleTV, which originally came with software version 1.0, and copy it from there.
Setting up the server
If you'd like to start appleshare without rebooting, run:
Once AFP is running, you can mount the OS and Media partitions from the AppleTV as user 'frontrow', with the password 'frontrow'.
AppleTV 2.0 doesn't work
I tried the same install as for AppleTV 1.1, and I get the message
when trying to start the file server.
I had to copy the folder
/System/Library/PrivateFrameworks/ByteRangeLocking.framework as it was asked for.
The files I copied come from a Mac OS X Tiger disk which was running on the AppleTV. But I didn't try to start the AppleFile Server at the time...