Difference between revisions of "Enable AFP Server"

From AwkwardTV
Jump to: navigation, search
(AppleTV 1.1 software)
Line 29: Line 29:
  
 
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.
 
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:
 +
<pre>sudo /usr/sbin/AppleFileServer</pre>
 +
 +
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 ==
 
==AppleTV 2.0 doesn't work ==
Line 40: Line 47:
 
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...
 
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...
  
== Setting up the server ==
+
[[Category:How-to]][[Category:1.1]]
 
 
If you'd like to start appleshare without rebooting, run:
 
<pre>sudo /usr/sbin/AppleFileServer</pre>
 
 
 
Once AFP is running, you can mount the OS and Media partitions from the AppleTV as user 'frontrow', with the password 'frontrow'.
 
 
 
[[Category:How-to]]
 

Revision as of 09:50, 20 March 2008

AppleTV 1.0 software

Editing /etc/hostconfig will start Appleshare service on boot.

Simply change:

AFPSERVER=-NO-

to

AFPSERVER=-YES-


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.

Simply change:

AFPSERVER=-NO-

to

AFPSERVER=-YES-

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:

sudo /usr/sbin/AppleFileServer

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

Illegal instruction

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...