Install a VNC Server.
sudo dnf -y install tigervnc-server
Add a rule to firewalld.
sudo firewall-cmd --add-service=vnc-server
sudo firewall-cmd --runtime-to-permanent
As the user you’re configuring a VNC session for, set a VNC password.
vncpasswd
Add a VNC configuration file to ~/.vnc/config
.
session=gnome
securitytypes=vncauth,tlsvnc
geometry=1920x1080
Then edit the main VNC server configuration file /etc/tigervnc/vncserver.users
.
sudo vim /etc/tigervnc/vncserver.users
Add your user and assign to the first display.
:1=fedora
Now start the server.
sudo systemctl enable --now vncserver@:1
You can now access the server on port 5901
in your VNC client of choice.