-
-
Save yashodhank/08a09d71f04d87aef41c484cde3eb1ce to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ## 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