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