rdesktop 命令
I need some time to connect the windows systems. I have used Remmina which is capable of VNC, SSH, RDP, etc. But all just need RDP. Remmina is a very talented application but I do not need so much talent. I just need RDP and I want to use my screen very efficiently. Remmina shows menus I don’t use and get space from my screen. I decided to used rdesktop which have a lot of option about RDP protocol. But it does not have extra protocols like VNC, SSH, etc. But it does not need them for rdesktop I have other practical solutions for them. Now speaking is enough for now, let’s go to the usage of rdesktop.
我需要一些时间来连接Windows系统。 我使用了Remmina,它具有VNC,SSH,RDP等功能,但是都只需要RDP。 Remmina是一个非常有才华的应用程序,但是我不需要那么多才华。 我只需要RDP,我想非常有效地使用我的屏幕。 Remmina会显示我不使用的菜单,并从屏幕上获取空间。 我决定使用rdesktop,它在RDP协议方面有很多选择。 但是它没有像VNC,SSH这样的额外协议。但是对于rdesktop不需要它们。我还有其他实用的解决方案。 现在来说就足够了,让我们来看一下rdesktop的用法。
安装Rdesktop (Install Rdesktop)
为Ubuntu,Debian,Mint和Kali安装 (Install For Ubuntu, Debian, Mint, and Kali)
$ sudo apt install rdesktop
为Fedora,CentOS和RedHat安装 (Install For Fedora, CentOS, and RedHat)
$ sudo yum install rdesktop
OR
要么
$ sudodnf install rdesktop
Rdesktop语法 (Rdesktop Syntax)
The syntax of the rdesktop is like below.
rdesktop的语法如下。
rdesktop OPTIONS SERVER
`OPTIONS` are provided to set the configuration of the remote desktop.提供了“ OPTIONS”来设置远程桌面的配置。 `SERVER` is the remote RDP server IP address or hostname with the port number if it is different from default RDP port.SERVER是远程RDP服务器的IP地址或主机名,带有端口号(如果它与默认RDP端口不同)。
Rdesktop帮助信息 (Rdesktop Help Information)
Help information about the rdesktop can be displayed without providing any option to the rdesktop command like below.
可以显示有关rdesktop的帮助信息,而无需为rdesktop命令提供任何选项,如下所示。
$ rdesktop
连接RDP服务器指定用户名(Connect RDP Server Specifying Username)
We will start with a simple example where we will provide the username for the RDP connection. We do not provide any password or option. Of course, we have to provide the RDP server IP address or hostname too.
我们将从一个简单的示例开始,我们将提供RDP连接的用户名。 我们不提供任何密码或选项。 当然,我们也必须提供RDP服务器IP地址或主机名。
$ rdesktop -u ismail 192.168.1.10
使用密码连接远程桌面(Connect Remote Desktop with Password)
We will start with a simple and basic example. We will provide the remote system IP address and password. Password will be provided with the-p
option.
我们将从一个简单的基本示例开始。 我们将提供远程系统的IP地址和密码。 密码将与-p
选项一起提供。
$ rdesktop -p myPass123.,) 192.168.1.10
设置位深度:-a支持16,24,32(Set bit depth: with -a which supports 16,24,32)
The connection to the remote system will show us the remote console. This console will have some image quality which can be set during connection with the-a
parameter. We can specify different quality where16
is faster but show less quality. Other levels are24
and32
where32
is the highest quality.
与远程系统的连接将向我们显示远程控制台。 该控制台将具有某些图像质量,可以在与-a
参数连接期间进行设置。 我们可以指定其他质量,其中16
更快,但显示质量更低。 其他级别是24
和32
,其中32
是最高质量。
$ rdesktop -a 16 192.168.1.10
禁用加密(Disable Encryption)
By default, the remote connection is encrypted for security reasons. We can disable encryption if we do not require it. We will use-E
option to disable transmission encryption.
默认情况下,出于安全原因,对远程连接进行加密。 如果不需要,我们可以禁用加密。 我们将使用-E
选项禁用传输加密。
$ rdesktop -E 192.168.1.10
高速缓存连接以提高速度和效率(Cache Connection For Speed and Efficiency)
During connection, some parts of the console graphics are cached for performance reasons. We can enable this cache with the-P
option which will make our remote desktop usage faster and responsive.
在连接过程中,出于性能原因,会缓存控制台图形的某些部分。 我们可以使用-P
选项启用此缓存,这将使我们的远程桌面使用更快且响应更快。
$ rdesktop -P 192.168.1.10
压缩传输(Compress Transmission)
During data transmission, we can enable compression which will save network usage a little bit.
在数据传输期间,我们可以启用压缩功能,这将节省一点网络使用量。
$ rdesktop -z 192.168.1.10
设置屏幕分辨率(Set Screen Resolution)
The remote desktop connection will have some screen resolution where we can also set it during the initial connection. We can use the-g
option where we can provide local resolution with a percentage like%100
which means full screen. Or we can provide a pixel count resolution like1200x800
远程桌面连接将具有一定的屏幕分辨率,我们也可以在初始连接期间对其进行设置。 我们可以使用-g
选项,在此我们可以以%100
类的百分比提供本地分辨率,这表示全屏显示。 或者我们可以提供像素数分辨率,例如1200x800
$ rdesktop -g 100% 192.168.1.10
设置键盘图或输入语言(Set Keyboardmap or Input Language)
The remote desktop connection will redirect our keystrokes to the remote desktop. Remote system default keyboard map may different than ours. We can explicitly specify the keymap we want to use during connection with the-k
option. In this example, we will usetr
keyboard which is Turkish.
远程桌面连接会将我们的击键重定向到远程桌面。 远程系统默认键盘映射可能与我们的不同。 我们可以使用-k
选项明确指定要在连接期间使用的键盘映射。 在此示例中,我们将使用土耳其语的tr
Keyboard。
$ rdesktop -k tr 192.168.10
设置窗口字幕测试(Set Window Caption Test)
The remote desktop connection windows will generally have some name that describes the connection. We can set window caption with the-T
option and providing some test which iswin8
in this case.
远程桌面连接窗口通常会有一些描述连接的名称。 我们可以使用-T
选项设置窗口标题,并提供一些测试,在这种情况下为win8
。
$ rdesktop -T win8 192.168.10
LEARN MORE Teamviewer Installation and Remote Desktop Connection了解更多Teamviewer安装和远程桌面连接
翻译自: /linux-remote-desktop-rdesktop-command-tutorial-with-examples/
rdesktop 命令