Remote Desktop access between Linux and Windows __linux

Source: Internet
Author: User
Tags ssh remote desktop access x11vnc tightvnc viewer tightvnc rdesktop remmina

On Windows, we have used the system's own Remote Desktop Connection or TeamViewer tools, so that we can easily use the graphical way to remotely manipulate other computers. But on Linux, we generally use SSH to operate the terminal. So are there any tools on Linux that let us access the desktop in a graphical way, like Windows? The answer is yes, this is what this article is about.

Remote Desktop Connection mainly uses two protocols, the first is the RDP (remote Desktop Protocol) protocol on Windows, and the second is the VNC (Virtual network Console) protocol. The VNC protocol is better in terms of usage, so I recommend that you use the VNC protocol if available. The following will be described. RDP Protocol Rdesktop

The first tool to introduce is rdesktop, which implements the RDP protocol, allowing us to remotely log on to the Windows system on a Linux system. Take the depth system as an example, install rdesktop use the following command.

sudo apt install rdesktop

After the installation is complete, use a command similar to the following to access the remote Windows system.

Rdesktop-g 1440x900-p-z-x l-r sound:off-u windowsuser

After logging in, the interface looks like this below. Of course, the corresponding Windows system do not forget to open to allow remote connection to this computer, otherwise the client is also unable to connect. If there is a problem with the connection, cancel the "Allow computer connections only for Remote Desktop with Network Level Authentication" option on Windows.

Here's a quick explanation of these parameter meanings.

Parameters meaning
-G The resolution to use is represented later
-P Enable bitmap caching
-Z Enable RDP data stream compression
-X L Using the LAN level image quality
-R Sound:off Turn off sound
-U Windowuser Specify the user to use
IP Address The IP address and port number of the computer to which you want to connect

Specifically, if you want to use Full-screen mode for remote logins, you can use 100% with the-g argument. If you need more detailed instructions, use the man rdekstop to query your own help page.

Here is still recommended Archwiki this site, although it is archlinux Wikipedia site, but a lot of knowledge can be completely universal to other Linux systems. I also refer to the relevant content of Archwiki Wiki.archlinux.org/index.php/rdesktop. Grdesktop

Of course, the command-line approach can sometimes be tricky to use. For Rdesktop, there is also a corresponding graphical front-end tool, Grdesktop is a good tool, it is the GNOME desktop remote login front-end. We can use the following command to install.

sudo apt install grdesktop

Open is a similar interface, enter the relevant information and then connect.

After the connection is similar to the following figure.

KRDC

KRDC is the RDP and VNC connectivity tool for KDE desktops. We use the following command to install KRDC.

sudo apt install KRDC

Open as shown in the figure. You need to enter the address of the computer you want to connect to, and then press ENTER to make further settings in the pop-up dialog box.

After successful connection, the right half of the main window should display the contents of Remote Desktop, but do not know what situation my KRDC has not been able to connect successfully, so there is no way to screenshot. XRDP

The previous Rdesktop tool allows us to remotely log on to the Windows system on a Linux system, which in turn makes it more cumbersome to telnet to the Linux system using the RDP protocol on Windows. This will require XRDP to help us. It is an RDP server that allows us to log on to the Linux system using Remote Desktop.

The first step is to install XRDP.

sudo apt install xrdp

Then start the XRDP service.

sudo systemctl enable xrdp
sudo systemctl start xrdp

Now you should be able to connect to the Linux system with Remote Desktop tools from Windows.

After you enter your username and password for a moment, you should be able to display the Linux desktop.

Well, here's an introduction to some of the tools for using the RDP protocol. From the screenshot, we can see that the RDP protocol is a disadvantage, if the platform is different, the display effect is really bad. I this is the local area network two computers, if the interval distance is longer, the effect will be worse. The RDP protocol is also more appropriate for use between windows. Cross-platform, or the VNC protocol described below is more powerful. VNC Tigervnc and X11vnc

First of all, the VNC server on Linux, more commonly used is tigervnc and X11VNC. X11VNC allows remote visitors to control the actual monitor locally, while Tigervnc can control both the actual monitor and the virtual monitor parallel to the current physical monitor. However, because the test tigervnc in my notebook did not succeed, so here I only introduce X11vnc. For more information about TIGERVNC, refer to Archwiki tigervnc.

First, install the X11VNC with the following command.

sudo apt install x11vnc

After the installation is ready to start, the startup is also very simple, the-PASSWD parameter specifies the password, the-forever parameter specifies that the session is always open.

X11VNC-PASSWD password-display:0-forever

After the opening, you can use the client to connect, the default port number is 5900, will be displayed in the terminal. VNC client on Linux

The choice of VNC client software on Linux is more abundant, each big Linux desktop system has launched its own VNC client. We can use it according to our own needs.

First, let's introduce Vinagre, the Remote Desktop client of the GNOME desktop environment, while supporting SSH, RDP, and VNC protocols. Use the following command to install Vinagre.

sudo apt install vinagre

The software opens the interface as shown in the figure.

This is the connection effect graph, which is connected to my Windows system using the VNC protocol.

Then there is KRDC, the remote connectivity software for the KDE desktop described earlier, which supports both the RDP and VNC protocols. This is the connection effect graph that it uses VNC.

Finally, Remmina, which also supports the RDP and VNC protocols. We can install it with the following command.

sudo apt install Remmina

The following is a diagram of its connection effect.
VNC software on Windows

Some of the software on Linux that supports VNC protocols is described earlier. There are also software that supports VNC protocols on Windows, often RealVNC (fee-based), UltraVNC (free), and TightVNC (free), which are both server and client. I have tried all three software, and feel free tightvnc effect is good. Charge RealVNC and TeamViewer almost, the main function in the cloud collaboration in this respect, if just a simple remote connection, TightVNC fully enough, this is the TightVNC download link.

Here are a few RealVNC screenshots, interested students can register for an account trial for 30 days.

Then let's introduce TightVNC. After installation, the Start menu will have several more menu items. First click on the start TightVNC service, then the system tray will have an extra icon, this is the TightVNC icon. Then double-click it to open the setting. The most important is the port number and password, in fact, do not need to set the port number, the main is the password. Click OK when Setup is complete.

If you need to log on to other systems remotely, use the TightVNC Viewer. After opening, as shown in the figure, follow the IP address:: Port number format Enter the address, and then enter the password. This is mainly a double colon, not a single colon.

After the connection is successful, as shown in the figure.

OK, here are some software introductions and use of RDP and VNC on Linux and Windows, and hope to help.

Related Article

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.