我们在windows中,如果想远程操作另外一个windows机器,就用windows自带的远程桌面就可以了。
但如果远程操作的机器不是windows,而是linux或unix,则不能使用windows的远程桌面。
此时需要使用VNC。
Virtual Network Computing (VNC) is a graphical desktop sharing system that uses the RFB protocol (remote framebuffer) to remotely control another computer.
更简单一点的定义:VNC is a protocol (或标准) that allows a desktop to be viewed and controlled remotely over the Internet.
If you're connecting to a client behind a firewall, you may need to use Reverse VNC instead.
VNC是平台无关的,也就是说我们用它来远程控制windows,linux,unxi等各类操作系统都可以。
A VNC system consists of a client, a server, and a communication protocol
- The VNC server is the program on the machine that shares its screen. The server passively allows the client to take control of it.
- The VNC client (or viewer) is the program that watches, controls, and interacts with the server. The client controls the server.
- The VNC protocol (RFB) is very simple, based on one graphic primitive from server to client ("Put a rectangle of pixel data at the specified X,Y position") and event messages from client to server.
也就是说,如果我想从windows远程控制linux,我需要:
1, 在linux上安装VNC server。对于一些比较成熟的linux来说默认已经安装了vnc server。例如ubuntu的Desktop Sharing。
2, 在windows上安装VNC client (或叫VNC viewer)。一般安装server也会附带有一个client工具。
如果是在互联网上远程控制,为了安全应该和ssh结合着使用。
常用工具有realVNC等(有免费版,但是功能有限)。这有一个Comparison of remote desktop software:
http://en.wikipedia.org/wiki/Comparison_of_remote_desktop_software