Add sunshine to gpu vm
This commit is contained in:
parent
a0cc8a4fba
commit
3ab7c48728
5 changed files with 15 additions and 6 deletions
|
@ -1,4 +0,0 @@
|
|||
[containers]
|
||||
userns="auto"
|
||||
read_only=true
|
||||
tz="local"
|
7
gpu/etc/systemd/system/sunshine.service
Normal file
7
gpu/etc/systemd/system/sunshine.service
Normal 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
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue