CentOs6.5 install the gnome graphical interface and remotely access it through VNC

Source: Internet
Author: User
Tags windows remote access

CentOs6.5 install the gnome graphical interface and remotely access it through VNC
Preface

To meet project requirements, you must install a graphical interface on a remote host (only controlled by PUTTY. I want to describe the entire process in as much detail as possible. If anything is inappropriate, please point it out.

Configure the environment
  • Remote Host: CentOS release 6.5 (Final)
  • Local: Windows 7 32bit
  • VNC version: VNC-Viewer-6.0.3-Windows-32bit
  • PUTTY
Installation and remote accessInstallation 1. Select the graphical interface

Common Linux graphical interfaces include GNOME and KDE. For more information, see the introduction of KDE, Gnome, Xfce, and LXDE. Here I chose GNOME.

Ii. Installation

1. Use Putty to log on to the remote host.
2. Execute the following commands in sequence:

[root@xxx ~]#yum groupinstall -y "X Window System"[root@xxx ~]#yum groupinstall -y "Desktop"[root@xxx ~]#yum groupinstall -y "Chinese Support"

In this case, the graphical interface has been installed. verify whether the installation is successful.

3. verify whether the desktop environment components have been installed by running the following command:

[root@xxx ~]# yum grouplist | more

:

If all three of them appear, the installation is successful.

The desktop is installed on CentOs, because it is a remote host and cannot immediately see the effect. All the following graphic interfaces for accessing CentOs through VNC Viewer.

VNC Remote Access

The key here is to correctly configure VNC on CentOs.

1. Install the VNC Server

The vncvnc-server Source above centos6 has been changed to tigervnc-server, and the command is executed:

[root@xxx ~]# yum -y install tigervnc-server
Ii. vncserver Configuration

1. Single User root a. modify the configuration file

[Root @ xxx ~] # Vim/etc/sysconfig/vncservers # modify the following two lines of code in the file: VNCSERVERS = "1: root "VNCSERVERARGS [1] ="-geometry 1024x768-nolisten tcp-localhost"

B. Set a remote logon password for the vncserver. This password is an independent password for the vnc connection and has nothing to do with the system password.

[root@xxx ~]# vncpasswd Password:Verify:[root@xxx ~]#

C. Configure Firewall rules to allow vnc remote connection

[Root @ xxx ~] # Vi/etc/sysconfig/iptables... -a input-m state -- state NEW-m tcp-p tcp -- dport 5901-j ACCEPT # Open "5901" Port-a input-m state -- state NEW-m tcp- p tcp -- dport 5902-j ACCEPT # Open the "5902" port...

D. Start the specified port of the service. If the vnc service on the specified port has been started, a prompt is displayed. if the service is not started, the vnc service on the specified port is restarted:

[Root @ xxx ~] # Vncserver: 1 # specify Port 1 (system Port 5901) to start the service. Note that there is a space before ": 1 ".

At this point, the configuration is complete for a single user, and then go to step 3 for remote access on the local machine. For more information about the configuration for a single user, seeReferences 3

2. Multi-user configuration multi-user configuration ViewReferences 4

3. GUI for windows Remote Access to Gnome

A. download the latest VNC connection tool and download the corresponding version on the official website.

B. Run VNC Viewer to create a connection

C. the input "Target Host IP Address: logon port (yes, the port is 1, 2, or 3 above) in the VNC Server (Server). Other Default values are as follows, click "Connection )";

D. Enter the vnc logon password (note that it is the vnc password, not the logon password of the target host system ).

The preceding operations are completed.

Summary

Some people have said that the problem is often the direction of your success. There will always be problems in the execution process, and you should make full use of Google and other search tools to find a solution.

This installation and remote access took a long time to complete. After all, the online tutorials were inconsistent with the environment where they were located. If you tried it, you would always find your own method.

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.