Use VNC to access the XWindows desktop of VPS

Source: Internet
Author: User

Use VNC to access the XWindows desktop of VPS

Generally, VPS provides SSH Login mode. In addition to this method, you can use terminal to operate the server. In addition, VPS also has the XWindows Desktop operation mode.

Here is a summary of how to use VNC to access the Linux Desktop System on VPS.

1: first install the Desktop System for linux. VPS uses the CentOS system.

Yum groupinstall "X Window System" "Desktop"

How can I not install this component? After VNC logs on to the system, it looks at a black screen.

2. Install the VNC Server service.

Yum install tigervnc-server

When a VNC user accesses the server, the server must run the vncserver service.

A. Check whether the service is installed.

After the installation, use chkconfig | grep vnc to check whether the service has been added to the service list.

B. Start the service

Sudo service vncserver start

C. Check whether the service is started.

Netstat-plunt

5901 5902 6001 the three ports are the listening ports of the vncserver, indicating that the service is running.

D. modify the configuration file.

VNC has a configuration file under the/etc/sysconfig/vncservers directory.

There are two definition variables in the file. In fact, you can understand it at a Glance. By default, you do not need to change it.

E. Set the VNC password.

When the VNC Viewer accesses the remote system, you need to enter the password and set it on the server side.

Vncpasswd

Enter the password twice as prompted.

3. log on to the Shipping System Using VNC Viewer.

A.

Http://www.realvnc.com/download/

Download a client of the appropriate version.

B. Use the client to enter the shipment system.

The VNC Server is the IP address of the VPS, ending with ": 1"

Then, follow the prompts to enter the previously set password to log on to the system.

In addition to VPS, The VNC Viewer supports Raspberry Pi. You can try a raspberry in the middle of the home and directly connect it to the monitor.

Solution:

Failed to restart. Sometimes an error is reported when the VNC Server is restarted, indicating that it is already running at: 1 or: 1.

In this case, run the command vncserver kill: 1 to remove the running status.

Common VNC operation commands

Usage: vncserver [: ] [-Name ] [-Depth ]

[-Geometry X ]

[-Pixelformat rgbNNN | bgrNNN]

[-Fp]

[-Fg]

...

Vncserver-kill

Vncserver-list

Vncserver [: n] Service Activation

Several vncserver-list statements are running.

Vncserver-kill: n kills the nth x-display

Vncpasswd Change Password

Related Article

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.