Skip to content

Instantly share code, notes, and snippets.

@maddox
Created May 10, 2023 18:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maddox/2989f4003f882440f9e769c7d68facad to your computer and use it in GitHub Desktop.
Save maddox/2989f4003f882440f9e769c7d68facad to your computer and use it in GitHub Desktop.
Sunshine on ChimeraOS
#!/bin/bash
set -e
cd "$(dirname "$0")"
./stop
./start
#!/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
#!/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
[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