Remote connection to linux desktop

Source: Internet
Author: User
Tags ssh server xming
Article title: remote connection to linux desktop. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

I. vnc

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 users sit in front of the controlled terminal, they can execute the controlled application and use the system resources of the controlled terminal.

VNC (Virtual Network Computing) is a set of software developed by the AT&T lab that can control remote computers. it adopts the GPL authorization terms and anyone can obtain the software for free. The VNC software consists of VNC server and VNC viewer. You must first install the VNC server on the controlled computer before you can control the controlled terminal on the control terminal.

(In windows, is there a set of well-known network remote control software ?? Symantec released pcAnywhere.

VNC server and VNC viewer support multiple operating systems, such as Unix, Linux, Solaris, windows, and MacOS, therefore, you can install the VNC server and VNC viewer 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.

Installation and Use of VNC

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: linuxeden.com/download/softdetail.php? Softid = 744 "> http://www.linuxeden.com/download/softdetail.php? Softid = 744

VNC viewer: http://download.pchome.net/php/dl.php? Sid = 1, 2603

2. install.

Rpm? Uvh vnc-3.3.6-2.i386.rpm (if the source code please see the instructions in the package)

Install winvnc.exe

3. start VNC Server on Linux

Run the vncserver command:

[Root @ linux root] # vncserver

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 this line of the VNC server on Linux. New 'X' desktop is linux: 1 to get this information. for example: 192.168.0.1: 1 (1 after the colon is the display device number generated by the VNC Server). after you click the "OK" button, the VNC Server starts to check the entered information. if the information is incorrect, the system displays the "Failed to connect to server" error message: 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 your browser. in the address bar, enter the address or IP address of the controlled terminal, and add the port number ": 5800 + display number" to the address to control the computer.

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 .)

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)

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.

This section is from http://grachel1986.blog.163.com/blog/static/566038932010614113332815/

Linux can also remotely connect to linux, which is similar to Windows. install a vncviewer and connect to vncviewer ip: port.

2. PUTTY

Open putty, Connection -- SSH-X11, select Enable X11 forwanding, and then go to the Session to log on to the remote linux server, after login, enter gnome-session. However, note that X forwarding runs only when the X forwarding function is enabled on both the SSH server and the SSH client. if you use putty's SSH client on Windows, you only need to enable the X forwanding function in the interface, as shown above. On the SSH server side (that is, the X11 client side, the linux host), make sure that there is such a line in the file/etc/ssh/sshd_config.

X11forwanding yes

Then restart the sshd process to activate the new configuration, service sshd restart. This method should be able to achieve the expected results. it is worth noting that the firewall is also worth noting that Xming may be installed before this, to http://sourceforge.net/projects/xming/download installation.

III. XDM

You can refer to the following URL information. I believe you will be able to handle it.

Http://blog.chinaunix.net/u/23150/showart_158676.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.