Now it is time to look at how to access the VNC server from a client side. Step 5: Connecting to VNC Server via VNC Clientĩ. # firewall-cmd -permanent -add-port=5901/tcp This allows access to VNC service from clients. Next, open the port 5901 in the system firewall service which is running by default, as shown. At this point, the VNC service is up and running, verify that the VNC server is listening on TCP port 5901 using the netstat command. Now reload the systemd manager configuration to apply the recent changes and then start the VNC service, enable it to auto-start at system boot time and check if it is up and running using the following systemctl commands. # sed -i 's/enforcing/disabled/g' /etc/selinux/configĦ. To start the VNC service, you need to disable SELinux which is enforcing mode by default on RHEL 8. This is the port you have to use while connecting to the server, from the client. If the display number is 1, then the VNC server will run on display port number 5901. By default, VNC uses TCP port 5900+N, where N is the display number. ĮxecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'ĮxecStart=/usr/bin/vncserver -autokill %iīefore we move any further, let’s briefly understand how the VNC server listens to requests. # vi /etc/systemd/system/ Īdd the following configuration in it (remember to replace tecmint with your actual username). Start by creating a configuration file named /etc/systemd/system/ as follows. In this step, you have to configure the TigerVNC server to start a display for the above user on the system. Now switch back to the root account by running the exit command.
#Tigervnc server minimal password
Next, switch to the user you want to run and use the VNC program by setting the user’s VNC server password (which should be at least six characters), as shown.
#Tigervnc server minimal install
# dnf install tigervnc-server tigervnc-server-moduleģ. TigerVNC ( Tiger Virtual Network Computing) is an open source, a widely-used system for graphical desktop sharing which allows you to remotely control other computers. Then uncomment this line to force the login screen to use Xorg. Open the GNOME Display Manager ( GDM) configuration file using your favorite command line editor.
So, you need to configure your system to use the X.org display manager.
However, Wayland isn’t a remote rendering API like X.org. The default Desktop Environment ( DE) on RHEL 8 is GNOME which is configured to use Wayland display manager by default. Step 1: Disabling Wayland Display Manager and Enabling X.orgġ. Once your RHEL 8 system meets the above-listed requirements, you are ready to set it up as a VNC server.
VNC uses the Remote Frame Buffer protocol ( RFB) and works on the client-server principle: a server shares its output ( vncserver) and a client ( vncviewer) connects to the server. VNC ( Virtual Network Computing) is a popular platform for graphical desktop sharing which allows you to remotely access, view and control other computers over a network such as the Internet.