stefanjenkner / ec2-gaming-sunshine Goto Github PK
View Code? Open in Web Editor NEWGaming on EC2 g4dn.xlarge Spot instances using NVIDIA gaming driver
License: MIT License
Gaming on EC2 g4dn.xlarge Spot instances using NVIDIA gaming driver
License: MIT License
Thanks for this repo! it's extremely useful.
Maybe it would be good to update the instructions to mention that by default the CloudFormation stack is going to use a key pair named ec2-gaming
and if it doesn't exist it won't create the stack.
Additionally, the default value for MyIP is not a valid CIDR block (it should be 127.0.0.1/XX
)
Hi - thanks for putting this together.
I was able to create the instance with spot/on-demand.
I'm having few issues running sunshine though. and the setup instructions do not help as few bits are missing. hoping the below will help others.
As i understand, you create a sunshine user to run sunshine vs running under ubuntu.
After the initial setup, the apt is broken as steam installs the apt repo as well. rm /etc/apt/sources.list.d/steam.list
does the trick.
sunshine has no shell so cannot access dbus for most of the commands su -c "systemctl status sunshine" sunshine
.
one need to exec a shell for the user sunshine once to properly setup the profile:
ubuntu$id sunshine
uid=1000(sunshine) gid=1000(sunshine) groups=1000(sunshine),29(audio),44(video),46(plugdev),100(users),107(input),119(netdev)
ubuntu$ sudo machinectl shell --uid=1000
sunshine$ systemctl status sunshine
sunshine : sunshine audio video plugdev users input netdev
full log:
sunshine@i-xxx:~$ cat .config/sunshine/sunshine.log
[2023:08:15:20:25:11]: Info: Sunshine version: v0.20.0
[2023:08:15:20:25:11]: Warning: Failed to create system tray
[2023:08:15:20:25:11]: Error: Couldn't load cuda: -1
[2023:08:15:20:25:11]: Warning: Couldn't find /dev/dri, kmsgrab won't be enabled
[2023:08:15:20:25:11]: Error: Unable to initialize capture method
[2023:08:15:20:25:11]: Error: Platform failed to initialize
[2023:08:15:20:25:11]: Error: Could not create Sunshine Mouse: Permission denied
[2023:08:15:20:25:11]: Error: Could not create Sunshine Touchscreen: Permission denied
[2023:08:15:20:25:11]: Error: Could not create Sunshine Keyboard: Permission denied
[2023:08:15:20:25:11]: Error: Unable to create some input devices! Are you a member of the 'input' group?
[2023:08:15:20:25:11]: Info: Falling back to XTest
[2023:08:15:20:25:11]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2023:08:15:20:25:11]: Info: Trying encoder [nvenc]
[2023:08:15:20:25:12]: Info: Encoder [nvenc] failed
[2023:08:15:20:25:12]: Info: Trying encoder [vaapi]
[2023:08:15:20:25:14]: Info: Encoder [vaapi] failed
[2023:08:15:20:25:14]: Info: Trying encoder [software]
[2023:08:15:20:25:15]: Info: Encoder [software] failed
[2023:08:15:20:25:15]: Fatal: Couldn't find any working encoder
[2023:08:15:20:25:15]: Error: Video failed to find working encoder
[2023:08:15:20:25:15]: Info: Open the Web UI to set your new username and password and getting started
[2023:08:15:20:25:15]: Info: File /home/sunshine/.config/sunshine/sunshine_state.json doesn't exist
[2023:08:15:20:25:15]: Error: Failed to create client: Daemon not running
[2023:08:15:20:25:15]: Info: Configuration UI available at [https://localhost:47990]
[2023:08:15:20:26:11]: Info: Terminate handler called
sudo setcap -r $(readlink -f $(which sunshine))
seems to help with a reboot of the sunshine service.
I got it to work ultimately but the installation remains a bit flaky at this time.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.