Skip to content

Instantly share code, notes, and snippets.

@yashodhank
Forked from brock8503/GamerSetup.ps1
Created September 13, 2022 11:02
Show Gist options
  • Save yashodhank/08a09d71f04d87aef41c484cde3eb1ce to your computer and use it in GitHub Desktop.
Save yashodhank/08a09d71f04d87aef41c484cde3eb1ce to your computer and use it in GitHub Desktop.
# ## Overview
# Instructions on how to game in the cloud inspired by:
# https://lg.io/2015/07/05/revised-and-much-faster-run-your-own-highend-cloud-gaming-service-on-ec2.html
# https://medium.com/@bmatcuk/gaming-on-amazon-s-ec2-83b178f47a34
#
# ## Additional reading
# https://gstreamer.freedesktop.org/documentation/tutorials/basic/streaming.html?gi-language=c
# https://trac.ffmpeg.org/wiki/StreamingGuide
# ### Setup
# Create and AWS account
# Click EC2 and Instances
# Create a g3s.xlarge instance type based on a Window 2019 AMI
# Set key-value credentials and download .pem
# Once running right-click and "get windows credentials"
# Disable the basic display in Device Manager
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
# Install steam
# invoke-webrequest -Uri https://steamcdn-a.akamaihd.net/client/installer/SteamSetup.exe -OutFile SteamSetup.exe`
choco install steam -y
choco install moonlight-qt -y
# Install epic
Invoke-Webrequest -Uri https://launcher-public-service-prod06.ol.epicgames.com/launcher/api/installer/download/EpicGamesLauncherInstaller.msi -OutFile epic.msi
msiexec /i /qn epic.msi
# Install star citizen
# TODO Fix this
Invoke-Webrequest -Uri https://install.robertsspaceindustries.com/star-citizen/RSI-Setup-1.4.0.exe -OutFile RSI.exe
.\RSI.exe
$ws = New-Object -ComObject WScript.Shell;
$s = $ws.CreateShortcut("$env:userprofile\Desktop\tscon.lnk");
$s.TargetPath = "C:\Windows\System32\tscon.exe";
$s.Arguments = "%sessionname% /dest:console";
$s.Save()
# Install ssh
choco install win32-openssh -params '"/SSHServerFeature /KeyBasedAuthenticationFeature"' -y
# Update the graphics drivers with these scripts https://github.com/jamesstringerparsec/Cloud-GPU-Updater
Invoke-Webrequest -Uri https://github.com/jamesstringerparsec/Cloud-GPU-Updater/archive/master.zip -OutFile graphic.zip
Expand-Archive graphic.zip
& ".\graphic\Cloud-GPU-Updater-master\GPUUpdaterTool.ps1"
# Todo fix this
curl -L https://rzr.to/thx-spatial-audio-download -o THXSpatialInstaller.exe
.\THXSpatialInstaller.exe
# Run this to download and run
# Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://gist.githubusercontent.com/brock8503/926779333ce4639f6532ede121e711c3/raw/GamerSetup.ps1'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment