In our company we are using Apple TV's and we want to provide the possibility to mirror from every device, Mac and Windows are not a problem but I cannot find the way to do it for Ubuntu 16.04, does anybody knows how?
-
1Does this instructables.com/id/Airplay-to-AppleTV-From-Linux-PC/step3/… help? I have no hardware to check.– BruniCommented Oct 5, 2016 at 15:35
-
Seems to work if you set a password on the apple tv. I was not able to run it without password configured.– MirceaCommented Jul 1, 2019 at 13:37
1 Answer
You will need several things:
- IP address for Apple TV
- Airplay.jar from https://github.com/jamesdlow/open-airplay/releases
- Properly installed java (to execute jar file from your terminal)
Here is one way you can tell if you're Apple TV is detectable by your computer on the network:
ping appletv.local
Ok, next step is to execute airplay.jar
from a terminal (do this from a directory which contains jar):
java -jar airplay.jar -h 172.18.129.223 -d
If your appleTV device has some credentials you can use
java -jar airplay.jar -h hostname[:port] [-a password] -d
The most important thing to note is that it is not true airplay screen sharing, it is emulated through taking screenshots of your desktop each second and sending it to AppleTV as a photo. However, it is the best way I know to deal with screen sharing to AppleTV from a non-apple device. (Proprietary sucks!)
You can also find a list of other libraries to work with AppleTV here: https://github.com/jamesdlow/open-airplay
That's it! Now you should see your screen on the AppleTV.
Credit to Vadim Kirilchuk's blogspot
-
4My friend's Apple's TV says that iOS +7.1 is required. Looks like the the last version in github is not compatible with current AppleTV.– alfCCommented May 15, 2017 at 18:43
-
2