Introduction: Raspberry Pi: Steam Streaming

Picture of Raspberry Pi: Steam Streaming

Although I do enjoy sitting at my desktop and playing games, sometimes I miss the days when I used to 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. The basic knowledge necessary to complete this Instructable includes a general understanding of the command line and of Linux based operating systems. With this knowledge anyone person with basic technical comprehension should be able to follow the steps below.

Step 1: Parts, Materials, and Tools

Picture of Parts, Materials, and Tools

Step 2: Installing RetroPie

Picture of Installing RetroPie

Using your laptop or PC, insert the SD card using the card reader. Download the correct version of Etcher for your computer.

Once the download is complete:

  1. Open the installer and click I agree
  2. Wait for the installation to finish and Etcher will open with a window that looks similar to Picture 1.
  3. Download RetroPie for Raspberry Pi 2/3.
  4. Wait for the download to finish
  5. Return to the Etcher window.
  6. Click Select image.
  7. Navigate to where you downloaded the zipped RetroPie image and select the file.
  8. The SD card should automatically pop up as the drive. If it does not appear, click Select drive and find the card under Devices and Drives.
  9. Finally, click Flash! and wait for Etcher to format and install RetroPie onto your SD card.

Once it says Flash Complete! like in Picture 2, you now have a fully functional RetroPie.

Step 3: Setting Up GameStream

Picture of Setting Up GameStream

Download GameStream on your host PC from the NVIDIA website. Once the file downloads, follow the instructions to install, leave settings as their defaults and do the following:

  1. Open the GeForce Experience application once it has successfully installed.
  2. Click the Preferences tab at the top of window and select the SHIELD category.
  3. Ensure the Allow this PC to stream games to SHIELD devices box is checked like in the Picture 3.

Step 4: Setting Up Network on RetroPie

Picture of Setting Up Network on RetroPie

Connect an HDMI cable from the Raspberry Pi to the TV/monitor. Power up the Raspberry Pi using the 5V power supply. You will see four raspberries at 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.

  1. Connect your controller along with the mouse and keyboard into the USB ports on the Raspberry Pi.
  2. Follow the on-screen instructions to configure your gamepad.

In order to configure your WiFi, you will need to:

  1. Select the RetroPie logo to go to the page shown in Picture 5.
  2. Scroll down and click on the WIFI option from the list.
  3. Click on Connect to WiFi Network, find your network and enter in the password.

Click Exit and return to the page in Picture 5 and do the following (you may need your mouse and keyboard for this part):

  1. Select the RASPI-CONFIG option.
  2. Choose 5. Interfacing Options Configure connections to peripherals
  3. Click P2 SSH Enable/Disable remote command line access to your Pi using SSH.
  4. Select to enable the SSH server.
  5. Finally, click and to return to the menu shown in Picture 5.

Step 5: Connecting Computer to RetroPie

Picture of Connecting Computer to RetroPie

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:

  1. Open your Router's setup from a new web page with the address specific to your router.
  2. Login to your router and look at the connected devices.
  3. Find your RetroPie from the list (it should appear as "retropie") and write down the IP Address.

We can now officially connect the PC to the RetroPie using the newly acquired IP Address:

  1. Launch the Putty application and enter the IP address of the RetroPie in the Host Name(or IP address) box as seen in Picture 6.
  2. Click Open and this will open a command window for the RetroPie.
  3. Enter in the username and password, for RetroPie this is username: pi and password: raspberry.

Your terminal window should look similar to Picture 7. You are now able to install the Moonlight software on your RetroPie from your PC.

Step 6: Find PC's IP Address

Picture of Find PC's IP Address

There are multiple ways to determine the IP Address of our PC. The first is to follow the same procedure described in Step 5. Next we will use the terminal to obtain the address:

  1. In the search bar of your PC type in cmd and press Enter.
  2. Type in the command ipconfig and you will see the IP Address of your PC, which should be identical to the RetroPie's address minus the final 1-2 digit number as displayed in Picture 8.

You may also find the IP Address the same way you discovered the RetroPie's or by launching Control Panel:

  1. In the search bar type in Control Panel.
  2. Click View network status and tasks under Network and Internet
  3. SelectChange adapter settings on the far left side.
  4. Double-click on your wireless connection and click Details...

The final page can be seen in Picture 9. Record the IP Address for later use.

Step 7: Install Moonlight

Picture of Install Moonlight

Type the follow commands in the command line in the order they appear:

  • 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:

  • pi@retropie ~ $ sudo nano /etc/apt/sources.list

Now that the file is an executable we can run it:

  • pi@retropie ~ $ sudo ./moonlight.sh

Follow the on screen instructions:

  1. Press 1 and Enter (this will complete four phases necessary to install Moonlight).
  2. When asked for the STEAM PC's IP Address, enter the IP Address we obtained in Step 6 and click Connect.
  3. On your PC, enter in the code you receive from the terminal in the window that appears, similar to Picture 10.
  4. Wait while the code finishes the next phases until it asks you to Reboot Now (y/n) ? and type y and Enter to reboot your RetroPie.

Now that we have Moonlight installed and paired the PC to the RetroPie we can officially launch our Moonlight program.

Step 8: Launching Moonlight

Picture of Launching Moonlight

After your RetroPie has fully restarted, you should see a STEAM menu item on your RetroPie's screen like in Picture 11:

  1. Open the STEAM menu.
  2. Choose between the four options 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!

Comments

DIY Hacks and How Tos (author)2017-10-27

Very cool. I love DIY gaming systems like this.

About This Instructable

224views

8favorites

License:

More by mpocta30:Raspberry Pi: Steam Streaming
Add instructable to: