VNC Server and VNC Viewer support a variety of operating systems, such as the Unix family (Unix,linux,solaris, etc.), Windows and MacOS, so that VNC server and VNC Viewer is installed separately in different operating systems for control. If the current operating master computer does not have the VNC viewer installed, it is possible to control the managed side through a typical web browser.
The main principle of VNC is to run the Vncserver service on the server side, and then connect the server-side desktop remotely at the client.
Installation and Configuration
1, install VNC software package:
Copy Code code as follows:
Rpm-qa | grep vnc-server
Yum Install Tigervnc Tigervnc-server
2, configure VNC login account, desktop resolution and connection mode:
Copy Code code as follows:
Vim/etc/sysconfig/vncservers
Add to:
Vncservers= "1:root"
vncserverargs[1]= "-geometry 1024x768"
3, configure VNC remote login password:
Copy Code code as follows:
4, configure VNC anti-black screen, and restart service:
Copy Code code as follows:
Vim/root/.vnc/xstartup
Comments:
# xterm-geometry 80x24+10+10-ls-title "$VNCDESKTOP Desktop" &
# TWM &
Add to:
Copy Code code as follows:
Gnome-session &
Service Vncserver Restart
Ps-axu | grep VNC
Netstat-anptu | grep 5091
5, set up VNC service boot:
Copy Code code as follows:
Chkconfig--level 2345 Vncserver on
Chkconfig--list | grep vncserver
6, Firewall open 5901 ports:
Copy Code code as follows:
Iptables-a input-p TCP--dport 5901-j ACCEPT
7. Client Connection:
Copy Code code as follows:
Open the VNC Viewer
VNC server:ip:5901
(The password is not the login password, but VNC set the password)
8, close VNC:
Copy Code code as follows:
Vncserver-kill:1
Service Vncserver Stop
VNC client Download Address: http://www.jb51.net/softs/469413.html