Use VNC to remotely log on to Linux

Source: Internet
Author: User

Server
Install vncserver and RedHat as3 and install it automatically without any configuration.
Run. You can run VNC with any user and run the command vncserver.
Each time a server is started with a Code such as: 1: 2.
Close: Use the command vncserver-kill: 1 to close the corresponding server.
After the first startup, VNC uses the TWM client. If you want to use the complete gnome client, go to the home directory where the vncserver is started.
CD./VNC
VI xstartup
Remove the # before the two rows, and then restart the vncserver.

Client
Run vncviewer directly without installation.
Server write IP + code, such as www.xxx.com.cn: 1, OK, enter the password.

Note: The content of this article is simple and is intended for beginners.
This article is divided into two parts: the first part is the introduction of VNC, and the second part is the installation and use of VNC.
This article summarizes the actual operations of the younger brother Based on the books and the younger brother. If there are errors and omissions, please point out.
Fish_ys 2003.8.25 "wt58
? Dairy Ranger Forum-NENU [Northeast Normal University]
"VNC Introduction 』
Network remote control technology refers to a computer (master) to control another computer (controlled), and when the master is on the control end, just as if the user is sitting in front of the controlled terminal and operating 1

You can execute the controlled application and use the controlled system resources.
VNC (Virtual Network Computing) is a set of software developed by at&t lab that can control remote computers. It adopts authorization terms and anyone can obtain the software for free.

. The VNC software consists of VNC Server and VNC Viewer. You must install the VNC server on the controlled computer before you can run the VNC

Viewer controls the controlled end.
(In windows, a set of well-known remote control software called pcAnywhere, is also released by Symantec.
VNC Server and VNC Viewer support a variety of operating systems, such as UNIX, Linux, Solaris, windows, and MACOs.

Install them in different operating systems for control. If the current master computer does not have VNC Viewer installed, you can control the control end through a general web browser. ~
The workflow for running the entire 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.
? Dairy Ranger Forum-NENU [Northeast Normal University]
"Installation and Use of VNC 』
My operating environment: redhat8.0 on the control side and Windows XP on the control side.
1. Load the VNC Server and VNC Viewer.
VNC Server: http://www.linuxeden.com/download/softdetail.php? Softid = 744
VNC Viewer: http://download.pchome.net/php/dl.php? SID = 1, 2603
2. install. R,
Rpm-uvh vnc-3.3.6-2.i386.rpm (for source code, see the instructions in the package ),
Install winvnc.exe
3. Start VNC Server on Linux
Run the vncserver command:
[Root @ linux root] # vncserver 3
You will require a password to access your tops.
Password: ---- to prevent anyone from remotely controlling the computer. Therefore, when
Verify: --- when you start the VNC Server once, you must set a password for remote control.
New 'X' desktop is Linux: 1 ---- remember 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 preceding steps, the VNC Server is started. If you want to change the VNC server password, you only need to execute the vncpasswd command .)
4. Run VNC Viewer on Microsoft Windows
Run unzip vncviewer.exe directly. The connection details dialog box is displayed.
In the connection details dialog box, enter the IP address of the VNC Server (or host name and display device number) in the "VNC Server" text box (see 3. Start on Linux

Update the line of the VNC Server. The new 'X' desktop is Linux: 1 to obtain this information. For example, 192.168.0.1: 1 (1 after the colon is the display generated by the VNC server.

Device number), click the "OK" button, the VNC server starts to check the entered information. If the information is incorrect, the system will see the error "failed to connect to server ".

Incorrect information: if the information is correct, the "VNC authentication" dialog box appears.
If the password entered in the "VNC authentication" dialog box is correct, you can successfully open the Linux desktop window.
5. remote control from the browser.
Start the VNC Server and open the browser directly. In the address bar, enter the address or IP address of the controlled end, and add the port number ": 5800 + display number" to the address to control the calculation.

Machine.
For example: http: // 192.168.01.: 5801 (if the display number is 1, the display number set for the first time is 1, then 5800 + 1 = 5801 is used .)
? Dairy Ranger Forum-NENU [Northeast Normal University]
6. FAQ =
A. Why is there only one terminal window on the desktop after the connection?
Try to modify/root/. VNC/xstartup and change the last line of TWM & to gnome-session & or KDE & (it is said that KDE is not stable in the current VNC Viewer) W3
? Dairy Ranger Forum-NENU [Northeast Normal University]
B. Why can't I connect after I restart the VNC server?
When you restart the VNC server, the system will specify a new display number. You must use this new number. Otherwise, the connection will fail.
? Dairy Ranger Forum-NENU [Northeast Normal University]
Source: http://www.chinaunix.net/forum/4/20030622/97603.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.