Add sunshine to gpu vm

This commit is contained in:
Mathieu Strypsteen 2024-11-20 20:55:08 +01:00
parent a0cc8a4fba
commit 3ab7c48728
Signed by: mathieu
GPG key ID: 782A42E461BC6824
5 changed files with 15 additions and 6 deletions

View file

@ -1,4 +0,0 @@
[containers]
userns="auto"
read_only=true
tz="local"

View file

@ -0,0 +1,7 @@
[Service]
ExecStart=flatpak run dev.lizardbyte.app.Sunshine
ExecStartPre=sleep 5
Environment=FLATPAK_BWRAP=/usr/local/bin/bwrap
Environment=PULSE_SERVER=unix:/run/user/1000/pulse/native
[Install]
WantedBy=multi-user.target

View file

@ -2,3 +2,4 @@
set -euo pipefail
cp -R common/* /
sed -E "s/#(auth.+required)/\1/" -i /etc/pam.d/su
timedatectl set-timezone Europe/Brussels

View file

@ -2,6 +2,10 @@
set -euo pipefail
cp -R desktop/* gpu/* /
sh setup-desktop.sh
systemctl enable --now sshd
systemctl disable auditd
sed "s/SUB_UID_COUNT.*/SUB_UID_COUNT 16777216/" -i /etc/login.defs
sed "s/SUB_GID_COUNT.*/SUB_GID_COUNT 16777216/" -i /etc/login.defs
useradd -M containers || true
flatpak remote-add --if-not-exists flathub /usr/lib/fedora-third-party/conf.d/fedora-flathub.flatpakrepo
flatpak install com.github.tchx84.Flatseal com.valvesoftware.Steam net.lutris.Lutris org.chromium.Chromium org.gnome.Calculator org.gnome.FileRoller org.gnome.TextEditor org.mozilla.firefox
flatpak install com.github.tchx84.Flatseal com.valvesoftware.Steam dev.lizardbyte.app.Sunshine net.lutris.Lutris org.chromium.Chromium org.gnome.Calculator org.gnome.FileRoller org.gnome.TextEditor org.mozilla.firefox

View file

@ -5,5 +5,6 @@ systemctl disable auditd
systemctl disable --now docker.socket rpm-ostree-countme.timer
systemctl enable --now podman-auto-update.timer
systemctl enable --global podman-auto-update.timer
sed "s/SUB_UID_COUNT.*/SUB_UID_COUNT 16777216/" -i /etc/login.defs
sed "s/SUB_GID_COUNT.*/SUB_GID_COUNT 16777216/" -i /etc/login.defs
useradd -M containers || true
timedatectl set-timezone Europe/Brussels