95

I recently installed the latest Kubuntu (x64) on my work machine as I am trying to migrate away from Windows. Unfortunately I use RDP very frequently to connect to customer's servers and need to be able to copy files across.

I have tried the following packages with no luck:

remmina
rdesktop
xfreerdp

My latest attempt to solve this involved connecting one of my folders to the remote server, here is the command I used to launch 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

The servers are not all running the same version of Windows, the one I've been trying so far is running Server 2003 R2. Customer servers range from Server 2000 to Server 2008.

I have been googling this but all the solutions I find seem to fail, maybe because almost all the help out there assumes that I am running Gnome.

Edit: Copying and pasting text seems to work just fine, but that's not what I need.

11 Answers 11

165

https://gitlab.com/Remmina/Remmina/issues/243 says that shares show up using Remmina when you also enable sound redirection. To recap, here is what you have to do:

  1. Create a Remmina RDP connection to the windows machine
  2. Edit that connection.
  3. Under the Basic tab Choose a share folder
  4. In Advanced tab, change sound to local. Save it and connect

Then the shared folder appears in My computer in windows.
(If it does not appear, trying clicking Refresh).

6
  • 18
    It's rediculous, but it works :)
    – simbabque
    Jul 22, 2015 at 15:03
  • 3
    +1 the only answer that worked for me
    – Doon
    Sep 5, 2015 at 15:50
  • 1
    Works also with rdesktop -r sound:local -r disk:nameOnHost=/home/user/windows (does not work with ~)
    – Dominik
    Jul 25, 2016 at 16:28
  • 1
    just to add you have to goto folder properties and click Local Network Share and click checkbox and allow sharing that only it will appear in windows RDP Sep 6, 2018 at 10:44
  • 2
    @KarlMorrison 1. Create a Remmina RDP Connection (should be obvious what it means). 2. While you're at it, choose a shared folder. If you look around your chances of finding this option will increase by a factor of 10. 3. In advanced tab, change sound to local.. Pretty self explanatory. Which part is confusing? Jul 5, 2019 at 5:07
14

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.


Thus, something like this should work:

rdesktop -r disk:sharename=/home/dai -P 192.168.0.2
3
  • 1
    Ah, it appears that Windows doesn't show it in My Computer but I can navigate to it, thanks.
    – Dai
    Nov 2, 2011 at 14:04
  • 2
    I don't suppose you know how to access the share using remmina? \\tsclient is empty even though a share is set. Remmina works better fullscreen than rdesktop so I'd rather use that.
    – Dai
    Nov 2, 2011 at 15:13
  • how to you navigate to it when it doesn't show in My computer? using commandline? what is the windows path to refer to the share? Aug 27, 2014 at 19:12
8

It is strange, but rdesktop requires to share disk and sound together:

redsktop -r sound:local -r disk:share=/home/me
1
  • sound is not required just grant permission over shared folder chmod o+rwx /home/me
    – 0xFK
    Apr 16, 2021 at 7:42
7

Another option would be (if it is suitable of course) to use shared foler, which you can define in the connection profile of remmina.

Go to connection profile and at the bottom define a folder to share with remote machine.

1
  • How can you copy and paste a file to a windows machine via remmina if that machine has disabled the \\tsclient share?
    – Fopedush
    Dec 6, 2021 at 17:39
5

with xfreerdp:

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

Using remmina (1.2.0), it's an option in the gui:

  • Edit your connection
  • Check on 'Share folder' and select one folder in the host.
2
  • 5
    Where should I see in the Windows computer?
    – Royi
    Feb 18, 2018 at 10:24
  • It appears under This PC
    – eleuteron
    Apr 8, 2020 at 15:00
3

With KRDC v17.04.3, drives mounted at /media were automatically visible for me in Windows Explorer in a System Folder named media.

2

1) Open your ~/.local/share/remmina/*.remmina file (backup first) 2) Set absolute path to sharefolder= option 3) Reconnect. Shared folder should be visible in Windows Explorer

1

Tip: when using rdesktop -r disk:sharename=/home/user/whatever use direct path, using ~/whatever won't work.

0

In Remmina RDP connection in Windows server and no transfer files.

Easy in software manager just look for file transfer. Like Sshfs - Filesystem client based on SSH File Transfer Protocol Install it.

-1
  1. You could connect to shared windows folders, e.g. with nautilus.

  2. You could setup a Samba Server on your machine and connect to it from the windows machine.

  3. You could setup an FTP Server on one of the Machines and an FTP Client on the other machine.

  4. Most solutions do not depend on whether you use KDE or Gnome or whatever. You can use "Gnome-Programs" in KDE and the other way around.

There is also an openssh for windows which could help you:

sshwindows

Then you could use scp e.g.:

scp sourcehost:/any/directory /any/local/directory
scp /any/local/directory destinationhost:/and/directory

But I did not try that.

6
  • 2
    Most of the servers are a very long way away, hidden behind various types of VPN and not open to tinkering by myself. I just want a nice simple ctrl-c, ctrl-v like I would do if I was using Windows remote desktop.
    – Dai
    Nov 2, 2011 at 10:23
  • Usually people first migrate to Linux with servers and then with their desktop-PC ;-) But congratulations for this step! --- I now added a link which might help you. Okay and now I understood that you were looking for a copy and paste solution...
    – Michael K
    Nov 2, 2011 at 10:25
  • This is what i found using google... this might help you: superuser.com/questions/224952/…
    – Michael K
    Nov 2, 2011 at 10:27
  • Thanks, I've used scp before but doesn't it require making changes to the server? I can't always do that.
    – Dai
    Nov 2, 2011 at 10:43
  • Yes it does. Did the link help you? It is about Clipbioard Redirection.
    – Michael K
    Nov 2, 2011 at 11:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .