This is achieved by running the command below. It is important to note that the vncuser must be defined by editing the /etc/tigervnc/ers. :2 will translate to port number 5902 and so on depending on the number of users. This, therefore, translates to port number 5901. :1 tells VNC to run that service on a sub-port of 5900. Every user must run his/her own VNC server on a separate port. Note the :1 on the name of the service unit file. sudo cp /lib/systemd/system/ /etc/systemd/system/ :1.service Copy this file to /etc/systemd/system directory ,the directory that holds configuration files. Generic VNC file is stored on /lib/systemd/system directory during package installation of the VNC server. Create-VNC-PasswordĪ view-only password is required to allow the user to not interact through mice and keyboard with the desktop. To do this, switch user to vncuser as shown below. The next step is to set up a VNC password for vncuser. Sudo passwd vncuser Step 4 : Create a VNC password.
The command to create a VNC user and password is as below. This is the user from which the connection will be made The command output shows the installation of the TigerVNC server and its dependencies.
Install TigerVNC Server program by executing the command below sudo dnf install tigervnc-server Sudo reboot Step 2: Install TigerVNC Server on Rocky Linux 8
(refer to our article on: How To Install Xfce Desktop Environment on Rocky Linux 8 sudo dnf update -y If you don’t have GUI desktop Environment e.g Xfce installed, run these commands as root. This article assumes you already have a default GUI installed on your Linux system or you are on GNOME default GUI environment. In our previous article, we looked at How To Install Xfce Desktop Environment on Rocky Linux 8. Step 1 : Install GUI desktop environment on your server.īy default, servers do not have a GUI desktop environment. In this article, we will use the TigerVNC Server which is a free tool that allows using a stand-alone virtual desktop. When the VNC Server and the VNC Viewer are connected, the server transmits a copy of the remote computer’s screen to the viewer once permission is granted. Examples of VNC server include but are not limited to TightVNC, RealVNC, UltraVNC, TigerVNC, TeamViewer, AnyDesk, etc. VNC server is installed on the remote computer while VNC viewer/client is installed on the device to control from.
VNC was developed by the Olivetti & Oracle research lab in Cambridge, UK, and its source code is still up to date and available under the General Public Licence (GNU). This, therefore, means that you can use your screen, mouse, and keyboard to control another remote computer as though it was sitting right in front of you.
Virtual Network Computing (VNC) is a graphical desktop sharing system that was created to remotely control another computer.