Remote Linux host is one of the most common tasks for Linux users. We used to connect to Linux character terminals using software such as CRT and PUTTY. I have never thought about how to connect to the Linux Desktop. The reason is very simple: No matter from the book, the teacher's mouth is saying that the Linux Desktop is dispensable. However, I personally think that no matter whether a Linux character terminal or desktop can be used as long as the job can be finished with the highest efficiency. Windows has a remote desktop, so does Linux. The following describes how to remotely connect to a Linux desktop in windows using VNC.
1. Install the VNC service and start the service to generate a logon key:
[Root @ localhost ~] # Yum install tigervnc-server tigervnc # installation of vnc software and tigervnc-server is required
[Root @ localhost ~] #/Etc/init. d/vncserver start # start The vncserver service
2. Generate the vnc logon key and view the Port:
[Root @ localhost ~] # Vncserver: 3 # Start VNC on port 9503
You will require a password to access your tops.
Password: ### enter the vnc connection Password
Verify: ### enter the vnc connection password again
New 'localhost. localdomain: 3 (root) 'desktop is localhost. localdomain: 3
Starting applications specified in/root/. vnc/xstartup
Log file is/root/. vnc/localhost. localdomain: 3.log
[Root @ localhost ~] # Netstat-utpln | grep X
Tcp 0 0 0.0.0.0: 5901 0.0.0.0: * LISTEN 3181/Xvnc
Tcp 0 0 0.0.0.0: 5903 0.0.0.0: * LISTEN 3401/Xvnc
Tcp 0 0 0.0.0.0: 6000 0.0.0.0: * LISTEN 2410/Xorg
Tcp 0 0 0.0.0.0: 6001 0.0.0.0: * LISTEN 3181/Xvnc
Tcp 0 0 0.0.0.0: 6003 0.0.0.0: * LISTEN 3401/Xvnc
Tcp 0 0: 6000: * LISTEN 2410/Xorg
Tcp 0 0: 6001: * LISTEN 3181/Xvnc
Tcp 0 0: 6003: * LISTEN 3401/Xvnc
3. Optimize the firewall and selinux:
[Root @ localhost ~] # Iptables-F # Clear the firewall and disable selinux
[Root @ localhost ~] # Iptables-L
Chain INPUT (policy ACCEPT)
Target prot opt source destination
Chain FORWARD (policy ACCEPT)
Target prot opt source destination
Chain OUTPUT (policy ACCEPT)
Target prot opt source destination
[Root @ localhost ~] # Setenforce 0
4. Install the Connection Tool in windows:
Next step
Consistent default values:
After the installation is complete, the license dialog box is displayed and canceled.
5. Connection usage:
Connection successful:
VNC installation Configuration
Install and configure VNC in CentOS 6.3
In Linux, the dependency installation VNC is not detected.
CentOS6 VNC service installation and configuration
VNC remote control installation and Setup
Install VNC for accessing Ubuntu 12.04 through Windows Remote Desktop