About the control principle of VNC and how to install it

Source: Internet
Author: User
Tags mstsc

first, the screen control principle

VNC is the control of the screen into an image, compressed and transmitted to the control end, control information (such as mouse information) transmitted to the control end into the message queue.
Client X Server Application
VNC viewer<----------------------->xvnc (VNC server) <------------------------>applications
(VNC protocal) (X protocal)
Its control is based on TCP/IP, where VNC server plays a dual role, and VNC Protocal is based on the RfB protocal. Data on the server, the viewer is just a display terminal, similar to the mstsc under Windows.

second, screen-cutting mode

VNC uses a unique screenshot method, which has two ways: the first is to use the hook to automatically report the need to intercept the area, the second is to poll a region (such as the foreground window). After the screenshot is compressed and sent using some compression algorithm.

third, transmission mode

1.RFB protocol Transmission: At the end of the control can not directly change the display size, can only be scaled, such as scaling to several times the original size. The principle is to run an additional x server on the remote machine, and the X server and the client machine are running remotely. The RFB protocol is then displayed locally with its own client. 2.X protocol: The X Window System provides a public agreement by which the client program can query and update information on the X server. The X Windows System (x protocol) allows processes on different computers in the network to display content on other network monitors. How to use:Detailed steps for installing VNC Remote Desktop under Ubuntu virtual Network Computing (VNC) is a software for Remote Desktop control. The client's keyboard input and mouse actions are transmitted over the network to the remote server, controlling the operation of the server

(Only background, no menu bar problem not resolved) Virtual Network Computing (VNC) is a software for Remote Desktop control. The client's keyboard input and mouse actions are transmitted over the network to the remote server, controlling the operation of the server. The graphical interface of the server is displayed to the user through the network transport client. It feels like you're working directly on the local computer, except that all programs and commands are executed on the server side.

1. Open a terminal, install Vnc4server

sudo apt-get install Vnc4server



2. Then install sudo apt-get installation Gnome-panel

3, Start Vnc4server, enter the vnc4server you will be prompted to enter the password, when the link through the client will use this password.

After entering the password you will see a hint similar to the following:



Here you can see the new created a desktop for ubuntu:1 this as a background connection server with

4. Edit Start Step

vim/home/User name/.vnc/xstartup
In &x-window-manager & Add #
And then add 2 more lines to the bottom.
Startgnome &
Display=:1 Gnome-session &

5. Restart the VNC service

Vncserver-kill:1 and then start the VNC service input Vnc4server

6. Open the VNC client Input Server under window Ip+:1:



7. Click OK to enter the password on the server



8. Successful Login



PS: Here by the way to introduce a window under the operation of Linux-like FTP tool WINSCP, pull a file from window to Linux, directly pull to the corresponding folder to achieve the upload effect

+++++++++++++++++++ the method of attaching XRDP ++++++++++++++

Open Terminal: Install in sequence

Sudoapt-get Install XRDP

Sudoapt-get Install Vnc4server Tightvncserver

After installation, execute the following command (This command is due to install the GNOME desktop, ubuntu12.04 in the same unity, Gnome multiple desktop manager, need to start the time to specify one, or even if the remote login verification succeeds, but also the background, nothing else)

Cd/home/youruser (Youruser is everyone's own user name)

SUDO/ETC/INIT.D/XRDP restart

3. MSTSC running Windows

How to control the VNC and how to install it

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.