-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #130 from PierreBeucher/sunshine-desktop-config
Sunshine desktop config
- Loading branch information
Showing
45 changed files
with
729 additions
and
241 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
docs/ | ||
**/node_modules | ||
tmp/ | ||
**/dist | ||
**/dist | ||
.vagrant |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# -*- mode: ruby -*- | ||
# vi: set ft=ruby : | ||
|
||
Vagrant.configure("2") do |config| | ||
config.vm.box = "ubuntu/jammy64" # Ubuntu 22.04 LTS (Jammy) | ||
config.vm.hostname = "cloudypad-dev" | ||
|
||
config.vm.network "private_network", ip: "192.168.56.43" | ||
|
||
# Sunshine access | ||
config.vm.network "forwarded_port", guest: 47990, host: 47990 | ||
|
||
config.vm.provider "virtualbox" do |vb| | ||
vb.memory = "4096" | ||
vb.cpus = 4 | ||
end | ||
|
||
config.vm.provision "shell", inline: <<-SHELL | ||
# apt-get update | ||
SHELL | ||
end |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
all: | ||
hosts: | ||
# Vagrant VM | ||
"192.168.56.43": | ||
ansible_user: vagrant | ||
ansible_ssh_private_key_file: .vagrant/machines/default/virtualbox/private_key | ||
ansible_ssh_common_args: '-o StrictHostKeyChecking=no' | ||
cloudypad_web_fqdn: "192.168.56.42" | ||
sunshine_nvidia_enable: false | ||
sunshine_compose_pull_images: never | ||
sunshine_image_tag: local |
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
wait-x-availability.sh | ||
|
||
steam |
9 changes: 9 additions & 0 deletions
9
containers/sunshine/overlay/cloudy/bin/stop-container-user.sh
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Can be used by user to stop session | ||
|
||
gnome-terminal -- bash -c "echo 'Shutting down... Your session will end in a few seconds.'; \ | ||
echo 'You can also press CTRL+ALT+SHIFT+Q to exit session.'; \ | ||
sleep 999" | ||
|
||
sudo /cloudy/bin/stop-supervisord.sh |
12 changes: 12 additions & 0 deletions
12
containers/sunshine/overlay/cloudy/bin/stop-supervisord.sh
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Force stop container by killing its own PID 1. | ||
# PID 1 should be supervisord which will stop all services gracefully and shutdown | ||
# effectively stopping the container. | ||
# | ||
# This script it aimed to provide an "easy' way to stop Sunshine session since | ||
# typing "CTRL+ALT+SHIFT+Q" is not easy for some user, allowing to have a shortcut on desktop pointing to this script. | ||
# Container will probably restart instantly but that's expected | ||
|
||
# send SIGTERM to supervisord for graceful shutdown | ||
kill -SIGTERM 1 |
8 changes: 8 additions & 0 deletions
8
containers/sunshine/overlay/cloudy/conf/desktop-apps/exit.desktop
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Desktop entry taken from /usr/share/applications/steam.desktop | ||
[Desktop Entry] | ||
Name=Exit session | ||
Exec=$CLOUDYPAD_BIN_DIR/stop-container-user.sh | ||
Icon=system-shutdown | ||
Terminal=true | ||
Type=Application | ||
Categories=Network;FileTransfer;Game; |
12 changes: 12 additions & 0 deletions
12
containers/sunshine/overlay/cloudy/conf/desktop-apps/steam.desktop
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Desktop entry taken from /usr/share/applications/steam.desktop | ||
[Desktop Entry] | ||
Name=Steam | ||
Exec=/usr/bin/steam %U | ||
Icon=steam | ||
Terminal=true | ||
Type=Application | ||
Categories=Network;FileTransfer;Game; | ||
MimeType=x-scheme-handler/steam;x-scheme-handler/steamlink; | ||
Actions=Store;Community;Library;Servers;Screenshots;News;Settings;BigPicture;Friends; | ||
PrefersNonDefaultGPU=true | ||
X-KDE-RunOnDiscreteGpu=true |
11 changes: 11 additions & 0 deletions
11
containers/sunshine/overlay/cloudy/conf/sunshine/apps.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"env": { | ||
"PATH": "$(PATH):$(HOME)/.local/bin" | ||
}, | ||
"apps": [ | ||
{ | ||
"name": "Steam", | ||
"image-path": "steam.png" | ||
} | ||
] | ||
} |
This file contains 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
Oops, something went wrong.