Vncserver configuration in Linux and VNC client in win

Source: Internet
Author: User

Vncserver configuration in Linux and VNC client in win

VNC was initially developed by at&t and is a software that remotely manages the system. The operation method is similar to the Common Remote Desktop in windows, and its qualification is older than that in windows. 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

The author also uploaded a copy of Windows under the VNC Viewer Installer (free of registration),: http://download.csdn.net/source/1080853
First of all, we will certainly consider SSH, install the SSH server in Linux, and then use Putty to log on to Windows for Management (for the use and download of putty, please go to this page: windows SSH control Linux tool pietty ).
However, we do not want to use the command line interface. We also want to use the GUI. So:
1. Install VNC Server in LinuxMost Linux releases contain the VNC Server Release package. You only need to select the installation option.
2. Install the VNC client in WindowsTake RealVNC as an example. The VNC client is called VNC Viewer. VNC is relatively simple to use. Enter the Client IP address, and then VNC will connect, and then enter the password in the pop-up password box. No problem.
3. Configure the Linux VNC Server.
(1) Start the VNC service, Use Putty to log on to the server through 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
(2) run the vncserver commandIf you configure the VNC server for the first time, the password used to log on to the VNC is required. 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 is created, and the display no value is 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/xstartupTo make it the same as the following:
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 and enter vncserver In the putty TerminalTo 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 you are prompted to enter the password, for example, 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.
If the server is restarted later, you need to re-enter the vncserver and log on. If the server has been turned on, it will not be used.
If you want to kill the vncserver process, run vncserver: 1 kill. 1 indicates the ID of the display.
Link: http://xok.la/2008/11/linux_vncserver_win_client.html

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.