Setting Up Remote Desktop Access On A Headless Fedora 38 Linux Server

  • Install TigerVNC
    sudo dnf -y install tigervnc
  • Create /etc/tigervnc/vncserver.users containing:
    :2=username
  • Create /home/username/.vnc/config containing:
    session=gnome
    securitytypes=vncauth,tlsvnc
    localhost=0
    alwaysshared
  • As the username user, set the VNC password with the command:
    vncpasswd
  • Start and enable the VNC service:
    sudo systemctl enable vncserver@:2.service
    sudo systemctl start vncserver@:2.service
  • Use this command to access the VNC session from a remote host:
    vncviewer -geometry 2560x1440 -via server.ip.address 127.0.0.1:2

dlk

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.