2011-01-15, 02:37
I've recently had success in getting Airfoil http://www.rogueamoeba.com/airfoil/ running as a streaming audio server on the Apple TV running Sam's oldest image that I've since upgraded.
What's Airfoil?
Airfoil is an application that allows you to hijack your audio out on a computer and feed that audio stream to a remote set of speakers, say those that are connected to the Apple TV. What it does is hi-jack AirTunes, which is an Apple protocol for audio streaming.
Sample use case:
Capture browser audio from music streaming site and send to high-fidelity speakers connected to Apple TV.
How to:
I will assume you know how to FTP into your box, and have basic understanding of the command line and how to get access to it via terminal interface.
You will need the following:
Airfoil for linux .deb: http://rogueamoeba.com/airfoil/download/...ux.all.deb
A collection of Airfoil dll's: http://kevin.colyar.net/wp-content/uploa...l-DLLs.zip
"run_airfoilspeakers" script from this package http://rogueamoeba.com/airfoil/download/...sLinux.tgz
Badgerports repository http://badgerports.org/hardy.html
Great, now that you have the prerequisites, this is how to put it all together.
(1) Copy AirfoilSpeakersLinux.all.deb, run_AirfoilSpeakers (you'll have to find it buried inside the .tgz file) to the Apple TV via sftp or other method to /home/xbmc/
(2) Configure badgerports if you haven't done so already. When you're done be sure to enter:
(3) We need to upgrade mono to version 2.0 because some of the packages allow for .NET windows development, this is why we needed badgerports. To upgrade mono, enter the following:
(4) We'll need to install avahi-daemon now, since that is a prerequisite for AirfoilSpeakers. To install, type:
(5) Now we're ready to install AirfoilSpeakers! To do so, navigate to the folder that you currently have your AirfoilSpeakersLinux.all.deb in (I suggested /home/xbmc/ earlier) and run this code:
(6) Launch an (s)FTP client and connect to the Apple TV and copy the four .dll's that you acquired earlier (you'll have to unzip them first) and place them in /usr/lib/airfoilspeakers/. You should overwrite one or two files, but that's OK.
(7) We're almost done! Now go back to the folder you have the run_airfoilspeakers in. We'll have to change some configuration now specifically for Ubuntu. Enter the following code to enter a text editor:
Change the path variable to =/usr, so you should be replacing "./" with "usr". (thanks @Wikking for the correction)
(8) At this point we're ready to unleash the magnificence of streaming audio. To run airfoil in headless mode, enter the following code while still in the directory that "run_airfoilspeakers" is in.
I also did the following to ensure there were no permission problems:
To make it run at startup without having to manually run the script enter the following:
There you have it, it's now live and ready for you to connect to. Go on your laptop or desktop, acquire a copy of Airfoil for Windows/Mac (Warning: paid application, but free to try) and connect to the apple TV. It will appear as a penguin. You might have to try a couple different browsers to find one that works, but who knows, you might get lucky on the first try.
Cheers,
J
What's Airfoil?
Airfoil is an application that allows you to hijack your audio out on a computer and feed that audio stream to a remote set of speakers, say those that are connected to the Apple TV. What it does is hi-jack AirTunes, which is an Apple protocol for audio streaming.
Sample use case:
Capture browser audio from music streaming site and send to high-fidelity speakers connected to Apple TV.
How to:
I will assume you know how to FTP into your box, and have basic understanding of the command line and how to get access to it via terminal interface.
You will need the following:
Airfoil for linux .deb: http://rogueamoeba.com/airfoil/download/...ux.all.deb
A collection of Airfoil dll's: http://kevin.colyar.net/wp-content/uploa...l-DLLs.zip
"run_airfoilspeakers" script from this package http://rogueamoeba.com/airfoil/download/...sLinux.tgz
Badgerports repository http://badgerports.org/hardy.html
Great, now that you have the prerequisites, this is how to put it all together.
(1) Copy AirfoilSpeakersLinux.all.deb, run_AirfoilSpeakers (you'll have to find it buried inside the .tgz file) to the Apple TV via sftp or other method to /home/xbmc/
(2) Configure badgerports if you haven't done so already. When you're done be sure to enter:
Code:
sudo apt-get update
(3) We need to upgrade mono to version 2.0 because some of the packages allow for .NET windows development, this is why we needed badgerports. To upgrade mono, enter the following:
Code:
sudo apt-get install cli-common monodevelop
(4) We'll need to install avahi-daemon now, since that is a prerequisite for AirfoilSpeakers. To install, type:
Code:
sudo apt-get install avahi-daemon libavahi1.0-cil
(5) Now we're ready to install AirfoilSpeakers! To do so, navigate to the folder that you currently have your AirfoilSpeakersLinux.all.deb in (I suggested /home/xbmc/ earlier) and run this code:
Code:
sudo dpkg -i AirfoilSpeakersLinux.all.deb
(6) Launch an (s)FTP client and connect to the Apple TV and copy the four .dll's that you acquired earlier (you'll have to unzip them first) and place them in /usr/lib/airfoilspeakers/. You should overwrite one or two files, but that's OK.
(7) We're almost done! Now go back to the folder you have the run_airfoilspeakers in. We'll have to change some configuration now specifically for Ubuntu. Enter the following code to enter a text editor:
Code:
sudo nano run_airfoilspeakers
(8) At this point we're ready to unleash the magnificence of streaming audio. To run airfoil in headless mode, enter the following code while still in the directory that "run_airfoilspeakers" is in.
Code:
./run_airfoilspeakers --gui=false
I also did the following to ensure there were no permission problems:
Code:
sudo chmod 777 run_airfoilspeakers
sudo chown root:root run_airfoilspeakers
To make it run at startup without having to manually run the script enter the following:
Code:
sudo cp run_airfoilspeakers /etc/init.d
sudo chmod +x /etc/init.d/run_airfoilspeakers
sudo update-rc.d run_airfoilspeakers defaults 98 02
There you have it, it's now live and ready for you to connect to. Go on your laptop or desktop, acquire a copy of Airfoil for Windows/Mac (Warning: paid application, but free to try) and connect to the apple TV. It will appear as a penguin. You might have to try a couple different browsers to find one that works, but who knows, you might get lucky on the first try.
Cheers,
J