rpm -qa | grep tiger-server
The following information is displayed:
If the VNC server is not installed, no command output is displayed or the command output shows that the VNC server is not installed. In this case, you need to install the VNC server on the host. In many cases, this software is in the ISO image file and you can use yum or Zypper to install it.
mount /dev/sr0 /mnt
[rhel-local] baseurl=file:///mnt enabled=1 gpgcheck=0
Save the file and run the following commands:
yum install tigervnc-server
Configure the VNC login password of user root as prompted.
The command output contains the Log file is /root/.vnc/rhel:1.log information. 1 indicates that the current user is allocated the first VNC desktop.
ps -ef | grep Xvnc
The process ID is 36069, port number used is 5901, and virtual desktop number is 1.
The current user has three virtual desktops, 1, 5, and 2.
When you install VNC Viewer for the first time, if the version of VNC Viewer is 5.3.2, set ColorLevel to rgb222. To set it, choose Options > Expert > ColorLevel.
Run the vncserver -list command to check whether the virtual desktop is added successfully. If information shown in the following figure is displayed, the virtual desktop 6 is added successfully.