Difference between revisions of "Enable AFP Server"

From AwkwardTV
Jump to: navigation, search
(intiial page)
 
Line 11: Line 11:
  
 
Once AFP is running, you can mount the OS and Media partitions from the AppleTV as user 'frontrow', with the password 'frontrow'.
 
Once AFP is running, you can mount the OS and Media partitions from the AppleTV as user 'frontrow', with the password 'frontrow'.
 +
 +
Chasd: If you need access to all platforms, WebDAV is cross platform, unlike AFP or CIFS. Since someone has been able to get Apache to run, I would like to see some try to enable WebDAV. To enable WebDAV, uncommenting the config file line that loads the dav_module, and also the line that adds mod_dav.c. Then set up Directives that create an alias and enable WebDAV, like this :
 +
 +
Inside the
 +
 +
<pre><IfModule mod_alias.c>
 +
[...]
 +
</IfModule></pre>
 +
 +
block, add this block, generally after the block of lines for CGI-
 +
 +
<pre><IfModule mod_dav.c>
 +
Alias /media "/mediadirectorypath/"
 +
 +
# Create a lock database file for this server at this path
 +
DAVLockDB /Library/Webserver/DAVLock.ical
 +
# Minimum life of a lock
 +
DAVMinTimeout 600
 +
<Directory /mediadirectorypath>
 +
DAV On
 +
AllowOverride None
 +
Options None
 +
allow from all
 +
</Directory>
 +
</IfModule>
 +
</pre>
 +
 +
Make sure the media directory is writable by the apache process.
 +
You may need to touch the lock file and set its permissions.
 +
 +
Restart apache, then use this URL in "Connect To Server"
 +
 +
<nowiki>http://<ipaddressofappletv/media/</nowiki>

Revision as of 19:10, 29 March 2007

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

Simply change:

AFPSERVER=-NO-

to

AFPSERVER=-YES-

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

Chasd: If you need access to all platforms, WebDAV is cross platform, unlike AFP or CIFS. Since someone has been able to get Apache to run, I would like to see some try to enable WebDAV. To enable WebDAV, uncommenting the config file line that loads the dav_module, and also the line that adds mod_dav.c. Then set up Directives that create an alias and enable WebDAV, like this :

Inside the

<IfModule mod_alias.c>
[...]
</IfModule>

block, add this block, generally after the block of lines for CGI-

<IfModule mod_dav.c>
Alias /media "/mediadirectorypath/"

# Create a lock database file for this server at this path
DAVLockDB /Library/Webserver/DAVLock.ical
# Minimum life of a lock
DAVMinTimeout 600
<Directory /mediadirectorypath>
DAV On
AllowOverride None
Options None
allow from all
</Directory>
</IfModule>

Make sure the media directory is writable by the apache process. You may need to touch the lock file and set its permissions.

Restart apache, then use this URL in "Connect To Server"

http://<ipaddressofappletv/media/