从 linux (ubuntu) 运行远程桌面连接

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9120054/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-06 04:20:31  来源:igfitidea点击:

Run a remote desktop connection from linux (ubuntu)

linuxubuntu

提问by Master345

I have a little problem that is troubling me. Can i connect to a windows trough remote desktop protocol from a linux (Ubuntu)?

我有一个小问题困扰着我。我可以从 linux (Ubuntu) 通过远程桌面协议连接到 Windows 槽吗?

In Windows i have Remote Desktop Connection

在 Windows 中,我有远程桌面连接

http://www.techotopia.com/images/8/81/Windows_server_2008_remote_desktop_connection.jpg

http://www.techotopia.com/images/8/81/Windows_server_2008_remote_desktop_connection.jpg

but in linux i can connect only to other linux.

但在 linux 中我只能连接到其他 linux。

And i don't know if is possible. Is this possible?

我不知道是否可能。这可能吗?

Thank you

谢谢

采纳答案by Dirk Eddelbuettel

There are bare-boned applications like rdesktopas well as a number of nicer ones that can set up configuration defaults etc. The way it goes with KDE and Gnome, these apps sometimes go stale, get replaced, have inconsistent naming etc but hey, the price is right.

有像rdesktopKDE 和 Gnome 那样的基本应用程序和一些更好的应用程序,它与 KDE 和 Gnome 一起使用,这些应用程序有时会过时、被替换、命名不一致等,但是嘿,价格是对的。

I currently like remminathe best. It is a Gnome/Gtk+ plus application. One nice feature is that it also has NXplugins and more. All works out of the box on my Ubuntu systems.

我目前最喜欢remmina。它是一个 Gnome/Gtk+ plus 应用程序。一个不错的功能是它还有NX插件等等。一切都在我的 Ubuntu 系统上开箱即用。

回答by OnResolve

Yes you can, there are apps like Remote Desktop Viewer that are capable of use the RDP (remote desktop protocol)

是的,你可以,有像远程桌面查看器这样的应用程序可以使用 RDP(远程桌面协议)

回答by Rui Marques

I always use this optimal configuration simply running rdesktop from terminal:

我总是使用这种最佳配置,只需从终端运行 rdesktop 即可

$ rdesktop -u REMOTE_USER -p REMOTE_PASSWORD -k pt -g 1440x900 -T "MY REMOTE SERVER" -N -a 16 -z -xl -r clipboard:CLIPBOARD -r disk:SHARE_NAME_ON_REMOTE=LOCAL_SHARED_FOLDER_PATH SERVER_HOSTNAME_OR_IP_ADDRESS

This includes defining the desired window size(-k pt, choose the desired one for you), adding a meaningful window title(-T "MY REMOTE SERVER") , enabling clipboard support(-r clipboard:CLIPBOARD) and a shared folder( disk:SHARE_NAME_ON_REMOTE=LOCAL_SHARED_FOLDER_PATH) between your Linux host and Windows host.

这包括定义所需的窗口大小(-k pt,为您选择所需的)、添加有意义的窗口标题(-T "MY REMOTE SERVER")、启用剪贴板支持(-r clipboard:CLIPBOARD) 和共享文件夹( disk:SHARE_NAME_ON_REMOTE=LOCAL_SHARED_FOLDER_PATH) 在您的 Linux 主机和 Windows 主机之间。

Additionally you can also create a bash script each connection that you use more often:

此外,您还可以为您经常使用的每个连接创建一个 bash 脚本:

#!/bin/sh

rdesktop \
    -u REMOTE_USER \
    -p REMOTE_PASSWORD \
    -k pt \
    -g 1440x900 \
    -T "MY REMOTE SERVER" \
    -N \
    -a 16 \
    -z \
    -xl \
    -r clipboard:CLIPBOARD \
    -r disk:SHARE_NAME_ON_REMOTE=LOCAL_SHARED_FOLDER_PATH \
    SERVER_HOSTNAME_OR_IP_ADDRESS