13

I have a client machine running ubuntu, and I have a windows server 2012 that I connect to using rdesktop.

I need to copy a file from my client machine to the server. I tried sharing a directory like this:

rdesktop -u username -p password -r disk:mydisk=/home/mydir server_IP

I have no idea how to access this shared directory. I have never used rdesktop or windows server before.

please help.

akonsu
  • 295
  • 2
  • 3
  • 10

6 Answers6

17

It seems that specifications for RDP (MS-RDPEFS) have changed. In specific Windows versions, you also have to forward audio in order to get disk forwarding to work.

PythonLearner
  • 1,022
  • 2
  • 12
  • 29
5

Try adding -r sound:local to your command.

The final command should look like this:

rdesktop -u username -p password -r disk:mydisk=/home/mydir server_IP -r sound:local

Drew Khoury
  • 4,569
  • 8
  • 26
  • 28
Eric
  • 151
  • 1
  • 2
1

Open up Explorer. It should show up in Computer with other drives.

MDMarra
  • 100,183
  • 32
  • 195
  • 326
0

EDIT: If you know about \tsclient and you know it is empty, this answer is not for you.

How to access correctly shared drectory from remote windows server: While in remote session on windows server, it should be listed in Computer among other drives. If it is not, try typing \\tsclient in address bar in Computer. To be specific, your shared directory should be accessible at \\tsclient\mydisk.

betatester07
  • 142
  • 5
0

For this example, I'm naming your host Ubuntu1.

Using this command to access launch rdesktop from Ubuntu1:

rdesktop -u rob -p Password1 -r disk:mydisk=/home/mydir 10.0.0.126

I connect to 10.0.0.126 just fine. I open Windows Explorer and look at the bottom of my list. Just below my Z: drive, I see a drive icon and mydisk on Ubuntu1

I can save files to it, and they appear on Ubuntu1 in directory /home/mydir.

RobW
  • 2,766
  • 1
  • 17
  • 22
  • 1
    in my case it does not show in windows explorer. I can see `\\tsclient`, but it is empty. The windows server that I am using is AWS EC2 instance, maybe I need to configure something? – akonsu Jul 13 '13 at 01:32
  • The instructions are fine. I just tried them. Up voted. – Shoan Dec 30 '15 at 08:03
0

Enabling the Sound also works for Remmina to addresss missing shared drive issue. I believe remmina and other RDP clients for Linux just use rdesktop to complete the connection.

Just change the dropdown option on Sound to Local, and voila, the specified shared folder will now show up. Also fixes missing printers.