Skip to content

Instantly share code, notes, and snippets.

@RealDekkia
Last active January 27, 2024 17:17
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 RealDekkia/c57097de1b5369c02c62bf48f79b060d to your computer and use it in GitHub Desktop.
Save RealDekkia/c57097de1b5369c02c62bf48f79b060d to your computer and use it in GitHub Desktop.
SysDVR Systemd service
This is what I needed to build a Raspberry Pi 5 Powered switch lite dock.
1. "Just" install SysDVR according to their guide: https://github.com/exelix11/SysDVR/wiki/SysDVR-Client-setup#mnaual-install
2. Set up a udev rule: https://github.com/exelix11/SysDVR/wiki/SysDVR-Client-setup#mnaual-install
3. Put my start.sh to wherever you put the unzipped SysDVR-Client-dotnet.7z
4. Update lines 3 and 4 in my start.sh accordingly
5. chmod +x start.sh
6. Put the Systemd service file into /etc/systemd/system/
7. Update line 7 to point to the start script
Additional Notes:
I had to install libsdl2-image-dev seperately, which wasn't mentioned in the guide. Not sure if this was a problem specific to my setup or not.
I also wrote a thread about this adventure on Mastodon with more details: https://dekkia.com/@dekkia/111795227703579783
#!/bin/bash
cd /home/pi/SysDVR/
/home/pi/.dotnet/dotnet SysDVR-Client.dll usb --legacy --fullscreen
[Unit]
Description=SysDVR
After=graphical.target
Wants=graphical.target
[Service]
Type=simple
ExecStart=/home/pi/SysDVR/start.sh
Restart=always
User=pi
Group=pi
Environment="DISPLAY=:0"
[Install]
WantedBy=graphical.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment