LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   rdesktop USB redirect (https://www.linuxquestions.org/questions/linux-networking-3/rdesktop-usb-redirect-630349/)

varange 03-24-2008 07:53 PM

rdesktop USB redirect
 
Is there any way to redirect a USB port on a local machine to and RDP connection with rdesktop to a Windows terminal server?

beadyallen 03-24-2008 08:20 PM

It depends on what you mean by 'redirect'. If you mean using the new features of RDP 6 (in Vista for example) for transparent use of devices like usb cameras, scanners, printers etc, then no, rdesktop (and afaik no other linux rdp client) cannot do what you want. I'd have thought that sometime in the future it'll become available, but since it's only recently been added to the RDP protocol, the rdesktop developers will take a while to catch up.

However, if you're just wanting to mount a usb stick, then you can forward that to a server, and it'll appear as a network drive. But I'd have thought 'hotplugging' the device will be problematic to say the least.

varange 03-24-2008 08:48 PM

Thanks for that.

So how do people solve the problem of users wanting to transfer stuff from their USB sticks to their desktops?

beadyallen 03-24-2008 10:02 PM

Quote:

So how do people solve the problem of users wanting to transfer stuff from their USB sticks to their desktops?
Well the only way I know of is to do something like:
Code:

rdesktop -u username -disk:usb=/mnt/usb <servername:port>
The command line above exports the directory /mnt/usb on the client which shows up on the remote desktop as a mapped network drive named 'usb'. If you have the usb automount on the client, and then export that directory, you should get close to what you want.

Good luck.

Zrogh 09-24-2014 03:01 AM

I know, this post is old. But it's the first I found when I searched "rdesktop usb" and it contains an error.

Quote:

Originally Posted by beadyallen (Post 3099376)
Well the only way I know of is to do something like:
Code:

rdesktop -u username -disk:usb=/mnt/usb <servername:port>

Code:

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

So, the right command is :
Code:

$ rdesktop -r disk:usb=<usb_path> server
For example :
Code:

$ rdesktop -u Zrogh -p 123456 -r disk:usb=/media/myusbkey/ 192.168.1.45 &
Cheers,


All times are GMT -5. The time now is 03:38 PM.