Linux under VNC Configuration multiple desktops and password change will not be disabled when the system restarts VNC

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.