Enable FTP Server

From AwkwardTV
Revision as of 13:08, 16 February 2008 by Drag0n (talk | contribs) (Take 2 need ftpd)
Jump to: navigation, search

There is already an FTP server on the AppleTV just waiting to be activated. It's relatively simple to do so. Cut and paste the seperate code blocks into a terminal window:

Give super-user privileges:

sudo -s

Write the FTP configuration file:

cat <<EOT > /System/Library/LaunchDaemons/ftp.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">

Reload that configuration file after changing it:

launchctl load /System/Library/LaunchDaemons/ftp.plist

Simple as that. It should start working right away.

ATV Take 2 FTP

To enable FTP server in ATV Take 2 you will also need to copy the following file which is missing in Take 2: ftpd.

Copy it from /usr/libexec/ftpd (tiger) to the same location on the ATV. Don't forget to chmod +x ftpd