VNC Fedora
Install Tiger VNC server:
dnf install tigervnc-serverInstall the systemd daemon:
cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@.serviceEdit
/etc/tigervnc/vncserver.usersand add a mapping for each user# TigerVNC User assignment # # This file assigns users to specific VNC display numbers. # The syntax is <display>=<username>. E.g.: # # :2=andrew # :3=lisa :1=user.nameAdd a junk vnc password for the user (we tunnel VNC connections so the VNC password doesnt matter. Plus, it’s unencrypted during the handshake with the server.)
su - user.name vncpasswdEnable the user’s vnc service using the port mapping
systemctl enable --now vncserver@:1.serviceNote that the number mapping to the user determines the port. By convention, VNC ports start at 5900 and then the port mapping is added to it. A port mapping of 1 would mean the users port is 5901. And a mapping of 25 would mean the port is 5925. Also important to remember that there can only be one port per user.