Ever wanted to mirror your iPhone, iPad, iPod or Mac to your TV, but you had no Apple TV?
Now you can without an Apple TV. With a Raspberry Pi and some free time you can transform your Pi into an AirPlay device that can mirror your iDevice to your TV using rPlay!

If you liked this instructable, please vote it! Thanks!

What you need:
1. A Raspberry Pi
2. A Wifi dongle or Ethernet connection
3. A PC
4. USB keyboard and mouse
5. An MicroSD card (4 GB or larger)
6. TV or a HDMI screen
7. HDMI cable
8. MicroUSB charger

Step 1: Preparing Your Pi

First, you must prepare your Pi!

Download the Raspbian image here: https://www.raspberrypi.org/downloads/raspbian/

Extract the image from the archive and plug your microSD card into your pc. Format it using SD Card Formatter (You can download it here: https://www.sdcard.org/downloads/formatter_4/ )

Using Win32DiskImager (Download it here: http://sourceforge.net/projects/win32diskimager/ ), select the location of your Raspbian Image , the SD card drive and than press 'Write'

After the program finishes writing the OS to the SD card, unplug your SD card. You won't need the PC anymore. :)

Step 2: Setting Up Your Pi

Now, it's time to set up your Pi!

Plug your microSD card, USB keyboard and mouse, Wifi dongle or Ethernet cable, HDMI cable into the Pi. After that plug the microUSB charger too. Wait for the Os to load and than you can login with pi as the username and raspberry as the password.When the configuration menu shows up, expand the filesystem and n Advanced Option select memory split and type 256 . After that, reboot the Pi. If you are using Wifi dongle, type startx to launch the desktop and than connect to your network.

After that, you must update your Pi to the newest version. Open a terminal and write:

sudo apt-get update

sudo apt-get upgrade

sudo rpi-update

and wait for the Pi to update. After that, reboot your Pi.

Step 3: Installing the Software

You must install the needed software:

sudo apt-get install libao-dev avahi-utils libavahi-compat-libdnssd-dev libva-dev youtube-dl

wget -O rplay-1.0.1-armhf.deb http://www.vmlite.com/rplay/rplay-1.0.1-armhf.deb

sudo dpkg -i rplay-1.0.1-armhf.deb

Now you have installed rPlay and it will run automatically on boot. Reboot your Pi.

Step 4: Activating RPlay

Before you use rPlay, you must enter the license key.

Launch the desktop and open the web browser.

Type http://localhost:7100/admin and hit enter.

The username is admin and password admin.

Scroll to the end of the page and enter the License key (License key: S1377T8072I7798N4133R)

Step 5: Connecting Your IDevice to RPlay

On your iDevice, go to Airplay and select rPlay(raspberry) . The mirroring should begin!

Android users can use the YouMap app in order to connect to rPlay.

If you liked this instructable, please vote it! Thanks!

The End!

<p>Thanks for the instructions! Everything went fine while installing, but it doesn't show up on any iOS device. Any ideas?</p>
<p>Nothing shows up for me too. Make sure you are on the same network as your pi.</p>
<p>Will this work without being on a wireless network, say in a car.</p>
<p>No airplay uses wifi</p>
<p>I can reach the admin page and successfully edit settings but nothing ever shows up on iphone or imac. I am pretty sure that since 10.10 and def since 10.11 OSx Airplay spoofing like this has been patched</p>
<p>Never could make this work. Try Volumio, it works with Airplay, Spotify, NAS, internet radio and more. You do need to devote a Pi to music, but it works.</p>
<p>On IOS 10.2.1 it doesn't show rPlay in the Airplay list</p>
<p>typo in above: error is &quot;rplay-1.0.1-armhf.deb&quot; is not a debian format archive</p>
<p>confirm the saved file name. It was rplay-1.0.1-armhf.deb.2 when I completed the installation</p>
<p>Installed, rPlay is running on the Pi, but IOS 10.2 doesn't show rPlay in the Airplay list. So, for me, it does not work. </p>
<p>Hello!</p><p>Can anyone prove that this instruction works in IOS 10.2 or MacOS 10.12 ? Installation went smoothly but I don't see rplay device in the list. Thank you!</p>
<p>when i execute the final command (sudo dpkg -i rplay-1.0.1-armhf.deb) i get the error:</p><p>dpkg-deb: error: 'play-1.0.1-armhf.deb' is not a debian format archive</p><p>any ideas?</p><p>thanks</p>
<p>is not showing the raspberry in the airplay list (ios10 and macosx sierra)</p>
<p>Hi all, i was wondering if this would work for IOS10? I have recently update my Iphone. Thanks in advance,</p>
<p>Has anyone come up with a solution for this? It shows up as an Airplay device in iOS 9, but the rpi just isn't receiving any mirroring. Setup went smoothly with no errors. Running latest rasbian.</p>
<p>I tried this last night, May 16 2016, with a MacBook Pro Retina OSX 10.11.5 and an iPhone 5S iOS 9.3.2.</p><p>The tutorial worked perfectly on the Raspberry PI, but, although it showed up as an airplay device on both the Mac and iPhone, audio would not play and mirroring was not available either.</p><p>I did however install 'shairport' on another card, using Raspbian Jessie Lite, it doesn't do mirroring at all, but it did play audio, perfectly.</p><p>tutorial for shairport on jessie lite<br>http://computers.tutsplus.com/tutorials/using-a-raspberry-pi-as-an-airplay-receiver--mac-54316</p><p>enabling wifi in jessie lite<br>https://thepihut.com/blogs/raspberry-pi-tutorials/83502916-how-to-setup-wifi-on-raspbian-jessie-lite</p><p>now I just want to be able to set that card to boot without asking for a username and password and to automatically run the shairport application.</p><p>Thanks to <a href="/member/edyboy12/" rel="nofollow">edyboy12</a> for posting the tutorial, it's a shame that it seems Apple have moved the goalposts though.</p>
<p>i did all the step and i can see on my ipad and connect but doesnt show anything...any solution? just update my ipad and still nothing</p>
<p>I have same problem actually, I can see connection as &quot;rplay(raspberrypi)&quot; on my iphone when I touch AirPlay. I select it and touch done but nothing appear screen of raspberry pi3. Any solution please ?</p>
<p>Hi folks, was looking forward to this being the first programme i try to install on my Pi, however after following the instructions i'm getting an error message after step 3 (the second line of code) doesn't seem to install correctly when running the 3rd line of code.</p><p>Has anyone else had an issue with this step?</p><p>I've updated my software, rebooted etc. but to no avail.</p>
<p>don't do the third comman</p>
I got an error,i have lollipop and root ,using youmap<br>
<p>You must start the Daemon first (press the green start button).</p>
Hi! I have a raspberry b+ with raspbian. I use yuomap but mirroring don t work... i don t understand what do with youmap green button .... sorry for my not good english
<p>press i</p>
thx ,solved
<p>Hey, I'm running the new Raspberry Pi 3 OS X El Capitan 10.11.13. I had no problem throughout the tutorial, but rplay isn't showing up on my Airplay. Any advice?</p>
<p>I think there's a problem with the License key</p><p>Iv'e used License key:S1377T8072I7798N4133R</p><p>Got &quot;rplay&quot; running on my raspberry pi model b. My Macbook finds it on the network. I see the little screen icon in the topbar. In it, I can see the &quot;rplay(raspberrypi)&quot; AirPlay device. But when I'm trying to connect to it, I get &quot;Could not connect to 'rplay (raspberrypi)'&quot;.</p>
<p>Do you know any free software for windows users to share screen with rplay?</p><p>I know the AirParrot works fine but I am looking for free software.</p>
This is not free actually, and just mirror the screen, audio not included. You can try Reflector
<p>Has anyone got it working with iOS 9.2.1, please?</p>
<p>Does not seem to work with IOS 9.2.1. iPhone connect via Airplay but nothing shows up on the Raspberry. I had no problems with the installation instructions and everything seemed to work, no errors, but just does not want to mirror my iPhone.</p>
<p>I'm having the same luck with ios 9.2.1. Everything seems to install on the pi, what I've noticed is that the icon next to the &quot;rplay (raspberry pi)&quot; is not the same as in this instructable, it kind of looks like an iPod, not a TV. Notice the TV icon next to my &quot;Living Room Apple TV&quot;</p>
<p>I tried to do it, but when I chose &quot;rplay (raspberry pi)&quot; from the AirPlay menu, nothing happens on the rpi's screen. What is wrong?</p>
<p>I did all the steps, but when I select rplay on AirPlay nothing happens. No sound or anything. </p>
<p>broke in IOS 9</p>
<p>hello it plays sound but no mirroring, the mirroring worked before but not anymore</p>
<p>it shows and it is the speaker no mirroring. when I tap on it and play music nothing comes out the pi. Music streaming doesn't work on kodi as well so maby it's the software on my phone. (My phone is on ios 9.2 beta 4)</p>
<p>I was able to find my rplay on my network when I finished the install. After I rebooted the pi it disappeared. I have also stopped and restarted rplay. Still not showing up on my iOS device (6s +)</p>
<p>i have done upto activating rplay and successfully entered licence key.</p>
<p>hi can you please explain setting for android. i cant figure it out. ASAP please im really exited about this project.</p>
<p>My installation has stopped working 3 weeks ago. The computers cannot connect to the raspberry pi, although rplay is shown in the Airplay menu. I guess VMLite are cancelling the serial numbers to make place for the paid version of the app? Otherwise I don't get it. I've even tried reinstalling avahi and all the rest, to no avail.</p>
<p>I followed the steps and everything worked. I connected to my rasp pi via airplay, but nothing happens after it connects.</p>
<p>I followed all steps, but the mirroring don't start. I use a ipad 4th gen with ios9.1</p>
<p>I followed the instructions to install everything, and it seems to be working (shows up in the AirPlay list of my iPhone 6 with iOS 9.1), but no sound comes from the pi 2. Has anyone else had this problem?</p>
<p>I got this error when typing startx</p><p>X.Org X Server 1.12.4</p><p>Release Date: 2012-08-27</p><p>X Protocol Version 11, Revision 0</p><p>Build Operating System: Linux 3.2.0-2-mx5 armv7l Debian</p><p>Current Operating System: Linux raspberrypi 3.18.11-v7+ #781 SMP PREEMPT Tue Apr 21 18:07:59 BST 2015 armv7l</p><p>Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1776 bcm2708_fb.fbheight=952 bcm2709.boardrev=0xa01041 bcm2709.serial=0xcdf3667 smsc95xx.macaddr=B8:27:EB:DF:36:67 bcm2708_fb.fbswap=1 bcm2709.disk_led_gpio=47 bcm2709.disk_led_active_low=0 sdhci-bcm2708.emmc_clock_freq=250000000 vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000 dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p10 rootfstype=ext4 elevator=deadline rootwait</p><p>Build Date: 11 February 2015 09:31:17PM</p><p>xorg-server 2:1.12.4-6+deb7u6 (Julien Cristau &lt;jcristau@debian.org&gt;) </p><p>Current version of pixman: 0.33.1</p><p>Before reporting problems, check <a href="http://wiki.x.org" rel="nofollow"> http://wiki.x.org</a></p><p>to make sure that you have the latest version.</p><p>Markers: (--) probed, (**) from config file, (==) default setting,</p><p>(++) from command line, (!!) notice, (II) informational,</p><p>(WW) warning, (EE) error, (NI) not implemented, (??) unknown.</p><p>(==) Log file: &quot;/var/log/Xorg.0.log&quot;, Time: Wed Oct 14 19:34:44 2015</p><p>(==) Using system config directory &quot;/usr/share/X11/xorg.conf.d&quot;</p><p>FATAL: Module g2d_23 not found.</p><p>The XKEYBOARD keymap compiler (xkbcomp) reports:</p><p>&gt; Warning: Type &quot;ONE_LEVEL&quot; has 1 levels, but &lt;RALT&gt; has 2 symbols</p><p>&gt; Ignoring extra symbols</p><p>Errors from xkbcomp are not fatal to the X server</p><p>PLZ HELP</p>
<p>try running the following commands:</p><p>sudo apt-get update</p><p>sudo apt-get upgrade</p>
<p>Thanks that worked but now dosent the licence key work</p>
<p>Can you be more specific? What exact part did you try and what were the unexpected results you got?</p>
<p>This problem is fixed. Now i just need a license key</p>
<p>The one provided in the above guide worked for me.</p><p>S1377T8072I7798N4133R</p>

About This Instructable




More by edyboy12:AirPlay Mirroring without Apple TV (using RPi) 
Add instructable to: