Apple TV Binaries

From AwkwardTV
Revision as of 15:00, 1 December 2007 by Mcka (talk | contribs) (Test if it works)
Jump to: navigation, search

There are missing some important binaries on Apple TV, if you want to work on the commandline using SSH. I have compiled some binaries from source on an Intel Mac, which work on Apple TV.

Download precompiled binaries

gunzip binary source manpage
gzip binary source manpage
nano binary source manpage
unzip binary source manpage
wget binary source manpage
zip binary source manpage

Note: There are no manpages installed on Apple TV, but you can find them online, e.g. from Apple:

Compile your own binaries

If you don't trust other people or you need different binaries, you can also compile binaries by yourself. If you have an Intel Mac this is quite simple - as long it's not very complex software which needs libraries...

An example how I created the gzip and gunzip binaries:


To compile binaries, you must have the Apple IDE xcode installed:

Download the Source

Go to and download the latest version of the gzip source code (e.g. gzip-1.2.4.tar.gz).

Extract the Files from Archive

How this works depends on the file type. In case it's .tar.gz:

tar -xzf gzip-1.2.4.tar.gz


Now you have to run the configure script. Since you don't want to install the created files on your Mac, i'd recommend using the --prefix switch, to install the files somewhere else:

cd gzip-1.2.4
./configure --prefix=$HOME/apple_tv_files


Now start compiling:


make install

Now install the binaries to the directory specified by --prefix:

make install

After that, the binary should be in $HOME/apple_tv_files/bin. In this case, you will wind gzip as well as gunzip.

Test if it works

E.g. try to display the --help output:

$HOME/apple_tv_files/bin/gzip --help

If it works, copy the file to your Apple TV and try if it works there too. If you have more complex applications which need some libraries, this will not work that easy, but for the simple tools mentioned above it worked fine.

Note: For zip and unzip this worked a little bit different:

cd zip232\ Folder
make -f unix/Makefile generic
./zip --help #that's the created file

PS: if you wonder about the page, I'll write something about that in the forum soon.