VNC was initially developed by at&t and is a software for remote system management. the operation method is similar to the Common Remote Desktop in windows, of course, its qualification is older than Windows Remote Desktop. in Windows, VNC software includes RealVNC.
Linux does not support remote desktop login for Windows. How can we use a Windows laptop to manage a Linux server?
Download Page:
Http://www.realvnc.com/products/download.html
Http://www.onlinedown.net/soft/45175.htm
First, we will certainly consider SSH, install the SSH server in Linux, and then use Putty to log on to Windows for management.
But now, we do not want to use the command line method. We also want to use the GUI:
1. Install VNC Server in Linux. Most Linux distributions contain the release package of VNC server. You only need to select the installation package.
2. install the VNC client in windows. For example, the VNC client is called VNC Viewer. VNC is relatively simple to use. Enter the client's IP address, and then VNC will connect, and then enter the password in the pop-up password box. if there is no problem, it will be connected.
3. Configure the Linux VNC server.
(1) Start the VNC service. log on to the server using putty ssh. Assume that the user name is test.
Login as: Test
[Test @ myserver's password:
Test@xok.la ~ $/Etc/init. d/vncserver start
Starting VNC Server: No displays configured [OK]
(2) run the vncserver command. If you configure the VNC server for the first time, you are required to provide the password used to log on to VNC. You can also use vncpasswd to change the password later.
Test@xok.la ~ $ Vncserver
You will require a password to access your tops.
Password: 123456
Verify: 123456
Xauth: creating new authority file/root/. VNC/. Xauthority
New 'xok. La. localdomain: 1 (TEST) 'desktop is xok. La. localdomain: 1
Creating default startup script/root/. VNC/xstartup
Starting applications specified in/root/. VNC/xstartup
Log File is/root/. VNC/xok. La. localdomain: 1.log
(3) Now you can log on to Windows using VNC Viewer.
Enter the server address 192.168.0.64: 1.
Then you will be prompted to enter the password, just enter the password you just set, such as 123456
Note: The IP address is followed by: 1, which indicates the display no set by VNC in Linux. Each time a vncserver is run, an additional display will be created, and the display no will be added.
Although you can log on at this time, the page displayed after logon is the X term interface, which is not a normal X Window Interface. We need to modify the configuration to use X Window
(4) modify the configuration file/root/. VNC/xstartup to make it the same as the following content.
- [Test@xok.la. VNC] $ cat xstartup
#! /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 "&
TWM &
(5) save the file, enter vncserver In the putty terminal, and enable VNC to open a new display
Test@xok.la ~ $ Vncserver
New 'xok. La. localdomain: 1 (TEST) 'desktop is xok. La. localdomain: 2
Starting applications specified in/root/. VNC/xstartup
Log File is/root/. VNC/xok. La. localdomain: 2.log
(6) log on again using VNC Viewer
Download the VNC Viewer under WIN (including the registration code ):Http://xok.la/file/2008/11/ha_vnc-e4_2_9-x86_win32.rar
Enter the server address: 192.168.0.64: 2
Then prompt to enter the password, such as 123456
The display no following the server address is based on the results of the vncserver Command run in step (5 ).
New 'xok. La. localdomain: 1 (TEST) 'desktop is xok. La. localdomain: 2
So display no is 2. Don't forget to add a colon.
Then you can see the interface you want.
In the future, if the server is restarted, you need to re-enter the vncserver and log on. If the server has been turned on, you do not need.
If you want to kill the vncserver process, run vncserver: 1 kill. 1 indicates the idnumber of display.