How to configure multi-user access in VNC in RedHat Enterprise Linux
How to configure multi-user access in VNC in RedHat Enterprise Linux
1. First install the VNC service in the system and confirm the VNC version. Run the command: rpm-qa | grep vnc or rpm-q vnc-server. If not, go to the server folder on the operating system installation disc to find software packages such as vncserver, and then run the command rpm-ivh ...... Install it.
2. Start the VNC service. Run the command vncserver: 1 to start the desktop numbered 1. Then, the system prompts you to set the Password (this Password is required when you connect to the vnc view ).
3. Modify the vnc global configuration file/etc/sysconfig/vncservers
VNCSERVERS = "1: root 2: wangbo" #1: root indicates assigning desktop 1 to the root user
VNCSERVERARGS [1] = "-geometry 1024x768" # connection resolution
VNCSERVERARGS [2] = "-geometry 1024x768"
4. Modify the VNC user configuration file. There is. in the hidden VNC folder, there is an xstartup file (this file is automatically formed when configuring the user vnc connection password). Edit this file:
#! /Bin/sh
# Uncomment the following two lines for normal desktop: