Configure multiple desktops and change passwords for VNC under Linux
1:vncserver
2:iptables-i input-p TCP--dport 5901-j ACCEPT client mode
3:iptables-i input-p TCP--dport 5801-j ACCEPT Browser mode
4:vi/root/.vnc/xstartup comment out last line #twm & end line 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:ro
Configure multiple Desktops
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:
Change the password for vncserver under Linux