In Linux virtual machines, GNOME + VNC and centosgnome are configured in CentOS 6.x.

Source: Internet
Author: User

In Linux virtual machines, GNOME + VNC and centosgnome are configured in CentOS 6.x.

Requirement Description

The Linux graphical interface is required for specific requirements, but the virtual machines provided by the Azure platform do not enable remote graphical login by default. The following solutions provide a popular combination of GNOME + VNC on the market to remotely manage virtual machines using graphical interfaces.

Note

The following steps apply to CentOS 6.x. Other versions may be slightly different.

Solution

Follow these steps to install GNOME + VNC:

Download GNOME:

The GNOME component includes the NetworkManager package, which is included in the package of WALinuxAgent. To avoid conflicts, install GNOME as follows:

Log on to the VM and change the Administrator identity.

Edit the/etc/yum. conf file and add: exclude = NetworkManager * to the last line *

Save and exit

Run the command: # yum clean all

Run the following command: # yum groupinstall basic-desktop-platform x11 fonts

Configure GNOME:

Edit file ~ /. Xinitrc (new if it does not exist), add: exec gnome-session

Save and exit

Edit file ~ /. Bashrc (if not bash, modify the corresponding file), add the following content:

Copy

If [$ TERM = "xterm"]; then

Export TERM = xterm-color

Fi

Set the graphical interface to the default:

Edit the/etc/inittab file as follows:

Id: 3: initdefault:

Replace

Id: 5: initdefault:

Save and exit

Install VNC:

Run the following command: # yum install tigervnc-server

After installation, run the following command: # vncserver

For the first execution, you need to set a password. The default port number is 5901, and 1 is added in sequence from: 1.

Configure the corresponding endpoint on the Virtual Machine and open the VNC port.

Log on to the virtual machine remotely through the VNC Viewer client. Visit http://market.azure.cn now

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.