Airplay to AppleTV From Linux PC

228,378

44

5

Introduction: 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.....

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...

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....

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!

Be the First to Share

    Recommendations

    • Make It Bridge

      Make It Bridge
    • Big and Small Contest

      Big and Small Contest
    • For the Home Contest

      For the Home Contest

    5 Comments

    0
    ZhouS
    ZhouS

    8 years ago on Step 3

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

    0
    AndrewC7
    AndrewC7

    8 years ago on Introduction

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

    0
    kaustad
    kaustad

    8 years ago

    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!

    0
    some-one
    some-one

    8 years ago

    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...