Network remote control technology refers to a computer (master) to control another computer (controlled), and when the master is on the control end, just as users sit in front of the controlled terminal, they can execute the controlled application and use the system resources of the controlled terminal.
"VNC Introduction 』
Network remote control technology refers to a computer (master) to control another computer (controlled), and when the master is on the control end, just as users sit in front of the controlled terminal, they can execute the controlled application and use the system resources of the controlled terminal.
VNC (Virtual Network Computing) is a set of software developed by the at&t lab that can control remote computers. It adopts the GPL authorization terms and anyone can obtain the software for free. The VNC software consists of VNC Server and VNC Viewer. You must first install the VNC server on the controlled computer before you can control the controlled terminal on the control terminal.
(In windows, a set of well-known remote control software called pcAnywhere, is also released by Symantec.
VNC Server and VNC Viewer support multiple operating systems, such as UNIX, Linux, Solaris, windows, and MACOs, therefore, you can install the VNC Server and VNC Viewer in different operating systems for control. If the current master computer does not have VNC Viewer installed, you can control the control end through a general web browser.
The workflow for running the entire VNC is as follows:
(1) connect the VNC client to the VNC server through a browser or VNC Viewer.
(2) The VNC server sends a dialog window to the client, requiring that you enter the connection password and access the VNC Server display device.
(3) After the client enters the online password, the VNC Server verifies that the client has access permissions.
(4) If the client passes the VNC Server verification, the client requires the VNC Server to display the desktop environment.
(5) The VNC Server uses X Protocol to require X Server to assign control of the display to the VNC Server.
(6) The VNC Server will be sent to the client using the VNC communication protocol in the desktop environment of X Server in the future, and allow the client to control the desktop environment and input device of the VNC Server.
"Installation and Use of VNC 』
My operating environment: RH 3 on the control side and Windows 2003 on the control side.
1. Load VNC Server
[Oracle @ jumper] $ wget http://www.realvnc.com/dist/vnc-4.0-x86_linux.tar.gz
-- 10:34:32 -- http://www.realvnc.com/dist/vnc-4.0-x86_linux.tar.gz
=> 'Vnc-4.0-x86_linux.tar.gz'
Resolving www.realvnc.com... done.
Connecting to www.realvnc.com [83.170.68.194]: 80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1,625,390 [application/x-gzip]
100% [=============================>] 1,625,390 52.67 K/s ETA
10:35:04 (52.67 KB/s)-'vnc-4.0-x86_linux.tar.gz 'saved [1625390/1625390]
2. install.
Vnc-3.3.7-x86_linux.tar.gz (if the source code, see the instructions in the package), when downloading the Linux version of VNC, You can decompress the file to a folder, such as/home/VNC, copy the vncserver, vncpasswd, and xvnc files to the/usr/bin directory. If you want to remotely control a Linux computer through the Integrated Java interface of the VNC server, you also need to create a sub-directory/usr/local/VNC/classes. After this subdirectory is created, copy the vncjava. Class file to this directory. (Generally, RedHat 9.0 comes with the above files, so you can directly use the terminal to execute it ).
[Root @ xcorder] # tar-xvf vnc-4.0-x86_linux.tar
Vnc-4.0-x86_linux/
Vnc-4.0-x86_linux/vncinstall
Vnc-4.0-x86_linux/xvnc
Vnc-4.0-x86_linux/vncviewer
Vnc-4.0-x86_linux/vncserver
.....
Vnc-4.0-x86_linux/Java/vncviewer. Jar
[Root @ xcorder] # cd vnc-4.0-x86_linux
[Root @ xcorder] #./vncinstall/usr/local/bin
Can't install manual pages to/usr/local/man/Man1
Copying xvnc to/usr/local/bin
Copying vncviewer to/usr/local/bin
Copying vncpasswd to/usr/local/bin
Copying vncconfig to/usr/local/bin
Copying vncserver to/usr/local/bin
Copying x0vncserver to/usr/local/bin
[Root @ xcorder] # mkdir-p/usr/local/vnc/classes
[Root @ xcorder] # cp java/*/usr/local/vnc/classes
3. Start VNC Server on Linux
Run the vncserver command:
[Root @ linux root] # vncserver
You will require a password to access your tops.
Password: ---- to prevent anyone from remotely controlling the computer. Therefore, when
Verify: --- when you start the VNC server once, you must set a password for remote control.
New 'X' desktop is linux: 1 ---- remember this line will be used later.
Creating default startup script/root/. vnc/xstartup
Starting applications specified in/root/. vnc/xstartup
Log file is/root/. vnc/linux: 1.log
(After the preceding steps, the VNC Server is started. If you want to change the VNC Server password, you only need to execute the vncpasswd command .)
4. remote control from the browser.
Start the VNC Server and open your browser. in the address bar, enter the address or IP address of the controlled terminal, and add the port number ": 5800 + display number" to the address to control the computer.
For example: http: // 192.168.01.: 5801 (if the display number is 1, the display number set for the first time is 1, then 5800 + 1 = 5801 is used .)
If you see the window, it indicates that you have succeeded. You can remotely control it by entering the password in the password box.
5. FAQ
A. How can I check whether the port is enabled properly?
[Root @ xcorder] # netstat-an | grep 01
TCP 0 0 0.0.0.0: 5801 0.0.0.0: * listen
TCP 0 0 0.0.0.0: 5901 0.0.0.0: * listen
TCP 0 0 0.0.0.0: 6001 0.0.0.0: * listen
.....
B. Why is there only one terminal window on the desktop after the connection?
Try to modify/root/. VNC/xstartup and change the last line of TWM & to gnome-session & or KDE & (it is said that KDE is not stable in the current VNC Viewer)
C. Why can't I connect after I restart the VNC server?
When you restart the VNC server, the system will specify a new display number. You must use this new number. Otherwise, the connection will fail.