Skip to content

Commit

Permalink
Merge pull request #199 from stefanjenkner/sunshine-0-23-1
Browse files Browse the repository at this point in the history
Upgrade to Sunshine v0.23.1
  • Loading branch information
stefanjenkner authored May 20, 2024
2 parents 01d570e + 8beb6d8 commit 72e47e9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ By default, access to the EC2 instance is restriced. To update ane set the white

## Manual steps on first boot

### Install NVIDIA driver

Login to EC2 instance:

ssh ubuntu@<IP>
Expand All @@ -61,7 +63,9 @@ Install NVIDIA gaming driver and reboot:

sudo reboot

Setup [Sunshine] and configure username and password for sunshine API user:
### Setup Sunshine

Configure username and password for sunshine API user:

https --verify=no :47990/api/password newUsername="sunshine" newPassword="sunshine" confirmNewPassword="sunshine"

Expand All @@ -81,7 +85,7 @@ Launch Steam, Login for the first time and:

* Move the Steam Library to `/mnt/sunshine/SteamLibrary` (Setting/Downloads/Steam Library Folder)
* Enable Steam Play (Proton) for supported and all other titles (Setting/Steam Play)
* Run Backup (via appliction icon or `/usr/local/bin/backup` before next shutdown/reboot)
* Run Backup (via application icon or `/usr/local/bin/backup` before next shutdown/reboot)

## Optional steps

Expand Down
16 changes: 15 additions & 1 deletion cloud-init/cloud-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,18 @@ write_files:
- path: /etc/udev/rules.d/85-sunshine-input.rules
content: |
KERNEL=="uinput", GROUP="input", MODE="0660", OPTIONS+="static_node=uinput"
- path: /opt/sunshine_systemd_user_service.patch
content: |
5,7c5
< PartOf=graphical-session.target
< Wants=xdg-desktop-autostart.target
< After=xdg-desktop-autostart.target
---
> After=graphical-session.target
15c13
< WantedBy=xdg-desktop-autostart.target
---
> WantedBy=graphical-session.target
- path: /opt/install_nvidia_driver.sh
content: |
#!/bin/bash
Expand Down Expand Up @@ -195,8 +207,10 @@ runcmd:
- rm -f /etc/apt/sources.list.d/steam.list
- apt update
- apt install -y libgl1-mesa-dri:i386 steam-libs-i386:i386 libgl1-mesa-dri:amd64 libgl1-mesa-glx:i386 libgl1-mesa-glx:amd64 libvulkan1:i386 libgnutls30:i386
- wget https://github.com/LizardByte/Sunshine/releases/download/v0.18.4/sunshine-ubuntu-22.04-amd64.deb
- wget https://github.com/LizardByte/Sunshine/releases/download/v0.23.1/sunshine-ubuntu-22.04-amd64.deb
- apt install -y ./sunshine-ubuntu-22.04-amd64.deb
- rm -f ./sunshine-ubuntu-22.04-amd64.deb
- patch /usr/lib/systemd/user/sunshine.service < /opt/sunshine_systemd_user_service.patch
- su -c "systemctl --user enable sunshine" sunshine
- su -c "systemctl --user enable init_desktop_settings" sunshine
- su -c "desktop-file-install --dir=/home/sunshine/.config/autostart /usr/local/share/applications/restore.desktop" sunshine
Expand Down

0 comments on commit 72e47e9

Please sign in to comment.