Linux remote Control detailed installation--VNC

Source: Internet
Author: User

Network remote control technology refers to a computer (the main control side) to be controlled by another computer (the controlled side), and when the host side in the control side, as the user in person sitting in front of the end of the operation, can be executed by the host side of the application, and the use of the controlled end of the system resources

Http://www.realvnc.com/index.html

"Introduction to VNC"
Network remote control technology refers to a computer (the main control side) to be controlled by another computer (the controlled side), and when the host side in the control side, as the user in person sitting in front of the end of the operation, can be executed by the host side of the application, and the use of the controlled end of the system resources.
VNC (Virtual Network Computing) is a set of software that can be controlled remotely by the T Lab, which is licensed under the GPL and can be obtained free of charge by anyone. VNC software consists of two parts: VNC server and VNC viewer. The user must first install the VNC server on the computer on the controlled side before executing the VNC viewer control terminal on the main console.
(in Windows also by a set of well-known network remote control software ――symantec company launched the pcanywhere.
VNC Server and VNC Viewer support multiple operating systems, such as the Unix family (Unix,linux,solaris, etc.), Windows and MacOS, so VNC server and VNC can be The viewer is installed separately in different operating systems for control. If the current operation of the host computer does not have the VNC viewer installed, you can also use a general web browser to control the terminal.
The workflow for the entire VNC operation is as follows:
(1) The VNC client connects to the VNC Server via the browser or VNC viewer.
(2) VNC server transmits a conversation window to the client, requires the connection password, and accesses the VNC server display device.
(3) After the client enters the online password, VNC server verifies that the client has access rights.
(4) If the client authenticates with VNC server, the client requires VNC server to display the desktop environment.
(5) VNC server requires X server to take control of the screen display to VNC server through X Protocol.
(6) The VNC server will be sent to the client by the desktop environment of X server and allow the client to control the desktop environment and input device of the VNC server.

[Email protected]]# 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
[Email protected]]# CD Vnc-4.0-x86_linux


[[email protected]]#./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
[[Email  protected]]# mkdir-p/usr/local/vnc/classes
[[email protected]]# CP java/*/usr/local/vnc/classes


3. Start the VNC Server on Linux
Execute the vncserver command:
[Email protected] root]# Vncserver
You'll require a password to access your desktops.
Password:----Do not want anyone to remotely control this computer. So when the first
Verify:---1 times when you start VNC server, you will be asked to set the password for the network remote control.
New ' X ' desktop is linux:1----Be sure to remember that 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 above steps, VNC Server has been started.) If you want to change the password for the VNC server, simply execute the VNCPASSWD command. )


Let me introduce my installation and use of Linux under the process.
System requirements: To use VNC, of course, your Linux system uses a graphical environment, which means that xwindows and gnome or KDE environments are installed when the system is installed.
RPM Package Installation and use:
First, go to VNC's official website to download the corresponding VNC software version.
VNC's official website: http://www.realvnc.com/. Currently the latest version is vnc4.4.3. Download the latest version of RPM package for Linux.
Second, the installation of VNC software.
#rpm-IVH vnc-e4_4_3-x86_linux.rpm
#rpm-UVH vnc-e4_4_3-x86_linux.rpm (if the server has VNC installed, upgrade the installation with this command)
Thirdly, because the Enterprise Edition is downloaded, the serial number must be entered for normal use.
#vnclicense-add xxxxx-xxxxx-xxxxx-xxxxx-xxxxx (enter serial number)
IV. Set the VNC connection password.
#vncpasswd (Enter the VNC connection password)
Note: If you do not set the password now, you will be prompted to set the password when you start the VNC service with Vncserver.
V. Start the VNC service.
#vncserver (starting the VNC server)
New ' X ' Desktop is linux:1 (be sure to remember the colon after the number, this is the VNC server number)
Creating default startup. /root/.vnc/xstartup
Starting applications specified In/root/.vnc/xstartup
Log file Is/root/.vnc/linux:1.log
Shut down the VNC service.
#vncserver-kill:1 (shut down the VNC server)
Note: There is a space between kill and: 1.

Tarball Installation and use:
First, go to VNC's official website to download the corresponding VNC software version.
VNC's official website: http://www.realvnc.com/. Currently the latest version is vnc4.4.3. Download the latest version of the Tarball package for Linux.
Second, the installation of VNC software.
# tar ZXVF vnc-e4_4_3-x86_linux.tar.gz
#cd Vnc-e4_4_3_r16583-x86_linux
#./vncinstall/usr/local/bin/usr/local/man (installing VNC binaries and man files)
Thirdly, because the Enterprise Edition is downloaded, the serial number must be entered for normal use.
#vnclicense-add xxxxx-xxxxx-xxxxx-xxxxx-xxxxx (enter serial number)
IV. Set the VNC connection password.
#vncpasswd (Enter the VNC connection password)
Note: If you do not set the password now, you will be prompted to set the password when you start the VNC service with Vncserver.
V. Start the VNC service.
#vncserver (starting the VNC server)
New ' X ' Desktop is linux:1 (be sure to remember the colon after the number, this is the VNC server number)
Creating default startup. /root/.vnc/xstartup
Starting applications specified In/root/.vnc/xstartup
Log file Is/root/.vnc/linux:1.log
Shut down the VNC service.
#vncserver-kill:1 (shut down the VNC server)
Note: There is a space between kill and: 1.

FAQ
1. Use Vncviewer to access the VNC server and report the "Encryption mismatch" message?
A: The only way to change the Professional Edition or Enterprise Edition to Vncviewer.
2, the client access to the default desktop only one x, see a gray interface, how can I see KDE or GNOME desktop?
A: Edit the user directory to start the VNC service under the. vnc/xstartup file, modify the following:
Xsetroot-solid Grey Vncconfig-iconic & xterm-geometry 80x24+10+10-ls-title "$VNCDESKTOP deskt Op "& #gnome-session & (Start Gnome Desktop and remove the previous #)
STARTKDE (Start KDE desktop)
#twm & (Start command line)
3. Where is the VNC password management file?
A: In the user directory that initiates the VNC service. vnc/passwd.
4. Where is the VNC access log file?
A: In the user directory that initiates the VNC service. Vnc/*:1.log.
5, VNC start times "A VNC server is already running as:1", what is the problem?
A: The user has started the VNC service, you can PS Aux|grep VNC to see if there is a VNC process, if there is a representation that someone is: 1 on the desktop to enable the VNC service, if not, stating that the last time to enable the VNC service does not exit normally, you can remove/tmp/. X11-unix the X1 and restart the VNC service.
6. It is OK to start the VNC service on the Linux server, but the client cannot connect to the 10061 timeout.
A: Should be a Linux server firewall setup problem, please check the firewall settings rules. Transfer from http://blog.csdn.net/liqfyiyi/article/details/6938418

Linux remote Control detailed installation--VNC

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.