1: Vncserver2: Iptables-i input-p TCP--dport5901-J ACCEPT Client Mode3: Iptables-i input-p TCP--dport5801-J ACCEPT Browser Mode4: Vi/root/.vnc/xstartup comment out last line #twm & end add: Gnome-session &5: Vncserver:1Configuring multiple desktops and changing passwords under VNC configuration on more than one desktop Linux you can use the following method to start VNC vncserver for multiple desktops:1Vncserver:2Vncserver:3... However, this method of manual startup will expire after the server restarts, so here's how to get the system to automatically manage VNC for multiple desktops by adding information that needs to be managed automatically to/etc/sysconfig/vncservers configuration file, first Use desktop 1 as the root User Desktop 2 for the Oracle user as an example to configure the following: format: Vncservers="Desktop Number: User name to use Desktop number: User name used"[[Email protected]~]# vi/etc/sysconfig/vncservers vncservers="1:ro Configuring multiple DesktopsYou can use the following methods to start VNC Vncserver for multiple desktops:1Vncserver:2Vncserver:3... However, this method of manual startup will expire after the server restarts, so here's how to get the system to automatically manage VNC for multiple desktops by adding information that needs to be managed automatically to/etc/sysconfig/vncservers configuration file, first Use desktop 1 as the root User Desktop 2 for the Oracle user as an example to configure the following: format: Vncservers="Desktop Number: User name to use Desktop number: User name used"[[Email protected]~]# vi/etc/sysconfig/vncservers vncservers="1:root 2:oracle"vncserverargs[1]="-geometry 1024x768"vncserverargs[2]="-geometry 1024x768"To modify the password of a VNC access use the command vncpasswd to modify the VNC password for different users, it is important to note that if VNC is configured with a different user, it needs to be modified separately to the respective user, for example, in my experiment, the root user and Oracle user need to individually modify , the modification process is as follows: [[email protected]~]# vncpasswd password:verify:
Modify the password for VNC access