当前位置: 首页>>技术教程>>正文


如何在Kubuntu中通过RDP复制/粘贴文件?

, , ,

问题描述

我最近在尝试从Windows迁移时,在工作计算机上安装了最新的Kubuntu(x64)。不幸的是,我经常使用RDP连接到客户的服务器,并且需要能够跨文件复制。

我没有运气尝试过以下软件包:

Remmina RDesktop XFreerdP

解决该问题的最新尝试涉及将我的文件夹之一连接到远程服务器,这是我用来启动rdesktop的命令:

rdesktop -5 -K -r disk:home=/home/dai -r clipboard:CLIPBOARD -r sound:off -x l -P 192.168.0.2 -u "administrator" -p pass

这些服务器并非都运行同一版本的Windows,到目前为止,我一直在尝试运行Server 2003 R2。客户服务器的范围从Server 2000到Server 2008。

我一直在疯狂地谷歌搜索,但是我发现的所有解决方案似乎都失败了,也许是因为那里几乎所有的帮助都假设我正在运行Gnome。

抱歉,这是一个愚蠢的问题。

在此先感谢您的帮助。

编辑:复制和粘贴文本似乎很好,但是那不是我所需要的。

最佳思路

https://github.com/FreeRDP/Remmina/issues/243说,当您还启用声音重定向时,共享会使用Remmina显示。回顾一下,这是您要做的:

  1. 创建与Windows计算机的Remmina RDP连接

  2. 编辑该连接。

  3. 在“基本”选项卡下,选择一个共享文件夹

  4. 在高级选项卡中,将声音更改为本地。保存并连接

然后,共享文件夹将出现在Windows的“我的电脑”中。 (如果未出现,请尝试单击“刷新”)。

次佳思路

Quoting from the man page (http://linux.die.net/man/1/rdesktop):

-r comport:<comport>=<device>,... Redirects serial devices on your client to the server. Note that if you need to change any settings on the serial device(s), do so with an appropriate tool before starting rdesktop. In most OSes you would use stty. Bidirectional/Read support requires Windows XP or newer. In Windows 2000 it will create a port, but it’s not seamless, most shell programs will not work with it.

-r disk:<sharename>=<path>,... Redirects a path to the share \tsclient\ on the server (requires Windows XP or newer). The share name is limited to 8 characters.


因此,这样的事情应该起作用:

rdesktop -r disk:sharename=/home/dai -P 192.168.0.2

第三种思路

另一个选择是(如果合适的话)使用共享文件夹,您可以在remmina的连接配置文件中定义。

转到连接配置文件,然后在底部定义要与远程计算机共享的文件夹。

第四种思路

奇怪,但是rdesktop需要一起共享磁盘和声音:

redsktop -r sound:local -r disk:share=/home/me

第五种思路

xfreerdp

xfreerdp "/v:hostname.example.com" "/u:myusername" /drive:tmp,/tmp

参考资料

本文由Ubuntu问答整理, 博文地址: https://ubuntuqa.com/article/8517.html,未经允许,请勿转载。