loading

This tutorial will go through all of the necessary steps to install Moonlight onto your Raspberry Pi. Moonlight is used to stream games from a powerful PC to a Raspberry Pi for greater portability and ease of use. I use it to play games on a TV while my actual PC is in my office.This tutorial assumes you have STEAM installed.

EDIT: Raspbian Wheezy is the only one working right now. Jessie just screws it up. Hope that saves you headaches.

Step 1: Is Your PC Compatiable?

To check and see if your PC is compatible, you need to download Geforce Experience. Once installed, check that under game stream it says Ready with a green check mark.

Step 2: Adding Moonlight to the Pi's Repo List

Open up Terminal and type:

sudo nano /etc/apt/sources.list

and then hit enter. At the very bottom, copy and paste this:

deb http://archive.itimmer.nl/raspbian/moonlight wheezy main

After adding the line successfully, exit by holding (ctrl + x) and then hit (y) and finish with enter. Refer to the picture to get an idea of how it should look.

Step 3: Installing Moonlight

Open a new terminal and run these commands:

sudo apt-get update

sudo apt-get install moonlight-embedded

Confirm any changes that are asked by just typing Y.

Depending on your network speed, this may take awhile. After everything finishes installing, close the terminal.

Step 4: Firewall Issues

For a successful pair, make sure the PI and PC are on the same network. Also, depending on what firewall you use, it may have to be disabled temporarily to stream. At the time, I used Avast and it blocked streaming completely.

On your PC, go to command prompt and type ipconfig. Look at the IPv4 address and keep it in your memory.

Step 5: Pair Your PI to a PC

On the PI, open up terminal and copy the code below:

moonlight pair X.X.X.X

Replaces the X.X.X.X with your IP address. So an example of this would be:

moonlight pair 192.168.1.101

After typing the code, the PI will generate a four digit code. On your PC, a box will pop up that says SHIELD IS REQUESTING TO CONNECT. Enter the four digit code that the Pi generated and your Pi will be successfully paired with the PC.

Step 6: Stream Your Game!

After successfully pairing, its time to stream your game! Enter the code below and replace the X.X.X.X with your ip:

moonlight stream X.X.X.X

After this, it will open STEAM on both computers and begin streaming:)

Step 7: A Few Options to Tweak

On a another how-to website, I found a list of options I will include here. These options help increase performance. To use these, just replace the options in the code with anything below:

moonlight stream options X.X.X.X

-720 Use 1280x720 resolution [default]
-1080 Use 1920x1080 resolution

-width Horizontal resolution (default 1280)

-height Vertical resolution (default 720)

-30fps Use 30fps

-60fps Use 60fps [default]

-bitrate Specify the bitrate in Kbps

-packetsize Specify the maximum packetsize in bytes

-app Name of app to stream

-nosops Don't allow GFE to modify game settings

-input Use as input. Can be used multiple times

-mapping Use as gamepad mapping configuration file (use before -input)

-audio Use as ALSA audio output device (default sysdefault)

-localaudio Play audio locally

Step 8: Stream Games to Your Hearts Content!!

Many games support streaming, so give it a shot! Hope this Instructable helped:)

Step 9:

<p>Hey Jake, do you know if this can work on the new Raspbian Jessie version? I installed it on my flash drive and I'm having trouble...</p>
<p>Moonlight doesn't support Jessie yet. I think it supported a few older versions of Jessie but the current one screws everything up. </p><p>Jacob</p>
Darn. Thought it did. Hope fully they get to it soon. I'll just have to find another SD card to reinstall wheezy for moonlight then. oops.
<p>Hey, did you ever dial back the Pi Distro and try again? </p><p>I didn't realize I had Jessie installed and at one point it worked with messed up controls, now I have nothing.</p>
<p>Here's the updated version for Jessie:</p><p>https://www.instructables.com/id/Installing-Moonlight-Game-Streaming-on-Pi-3/</p>
<p>You're a hero! Going to give this a shot this weekend and will post a comment when I have been successful</p>
<p>Haha! Thanks! Hope this helps! Let me know once you've tried it out!</p>
<p>Hey! I'll have to release an updated version of this for Jessie, because it does work on my new Pi 3 with Jessie installed, there's just a slightly-different install process.</p>
<p>please do! I have a 2 but have Jessie installed. Haven't reset SD yet</p>
<p><a href="https://www.instructables.com/id/Installing-Moonlight-Game-Streaming-on-Pi-3/" rel="nofollow">https://www.instructables.com/id/Installing-Moonlig...</a></p><p>There ya go!</p>
<p>I am going to have to try this on my new Raspberry Pi zero.</p>
<p>Yes that would be neat. You might have to tweak the options a bit for it to run smoothly. This runs great on the Raspberry Pi 2. I am on a waiting list for the Raspberry PI zero. Every site on the internet says its out of stock:(</p>

About This Instructable

6,616views

34favorites

License:

More by JacobS87:How To Install Moonlight On A Raspberry Pi  
Add instructable to: