1:vncserver
2:iptables-i input-p TCP--dport 5901-jaccept Client mode
3:iptables-i input-p TCP--dport 5801-jaccept Browser mode
4:vi/root/.vnc/xstartup comment out last line #twm & end row Add:gnome-session&
5:vncserver:1
Configure multiple Desktops
Configure multiple desktops and change passwords for VNC under Linux
You can use the following method to start VNC for multiple desktops
Vncserver:1
Vncserver:2
Vncserver: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 the/etc/sysconfig/vncservers configuration file. The following is the example of a desktop 1 root user Desktop 2 for an Oracle User:
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"
Modify the password for VNC access
Using the command vncpasswd to modify the VNC password for different users, it is important to note that if VNC is configured with different users, it needs to be modified separately to the respective user, for example, in my experiment, the root user and Oracle user need to modify the process as follows:
[Email protected] ~]# VNCPASSWD
Password:
Verify:
From for notes (Wiz)
Linux under VNC Configuration multiple desktops and password change will not be disabled when the system restarts VNC