The latter, perhaps more powerful and secure, especially if you need to manage the server computer because each session will be a unique environment, configured with the permissions and rights of the connected user. The first thing to do is to install the TigerVNC Server program by opening a terminal session and entering the following command with root privileges:.
Immediately after that, you need to create a separate VNC user from which the connection will be made with a dedicated password. To do this, enter the following:. Important: never do this as a root user - this will pose a serious threat to the security of your system. The best solution would be to leave the root user without access to VNC and set up a dedicated account with limited rights.
After you create vncuser and set a password for logging in, you also need to set a unique VNC password for this user. The command to do this is:. The next thing to do is create a VNC configuration file for vncuser. The number 1 that we added to the new file name is the display number that will be used for this particular instance of the service.
The first will be , then and so on. Immediately after copying you need to edit the new file using Vi, Nano or another text editor, and replace [USER] with the name of the user created recently in our case, vncuser. This is how the file should look after the update except for the long commented part at the beginning :. Once you do this, you can reload the VNC daemon and run vncserver 1 with the following commands:.
Before proceeding, verify that the service is running by entering the systemctl status command:. Another test that you can perform before trying to connect to the server is to look at the active network sockets using the ss command: if everything works correctly, you should see that the VNC server is working and uses TCP port Execute the command:. Since our VNC service is listening on TCP port , you must be sure that such a port is open and accessible to external clients. Therefore, if you have a firewall installed, you must create an appropriate rule that allows VNC clients to connect.
|Autostart tightvnc on linux||204|
|65 thunderbird fastback||435|
|Configuring centos vnc server||Google GitHub. Rating: 5. Aravindh February 9, at am. Good article! Virtual Network Computing or VNC is a graphical-based tool that can help you to control a computer remotely. Tigervnc-server is a program which executes an Xvnc server and starts parallel sessions of Gnome or other Desktop Environment on the VNC desktop.|
Step:1 Make Sure the Desktop Packages are installed. Step:2 Install Tigervnc and other dependency Package. Step:4 Update the User's Information in the Config File.