Fedora 34
Sponsored Link

Desktop Environment : Configure VNC Server
Install VNC Server to connect with GUI from remote client computer.
[1] Install VNC Server.
[root@dlp ~]#
dnf -y install tigervnc-server
[2] If Firewalld is running, allow VNC service.
[root@dlp ~]#
firewall-cmd --add-service=vnc-server --permanent

[root@dlp ~]#
firewall-cmd --reload

[3] Login as a user you would like to configure VNC session.
# set VNC password

[fedora@dlp ~]$

Would you like to enter a view-only password (y/n)?
[Password@dlp ~]$
vi ~/.vnc/config
# create new

# session=(display manager you use)

# securitytypes=(security options)

# geometry=(screen resolution)

[4] Configure settings with root privilege ans start Systemd Unit.
[root@dlp ~]#
vi /etc/tigervnc/vncserver.users
# add to the end

# specify [:(display number)=(username] as comments

# display number 1 listens port 5901

# display number n + 5900 = listening port

# This file assigns users to specific VNC display numbers.
# The syntax is <display>=<username>. E.g.:
# :2=andrew
# :3=lisa

# start systemd unit

[root@dlp ~]#
systemctl enable --now vncserver@:1 vncserver@:2
Install VNC Viewer on client computer to connect to VNC server.
This example is based on Windows 10 and UltraVNC.
Download UltraVNC from the site below.
⇒ https://www.uvnc.com/downloads/ultravnc.html
After installing UltraVNC, click [UltraVNC Viewer] to run, then, following window is shown.
Input [(Server's hostname or IP address):(display number)] like following example and then click the [Connect] button.
[6] VNC password is required to input for authentication.
[7] If successfully passed authentication, VNC session starts like follows.
Matched Content