Environment: Win7 + Ubuntu10.10 objective: to remotely access the server through the VNC client on Windows/Linux, and the server interface is visible (clients such as SSH can only perform remote operations through command lines ). Software: http://www.realvnc.com/products/download.htmlcan be installed with a free edition. [VNC Introduction] VNC is basically a display system, that is, it can put the complete window
Environment: Win7 + Ubuntu 10.10
Objective: to remotely access the server through the VNC client on Windows/Linux, and the server interface is visible (clients such as SSH can only perform remote operations through command lines ).
Software: http://www.realvnc.com/products/download.html usually choose the free version of the installation.
[VNC overview]
VNC is basically a display system, that is, it can transmit the complete window interface to the screen of another computer through the network. VNC consists of two parts: the client application (vncviewer) and the server application (vncserver ).
The workflow for running 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.
[Client installation]
Select the appropriate Windows or Linux version.
[Server Installation]
sudo apt-get install vnc4server
[Server configuration]
1. Set the vnc logon password for the current user
vncpasswd
The system will prompt you to enter Passwd: xxxxxx to Verify the password: Verify: xxxxxx. It must be at least six characters long.
2. Configure the Visual Interface
The default window manager used by vncserver is twm, which is a very simple window manager. If the server side is not configured, an ugly interface will appear after the client logon, which is inconvenient to use. To change your desktop to GNOME or KDE, modify the configuration file xstartup.
vi ~/.vnc/xstartup
Xstartup original file:
#! /Bin/sh
# Uncomment the following two lines for normal desktop:
# Unset SESSION_MANAGER
# Exec/etc/X11/xinit/xinitrc
[-X/etc/vnc/xstartup] & exec/etc/vnc/xstartup
[-R $ HOME/. Xresources] & xrdb $ HOME/. Xresources
Xsetroot-solid gray
Vncconfig-iconic &
Xterm-geometry 80x24 + 10 + 10-ls-title "$ VNCDESKTOP Desktop "& |
SetX-window-manager &ChangeGnome-session &
If you want to use KDE as the desktop, change it to startkde &
3. Restart vncserver
Check the number of sessions (the port number should change at this time. Generally, each time the VNC client is closed, the port number increases by 1 upon next login)
vncserver
This is the first session. Start it.
vncserver :1
If you want to stop Session 1:Vncserver-kill: 1
[Client logon]
Enable VNCViewer, and enterServerIP: session numberAnd then enter the password.
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2