VNC Fedora

  1. Install Tiger VNC server:

    dnf install tigervnc-server
  2. Install the systemd daemon:

    cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@.service
  3. Edit /etc/tigervnc/vncserver.users and 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.name
  4. Add 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
    vncpasswd
  5. Enable the user’s vnc service using the port mapping

    systemctl enable --now vncserver@:1.service

    Note 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.