Created
May 10, 2023 18:44
-
-
Save maddox/2989f4003f882440f9e769c7d68facad to your computer and use it in GitHub Desktop.
Sunshine on ChimeraOS
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
#!/bin/bash | |
set -e | |
cd "$(dirname "$0")" | |
./stop | |
./start |
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
#!/bin/bash | |
set -e | |
cd "$(dirname "$0")" | |
echo "Starting Sunshine..." | |
mkdir -p ~/.config/systemd/user | |
cp sunshine.service ~/.config/systemd/user/ | |
systemctl --user start sunshine | |
systemctl --user enable sunshine |
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
#!/bin/bash | |
set -e | |
cd "$(dirname "$0")" | |
echo "Stopping Sunshine..." | |
systemctl --user disable sunshine | |
systemctl --user stop sunshine | |
systemctl --user daemon-reload | |
rm ~/.config/systemd/user/sunshine.service |
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
[Unit] | |
Description=Sunshine Gamestream Server for Moonlight | |
[Service] | |
ExecStart=/usr/bin/sunshine | |
[Install] | |
WantedBy=graphical-session.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment