switch to steam flatpak for gaming server

This commit is contained in:
2025-03-04 09:31:15 -05:00
parent 495d2bb159
commit d7bb612677

View File

@@ -32,8 +32,8 @@ Host gamebox2
## Basic Apps
```bash
pacman -S vim
flatpak install io.missioncenter.MissionCenter
sudo pacman -S vim
sudo flatpak install io.missioncenter.MissionCenter
```
## Install Sunshine
@@ -62,34 +62,42 @@ systemctl --user disable --now sunshine
sudo flatpak uninstall --system --delete-data dev.lizardbyte.app.Sunshine
```
## Install Steam
## Steam
<https://wiki.archlinux.org/title/Official_repositories#multilib>
Play games.
```bash
pacman -S steam
sudo flatpak install com.valvesoftware.Steam
```
1. Settings -> Autostart -> Add New -> Steam (Runtime)
## MangoHud
### mangohud
<https://github.com/flightlessmango/MangoHud?tab=readme-ov-file#flatpak>
Start steam with mangohud
Pretty Numbers for your Games.
```bash
sudo pacman -S mangohud lib32-mangohud
cp /usr/share/applications/steam.desktop ~/.local/share/applications/steam.desktop
sudo flatpak install org.freedesktop.Platform.VulkanLayer.MangoHud
flatpak override --user --env=MANGOHUD=1 com.valvesoftware.Steam
# Allow flatpak apps to read Mangohud config
flatpak override --user --filesystem=xdg-config/MangoHud:ro
```
Edit ~/.local/share/applications/steam.desktop
Edit `~/.config/MangoHud/MangoHud.conf`
```conf
Exec=/usr/bin/mangohud /usr/bin/steam-native %U
```
## pre defined presets
# -1 = default
# 0 = no display
# 1 = fps only
# 2 = horizontal view
# 3 = extended
# 4 = high detailed information
preset=2
```bash
mkdir ~/.config/MangoHud
cp /usr/share/doc/mangohud/MangoHud.conf.example ~/.config/MangoHud/MangoHud.conf
## Enable most of the toggleable parameters (currently excludes `histogram`)
# full
```
## Snapshot
@@ -106,4 +114,4 @@ zfs snapshot $ZFS_VOL@manual-$(date --iso-8601)
zfs list -t snapshot $ZFS_VOL
export ZFS_SNAPSHOT='enc1/vms/Gambox1-z4e0t@init-no-drivers-2025-03-03_05-35'
zfs rollback $ZFS_SNAPSHOT
```
```