Git Product home page Git Product logo

ec2-gaming-sunshine's People

Contributors

dependabot[bot] avatar stefanjenkner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ec2-gaming-sunshine's Issues

CloudFormation errors

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)

ubuntu 22 jammy - few issues with sunshine

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.

  1. 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.

  2. 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
  1. although sunshine is part of input group, it still cannot get permission to access input.
    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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.