apt update
apt install linux-modules-extra-$(uname -r) linux-firmware libgl1-mesa-dri libglx-mesa0 mesa-vulkan-drivers xserver-xorg-video-all
apt install -y mesa-utils mesa-utils-extra xserver-xorg-video-amdgpu
apt install -y cmake gcc-10 g++-10 libssl-dev libavdevice-dev libboost-thread-dev libboost-filesystem-dev libboost-log-dev libpulse-dev libopus-dev libevdev-dev libxtst-dev libx11-dev libxrandr-dev libxfixes-dev libxcb1-dev libxcb-shm0-dev libxcb-xfixes0-dev libdrm-dev libcap-dev libwayland-dev
reboot
dmesg | grep amdgpu
ls /dev/dri*
# My fork has a fix to accept the virtual connectors. I guess this will be merged soon to the main project :)
git clone https://github.com/sergioperez/sunshine.git -b add-virtual-connectors --recurse-submodules
cd sunshine && mkdir build && cd build
cmake -DCMAKE_C_COMPILER=gcc-10 -DCMAKE_CXX_COMPILER=g++-10 ..
make -j4
setcap cap_sys_admin+p sunshine
sudo usermod -aG input ubuntu
sudo usermod -aG video ubuntu
sudo usermod -aG render ubuntu
echo 'KERNEL=="uinput", GROUP="input", MODE="0660"' > /etc/udev/rules.d/85-sunshine-input.rules
echo uinput > /etc/modules-load.d/uinput.conf
systemctl restart udev
mkdir ~/tmp
export WLR_BACKENDS=headless
export WAYLAND_DISPLAY=wayland-0
export XDG_RUNTIME_DIR=${HOME}/tmp
export XDG_SESSION_TYPE=wayland
dbus-run-session sway
export WLR_BACKENDS=headless
export WAYLAND_DISPLAY=wayland-0
export XDG_RUNTIME_DIR=${HOME}/tmp
export XDG_SESSION_TYPE=wayland
sunshine
apt install -y kwin-wayland kwin-wayland-backend-virtual
kwin-wayland --virtual
I wasn't able to find the MR that you teased. Is this upstream in the meantime? I was wondering if it makes sense to self-host this on my headless setup in the future.