Windows的一个有用功能是您可以从另一个位置连接到您的桌面以远程管理您的计算机。幸运的是,主要的Linux发行版也提供此功能,Ubuntu(feature and Ubuntu)就是其中之一。如果您想从Ubuntu远程连接到您的(Ubuntu)Windows计算机,您可以使用其中的默认RDP 客户端(RDP client),称为Remmina。以下是如何创建、配置和建立从Ubuntu到Windows的远程(Windows)桌面连接(desktop connection):
注意:(NOTE:)本教程是在Ubuntu 18.04 LTS ( Bionic Beaver ) 上创建的。但是,它也适用于其他版本的Linux。
第 1 步(Step 1):在 Windows PC 上启用远程桌面连接(Remote Desktop Connections)
如果您想允许其他计算机远程连接到您的Windows PC,您必须首先将其配置为接受远程桌面连接。要了解如何操作,请阅读本教程:如何在所有版本的Windows中启用(Windows)远程桌面连接(Remote Desktop Connections)。
第 2 步(Step 2):启动Remmina 远程桌面客户端(Remmina Remote Desktop Client)
默认情况下,Ubuntu附带一个远程桌面客户端应用程序,该应用程序(desktop client app)支持Windows操作系统用于远程连接的远程桌面协议 (RDP) 。(Remote Desktop Protocol (RDP))您可以在Ubuntu的应用程序(Apps)列表中找到它。
如果您喜欢搜索,可以使用RDP搜索词找到默认的Ubuntu RDP 客户端。(Ubuntu RDP client)
第 3 步(Step 3):配置并建立与Windows的Ubuntu远程桌面会话(desktop session)
打开Remmina Remote Desktop Client后,您应该会看到如下内容:
单击“创建新的连接配置文件”("Create a new connection profile")按钮。
它的图标是一个绿色的加号,很容易在窗口的左上角找到。
上一个操作会打开一个名为Remote Desktop Preference的窗口。在这里,您可以配置要建立的远程桌面Ubuntu到Windows 的连接(Windows connection)。
在配置文件(Profile)部分中,键入要用于连接的名称。(Name)它可以是你想要的任何东西。将“配置文件(Profile)”部分中的其他设置保留为默认设置。
在“基本”选项卡的“(Basic)服务器(Server)”字段中,键入要连接的Windows PC的(Windows PC)IP 地址。(IP address)输入要在远程Windows PC上使用的用户帐户的(user account)用户名(User name)和用户密码(User password)。该用户帐户需要存在于 Windows PC 上。(That user account needs to exist on the Windows PC.)
如果您在Windows PC(Windows PC)上使用Microsoft 帐户(Microsoft account),则可以填写您的电子邮件地址和密码(email address and password)。如果您的Windows PC是域的一部分,请在域(Domain)字段中输入它,否则,请将此字段留空(field empty)。
接下来,您可以设置要用于远程桌面连接的(desktop connection)分辨率(Resolution)和颜色深度(Color depth)。默认情况下,远程桌面配置文件(desktop profile)设置为使用“使用客户端分辨率”("Use client resolution"),这意味着连接使用与您连接的Windows 计算机相同的分辨率。(Windows computer)颜色深度(Color depth)也设置为尽可能高的质量。但是,选择较小的桌面分辨率和颜色深度(desktop resolution and color depth)可以提高Linux到Windows远程桌面会话(desktop session)的性能。如果您在连接到遥控器时遇到延迟Windows 桌面(Windows desktop),尝试降低颜色深度或分辨率(color depth or resolution)。
如果您想与Windows PC共享(Windows PC)Ubuntu 计算机(Ubuntu computer)中的文件夹,请选中共享文件夹(Share folder)框并选择它。
此外,有关更高级的设置,请转到“高级(Advanced)”选项卡。在那里您可以打开或关闭声音、共享打印机、禁用剪贴板同步(clipboard synchronization)等等。
完成所有详细信息的配置后,单击Save and Connect。这将保存您的连接配置文件(connection profile),然后启动与Windows PC的(Windows PC)RDP 连接(RDP connection)。
在几秒钟内,您应该与您的Windows PC建立了正在运行的远程桌面连接(desktop connection)。
您还可以连接(Connect)到远程Windows PC,而无需之前共享的所有个性化步骤。但是,这意味着您下次想要远程控制Windows PC时必须重新配置远程(Windows PC)桌面连接(desktop connection)配置文件。
您是否使用Ubuntu来远程控制Windows PC(Windows PCs)?
如您所见,很容易建立从Linux到Windows的远程(Windows)桌面连接(desktop connection)。Remmina远程桌面客户端(Remmina Remote Desktop Client)默认在Ubuntu中可用,它支持RDP 协议(RDP protocol),因此远程连接到Windows 桌面(Windows desktop)几乎是一件小事。你(Did)用过吗?它是如何为你工作的?此外,如果您有任何问题或需要帮助,请随时在下方发表评论。
Connect to a Windows PC from Ubuntu using Remote Desktop Connection
One useful featurе of Windows is that уou can connесt to yoυr desktoр from another location to remotely manage your computer. Fortunately, major Linux distributions also offer this feature and Ubuntu is оne of them. If you want to connect to your Windows computers from Ubuntu remotely, you can use thе default RDP сlient found in it, called Remminа. Here is how to creаte, сonfigure and establish а remote desktop connection from Ubuntu to Wіndоws:
NOTE: This tutorial was created on Ubuntu 18.04 LTS (Bionic Beaver). However, it works in other versions of Linux too.
Step 1: Enable Remote Desktop Connections on your Windows PC
If you want to allow other computers to connect remotely to your Windows PC, you must first configure it to accept remote desktop connections. To learn how to do it, read this tutorial: How to enable Remote Desktop Connections in all versions of Windows.
Step 2: Launch the Remmina Remote Desktop Client
By default, Ubuntu comes with a remote desktop client app that supports the Remote Desktop Protocol (RDP) used by Windows operating systems for remote connections. You can find it in Ubuntu's Apps list.
If you prefer to search, you can find the default Ubuntu RDP client by using the RDP search term.
Step 3: Configure and establish the Ubuntu remote desktop session to Windows
Once you open the Remmina Remote Desktop Client, you should see something like this:
Click the "Create a new connection profile" button.
Its icon is a green plus sign which is easy to spot in the top-left corner of the window.
The previous action opens a window called Remote Desktop Preference. Here you can configure the remote desktop Ubuntu to Windows connection that you are going to establish.
In the Profile section, type the Name that you want to use for the connection. It can be anything you wish. Leave the other settings from the Profile section set to their defaults.
In the Server field from the Basic tab, type the IP address of the Windows PC to which you will connect. Enter the User name and User password for the user account that you want to use on the remote Windows PC. That user account needs to exist on the Windows PC.
If you are using a Microsoft account on your Windows PC, it is OK to fill in your email address and password. If your Windows PC is part of a domain, enter it in the Domain field, otherwise, leave this field empty.
Next, you can set the Resolution and the Color depth that you want to use for your remote desktop connection. By default, the remote desktop profile is set to use the "Use client resolution" which means that the connection uses the same resolution as the Windows computer to which you connect. The Color depth is also set at the highest quality possible. However, selecting a smaller desktop resolution and color depth can improve the performance of your Linux to Windows remote desktop session. If you experience lag when connected to the remote Windows desktop, try reducing the color depth or resolution.
If you want to share a folder from your Ubuntu computer with the Windows PC, check the Share folder box and select it.
Also, for more advanced settings, go to the Advanced tab. There you can turn the sound on or off, share printers, disable clipboard synchronization, and so on.
Once you finish configuring all the details, click Save and Connect. This saves your connection profile and then initiates an RDP connection to the Windows PC.
In a matter of seconds, you should have a running remote desktop connection established to your Windows PC.
You could also Connect to the remote Windows PC, without all the personalization steps shared earlier. However, that means that you have to reconfigure the remote desktop connection profile the next time you want to remote control your Windows PC.
Do you use Ubuntu to remote control Windows PCs?
As you can see, it is easy to establish a remote desktop connection from Linux to Windows. The Remmina Remote Desktop Client is available by default in Ubuntu, and it supports the RDP protocol, so connecting remotely to a Windows desktop is almost a trivial task. Did you use it? How did it work for you? Also, if you have any questions or if you need help, feel free to leave a comment below.