sunhat/install/app_sunshine.sh
2024-06-09 05:05:28 -05:00

12 lines
519 B
Bash

sudo dnf copr enable matte-schwartz/sunshine
sudo dnf update -y --refresh
sudo dnf install -y sunshine
echo 'KERNEL=="uinput", SUBSYSTEM=="misc", OPTIONS+="static_node=uinput", TAG+="uaccess"' | \
sudo tee /etc/udev/rules.d/60-sunshine.rules
sudo udevadm control --reload-rules
sudo udevadm trigger
sudo modprobe uinput
sudo setcap cap_sys_admin+p $(readlink -f $(which sunshine))
cp ~/.local/share/sunhat/configs/sunshine/sunshine.service ~/.config/systemd/user/sunshine.service
systemctl --user enable --now sunshine