Introduction: Airplay to AppleTV From Linux PC

Picture of Airplay to AppleTV From Linux PC

Mirroring a desktop computers display can be easily done on a Mac, but what about Linux/Ubuntu? It can be achieved in just a few short steps. Follow these steps and you'll be pseudo-mirroring in no time!

Step 1: Getting the Files.....

Picture of Getting the Files.....

Airplaying media to an AppleTV can be done on Ubuntu/Linux using XBMC. Sharing the desktop and mirroring are not as easy however. Follow this guide and you'll be mirroring in no time!

First you need all the files. I have put a link to my copy of the files below. Download the airplay.jar file.

Airplay.jar file download

Once you have downloaded the file, place it in your home directory. Easy enough? Next Step!

Step 2: Getting a Java Runtime...

Picture of Getting a Java Runtime...

Nearly any Java Runtime Environment will work for this. The easiest one to get is the OpenJDK. If you already have it installed or Oracle's Java installed then you can skip this step.

First, you need to open the Ubuntu Software Center. Go to the top right corner, to the search bar, and search 'Java'. You should see the third or fourth one down is the OpenJDK Java Runtime 7. Make sure it is version 7 not 6. Install that and you'll be sitting pretty for the next step!

Step 3: Executing in Terminal....

Picture of Executing in Terminal....

The next step you need to open the terminal. Use the hotkey CTRL-ALT-T to open the terminal quickly.

You now need to leave your computer and go to your AppleTV. Go to Settings->General->Network and notice the IP Address. Use the DHCP one if it shows more than one. Write this down, unless you have good memory. Back to the computer.

In terminal you need to change the directory that your commands are executing in by typing - cd /home/USER - but substitute USER for your actual user name. Example in image. Now you need to type the following command -

java -jar airplay.jar -h 172.18.129.223 -d

Just remember to substitute the ip address with the address of YOUR AppleTV. You should now see your desktop on your AppleTV! If not run the command as root by typing - sudo - before the command. This is a pseudo-mirroring technique meaning that it just relays images of you desktop over time to the AppleTV so it could be a little choppy and slow but its the best we have for now. Enjoy! If you have any questions feel free to ask them in the comments!

Comments

ZhouS (author)2015-01-25

cool,but only video is passed to TV, sound can't

AndrewC7 (author)2014-12-30

Pretty cool. No sound and not very instant but pretty cool!

joey.anderson.5817300 (author)2014-09-08

cool but no mouse pointer movement unfortunately.. but still cool

kaustad (author)2014-05-07

All valid points thank you! I didn't remember the direct link but thanks for that and pointing out the typo and the command. Thanks!

some-one (author)2014-05-06

better download from google code directly, it's

https://code.google.com/p/open-airplay/downloads/detail?name=airplay.jar

...btw, it's dhcp not dchp...

...and you could do:

> ping apple-tv.local

...to determine the apple-tv's ip...

About This Instructable

170,767views

38favorites

License:

Add instructable to: