Kodi Community Forum

Full Version: [AppleTV] HOW-TO install Firefly Media Server on an Apple TV (Tutorial)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
-------
PART 2
-------

Making Firefly autostart:
Create file FireFly.sh on PC with the following text inside:
Code:
#!/bin/bash
#
/Users/frontrow/Applications/FireFly/firefly -y -f -c /Users/frontrow/firefly.conf &

Also create a file called com.FireflyLauncher.plist with the following contents:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple$
<plist version="1.0">
<dict>
        <key>Label</key>
        <string>com.FireflyLauncher</string>
        <key>RunAtLoad</key>
        <true/>
        <key>ProgramArguments</key>
        <array>
        <string>/Users/frontrow/Applications/FireFly/Firefly.sh</string>
        </array>
</dict>
</plist>

Copy file com.FireflyLauncher.plist this in /mnt/Scratch/Users/frontrow/Library/LaunchAgents/
and copy Firefly.sh script in /Users/frontrow/Applications/FireFly/

Code:
# chmod +x ~/Applications/FireFly/Firefly.sh
(CHMOD 755)

Note:
- make the folders if they do not exist
- this LaunchAgent is for user frontrow and all services required to run the server should already be running by the time this is run.
- you can test the LaunchAgent on the fly, as it were by trying the following:

Code:
# launchctl load ~/Library/LaunchAgents/com.FireflyLauncher.plist

- you can check it's loaded (either after the above or after a reboot) by:

Code:
# launchctl list
# sudo reboot

(and test if autostart is working)


------------------------------------------------
-Installing Flash player for FireFly on AppleTV:-
------------------------------------------------

Download from http://www.mellberg.org/FirePlay.zip.
Etract and copy content with WinSCP on AppleTV into the following folder:
/Users/frontrow/Applications/FireFly/admin-root/
In FirePlay.html you can edit 'IP and Port'.
Go to http://appletv.local:1024/fireplay.html and enjoy.


Copy music to /mnt/Media/Music (you can change that in config file).
Great Tutorial, I'll be trying this later.

However will Firefly enable me to share my music on apple tv and access it via itunes installed on my PC, so effectively turning the ATV into a media/music server.

Thank you
John