Install tigervnc on ubuntu12/28/2023 For example, :2 maps to port 5902, :3 maps to port 5903, and so forth. It means that a particular user, for example, vncuser, will connect to this server on port 5901. Notice from the file we have users assigned to numbers preceded by a colon - :1. To assign a port number to our user vncuser, we edit the /etc/tigervnc/ers file and add the following line: In this case, we need the client system to communicate with this server on a port we specify. Ports are communication endpoints between computers. In this case, we choose option n, meaning we can send keyboard or mouse strokes to the remote system.Īfter creating a user, we have to assign a port number. If we select y, the vncuser cannot perform mouse or keyboard actions. ![]() It determines if users such as vncuser, can send any mouse clicks or keyboard strokes to this server during the session. For this, we execute the vncpasswd command as shown: $ su - vncuserįrom the session above, notice the prompt concerning the view-only password. Finally, alwaysshared states that multiple users can be connected concurrently, meaning the session is sharable.įor this tutorial, we create a user named vncuser for learning purposes: $ sudo adduser vncuserĪfter the above action, we switch to the newly created account using the su command and configure a VNC password that this user will use to connect to this server using a VNC client. Localhost specifies the hostname of this server. We can also change this according to our needs. We also specify the screen resolution to 1920 by 1200. For example, if we were to use the cinnamon desktop environment, we would change the value of the session to cinnamon. ![]() We only have to download its package and set its name as the value of the session. We can decide to go with any other desktop environment. We have specified the value of the session as gnome. When the file is open, we paste the following configuration. Once the package-group installation is complete, we set the GNOME desktop environment as the default session during a VNC connection by editing the ~/.vnc/config file located in the home directory. Later, we will see how to install another popular desktop environment. We have used the groupinstall option to install the whole package-group where the GNOME package is also available. $ sudo dnf groupinstall "Server with GUI" -y If you already use the GNOME desktop environment, this step is unnecessary: If you are currently running a RHEL system without a GUI, then we install a GNOME desktop environment and other packages required for the GUI on this server. When we connect to the remote server, we want to use a graphical user interface such as GNOME, cinnamon, Xfce, etc. Installing the GNOME desktop environment on the server. In that regard, we install the TigerVNC server component on this server using the following command: $ sudo dnf install tigervnc-server -y We will be installing a VNC server component on a RHEL-based machine - 192.168.100.75 then connecting to this server using a Debian-based client system - 192.168.100.66, where we’ll install the tigervnc client.īefore any installation, we should update and upgrade the repositories and packages currently installed in the system to prevent any issues later: $ sudo dnf check-updateĪs mentioned earlier, we will use TigerVNC. It allows us to control remote computers.įor this installation, we need to be running a RHEL-based Linux OS and have sudo privileges on both systems. We use TigerVNC - an open-source system for sharing desktops. We demonstrate how to install and configure the VNC client/VNC viewer on a client and VNC server software component on the server and set up the Graphical User Interface in Rocky Linux 8. Using the VNC client, we can perform actions remotely on the server host as if we were right in front of the host monitor. We access this host using another host with a VNC client software component, also referred to as a VNC viewer. VNC applications include TeamViewer, Anydesk, TigerVNC, TightVNC, etc.Ī VNC server is a host with a VNC server software component installed. System administrators and support staff use it to troubleshoot issues on a remote computer without physically being there. VNC(virtual network computing) is a screen-sharing client-server system. Installing the GNOME desktop environment on the server. ![]() In this article, we learn how to install and configure VNC server on Rocky Linux 8 then connect to the server using another machine.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |