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. Installation1. Use Putty to log on to the remote host.
2. Execute the following commands in sequence:
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:
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 AccessThe key here is to correctly configure VNC on CentOs.
1. Install the VNC ServerThe 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 Configuration1. 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.
SummarySome 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.