yay -S x11vnc wget https://gitweb.gentoo.org/repo/gentoo.git/plain/x11-misc/x11vnc/files/x11vnc.conf.d wget https://gitweb.gentoo.org/repo/gentoo.git/plain/x11-misc/x11vnc/files/x11vnc.init.d doas mv x11vnc.conf.d /etc/conf.d/x11vnc doas mv x11vnc.init.d /etc/init.d/x11vnc doas chmod 755 /etc/init.d/x11vnc doas nvim /etc/conf.d/x11vnc X11VNC_OPTS="-clip xinerama0 -noxdamage -noxrecord -noxfixes" doas cp ~/.Xauthority /root/ doas rc-service xdm stop doas rc-service x11vnc start