Installation and use of Tigervnc-servere services under Linux

Source: Internet
Author: User

For tigervnc-servere installation, you can use the local Yum source directly for installation.

[Email protected]5201351yuminstall tigervnc-server-y

where Tigervnc's main configuration file is located in /etc/sysconfig/vncservers There are two ways to start a tigervnc.

One, do not edit the vncservers configuration file, only the use of the Vncserver command can be started.

[[email protected]5201351 ~]# vncserver    // First start will prompt to set the password

The first execution will require that the password be set. A ~/.vnc directory is generated under the home directory. The configuration, password, and process and log files are stored inside.

Here we look at the help of the Vncserver command, as shown in:

Here we can press "vncserver: Desktop Number " method to start the service, where "desktop number" in the "number" means, not input will be randomly assigned one.

each user connected Vncserver needs to occupy 1 desktops, If a desktop number is opened by 2 windows, the actions you see will be the same, and the two sides are synchronized.

Second, we need to configure the/etc/sysconfig/vncservers file before starting the method. Simply add a configuration and then start.

[[email protected]5201351echo'vncservers= "1:root"' >>/etc/ sysconfig/vncservers[[email protected]5201351 ~]#/etc/init.d/vncserver start    // If the startup fails, you can start the build first with the method first, because the configuration directory is missing. 

For both of these methods can be started, and the first boot will require a password, then if the vncservers login password forgotten, what to do?

We can reset it directly using the following command:

[[email protected]5201351 ~]# vncpasswd      // Follow the prompts to enter a new password

VNC to Vncviewer Port is 5900+n,n is the display number set,

the port number used by the VNC service is related to the desktop number, VNC uses TCP port starting from 5900, corresponding to the following relationship

Desktop Number 1----port number is 5901

Desktop Number 2----port number is 5902

If we open the Iptables firewall, we can use the following command to open, assuming that the 1th desktop is turned on.

[Email protected]52013515901 -j ACCEPT

For Windows systems, if you need to connect to the Linux vncserver service, you can use the RealVNC client as shown in:

Where 192.168.100.2:1 represents the 1th VNC desktop connected to 192.168.100.2.

one thing that needs special attention is that when we use the vncserver-list command to see when those desktop numbers are turned on

You can only see the user's own desktop number, including the root user, and the other users will not be able to open those desktop numbers.

Installation and use of Tigervnc-servere services under Linux

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.