This document provides a step-by-step guide on setting up PixelStreaming service using Unreal Engine on Amazon Web Services (AWS). The installation will be performed on a pre-configured Ubuntu instance with a dedicated graphics card.
-
Amazon Web Services (AWS) Account: You need an AWS account to proceed with the installation.
-
Ubuntu Instance: Create and make accessible an Ubuntu instance that you'll use for running the PixelStreaming service.
-
Google Drive Link: You should have a Google Drive link to the PixelStreaming-enabled Unreal Engine game packaged in .zip format.
-
Start by creating a text editor or terminal:
nano setup-pixelstreaming.sh
-
Then, paste the content of the script as follows:
#!/bin/bash workdir=$(pwd) # GitHub Username, Repo Name, and Autoupdate Directory user="serdaraltin" repo="AWS-PixelStreaming-Autoupdate" autoupdate="autoupdate" # Autoupdate Script and Configuration File URLs url_autoupdate_script="https://raw.githubusercontent.com/$user/$repo/main/$autoupdate.sh" url_autoupdate_config="https://raw.githubusercontent.com/$user/$repo/main/$autoupdate.config" file_autoupdate_script="$autoupdate.sh" file_autoupdate_config="$autoupdate.config" path_autoupdate="${workdir}/$autoupdate" # Definitions related to the game and PixelStreaming continue... # Other definitions... # Commands to start the PixelStreaming service... # Step 2 and subsequent steps...
-
Save with
Ctrl + O
, then exit withCtrl + X
.
-
To perform game updates, you'll need to edit the script. Edit the following line by specifying the ID of the .zip file of the Unreal Engine game on Google Drive:
./setup-pixelstreaming.sh -u "1YbAN6ZkHKtNF_cPEH0ghvcy1S-X3zyFd"
Note: Replace
"1YbAN6ZkHKtNF_cPEH0ghvcy1S-X3zyFd"
with the ID part from the Google Drive URL, such ashttps://drive.google.com/file/d/1YbAN6ZkHKtNF_cPEH0ghvcy1S-X3zyFd/view?usp=drive_link
. -
Open a terminal and navigate to the directory of the script:
cd /path/to/script
-
Give execution permission to the script:
chmod +x setup-pixelstreaming.sh
-
Run the script:
./setup-pixelstreaming.sh
-
Answer necessary questions during the installation and wait for the process to complete.
-
When the installation is complete, open a terminal.
-
Start the PixelStreaming service using the following command:
cd /path/to/pixelstreaming ./startstream.sh
-
To perform game updates, you can use the script like this:
./setup-pixelstreaming.sh -u "1YbAN6ZkHKtNF_cPEH0ghvcy1S-X3zyFd"
-
Review the script content for more details and options.
- This document is for guidance purposes and requires careful execution of each step.
- Consider potential AWS costs and ensure to shut down unnecessary resources.
The command script and associated files in this repository are distributed under the MIT License. This means that you're free to use, modify, and distribute the code as long as you include the original license notice. For more details, please refer to the LICENSE file in the repository.