Although I do enjoy sitting at my desktop and playing games, sometimes I miss the days when could sit on the couch and play Call of Duty or GTA. Combining both and streaming games to my living room television seemed perfect.
This Instructable demonstrates the full process of installing Moonlight on a Raspberry Pi 2/3. Moonlight is a program that allows the Raspberry Pi to communicate with your computer. In order to complete this project, you should possess a general understanding of the command line and of Linux based operating systems. With this knowledge anyone with basic technical comprehension should be able to follow the steps below.
Materials Needed
GeForce GTX class GPU from list that supports Share and Shield PC Streaming
Etcher is a program that mounts and flashes the operating system we downloaded onto our SD card. Insert the SD card into the available SD port in your computer using the card reader. Download the correct version of Etcher for your computer.
Once the download is complete:
Once the program says Flash Complete! like in Picture 2, you now have a fully functional RetroPie.
Download GameStream on your host PC from the NVIDIA website. GameStream allows your PC to stream games to other devices, allowing the computer and Retropie to communicate. Once the file downloads, follow the instructions to install, leave settings as their defaults and do the following:
Next, we need to launch RetroPie for the first time and begin the initial setup. Connect an HDMIcable from the Raspberry Pi to the TV/monitor. Power up the Raspberry Pi using the 5V power supply. You will see four raspberriesat the top left-hand corner of the screen and the setup running. Wait for this setup to finish.
If everything is working properly you will see a loading screen with Emulation Station in the center of the screen. Once the loading has completed, you will be asked to setup a gamepad as you see in Picture 4.
In order to configure your WiFi, you will need to:
Click Exitand return to the page in Picture 5 and do the following to allow the computer to use the Retropie's terminal in the next step (you may need your mouse and keyboard for this part):
We will use an application called Putty to control the RetroPie terminal from our computer. DownloadthePutty.exe file that fits your PC (either 32-bit or 64-bit). Once the file downloads, follow the instructions to install, leave settings as defaults.
Now that we have Putty installed, we need to determine the IP address of the RetroPie. If you do not know how to open your Router's setup, you can follow these instructions.
We can officially connect the PC to the RetroPie using the newly acquired IP Address:
Your terminal window should look similar to Picture 7. You are now able to install the Moonlight software on your RetroPie from your PC.
There are multiple ways to determine the IP Address of our PC. The first process is described in Step 5. Another way uses the terminal to obtain the address:
You may also find the IP Address the same way you discovered the RetroPie's or by launching Control Panel:
The final page can be seen in Picture 9. Record the IP Address for later use.
In the next step, we will retrieve the shell script file for Moonlight from the Internet using "wget". This file will allow us to run and install the program through the terminal. Type the follow commands in the command line in the order they appear (you do not need to type the bolded "pi@retropie ~ $"):
pi@retropie ~ $ wget
https://raw.githubusercontent.com/TechWizTime/moonlight-retropie/master/moonlight.sh
Next we will be installing Moonlight on to the RetroPie. First, we need to make the moonlight.sh file we just obtained into an executable file. Be careful when using sudo, because the wrong command can severely damage the system.
Now that the file is an executable we can run it:
Follow the on screen instructions to finish the Moonlight setup:
Now that we have Moonlight installed and paired the PC to the RetroPie we can officially launch our Moonlight program.
After your RetroPie has fully restarted, you should see a STEAM menu item on your RetroPie's screen like in Picture 11:
Choose which fps and resolution you would like to use.
You now have a full STEAM stream as shown in Picture 12, where you can choose the game you would like to play and begin streaming. Enjoy your new STEAM streaming machine!