Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Freerdp drive redirection and TS6.2 #654

Open
tomarch opened this issue Aug 9, 2021 · 9 comments
Open

Freerdp drive redirection and TS6.2 #654

tomarch opened this issue Aug 9, 2021 · 9 comments

Comments

@tomarch
Copy link

tomarch commented Aug 9, 2021

Hi,

I can't get drive redirection working with TS6.2 (got it working with TS5.5 and udisk-glue).
I've try many thing (automount, autofs, with and without udisk) and use the new freerdp syntax (/drive:hotplug,*).

Freerdp look at /media for mounting point. I can see the drive/mount if i manualy create a mounpoint (ex /media/test) and mount a device but i can't write to it (permission error).
I've try to modify the /etc/udev/script/scsi.sh (strip one slash at line 167) with the use of BASE_MOUNT_PATH=/media and USB_MOUNT_DIR="". Drive redirection works but still permission error.

Is it possible to configure freerdp to look at /mnt/usbdevice ?
Is this functionality works with TS6.2 ? Or i missing something ?

@Thinstation
Copy link
Owner

I think the best solution that has been developed, was to have thunar automount removable media. Drives inserted before thunar starts could be mounted vi .xinitrc. TS6.2 automount exits if it detects udisks, I think 5.5 would still try and do stuff.

@Thinstation
Copy link
Owner

I added some new code to do everything I described.
make sure you have the following in build.conf
package udisks
comment out package automount
in thinstation.conf.buildtime
UDISKS_AUTOMOUNT=true

@Thinstation
Copy link
Owner

Should mount everything at /media

@Thinstation
Copy link
Owner

Try
BASE_MOUNT_PATH=/media
USB_MOUNT_DIR="."

@DrFlash99
Copy link

Hello, running in to the same issue as OP. Configured as mentioned here. in build.conf automount is commented, and udisks uncommented. the 3 config directives are placed in thinstation.conf.buildtime.

I can see with udiskctl that it is recognizing the USB drive, however nothing gets mounted. Any ideas how to further troubleshoot?

@Doncuppjr
Copy link
Contributor

Are you including the filesystem support module that you need?

@DrFlash99
Copy link

DrFlash99 commented Oct 25, 2021

The required filesystem modules are installed. The 'desktop' version of automount works fine from within xfce4. But same as OP I need this functionality for a RDP session without local desktop.

to extend on above, I have a single image (same build.conf and thinstation.conf.buildtime) with different 'runtime' configs coming from the PXE server.

@toddpfaff
Copy link

toddpfaff commented Jun 17, 2022

I'm trying to do the same thing today and encountering the same problem. That is:

  • pxe booting TS6.2

  • no local desktop, just single FreeRDP session to remote Windows 10 RDP server

  • want to allow local USB drive to be automatically provided to RDP server

  • this could either be by redirecting the USB device to the remote Windows host and let it mount the filesystem, or by mounting the filesystem on the TC host and SMB share it to the WIndows host

  • I have not been able to get the former to work using the FreeRDP /usb: id:xxxx:xxxx method, Windows doesn't see the device

  • I have been able to get the latter to work if I manually mount the USB device directly under /mnt, e.g.
    mkdir /mnt/sdb2 && mount /dev/sdb2 /mnt/sdb2
    and then the remote Windows sees the SMB share created by FreeRDP /drives

  • If I enable the automount package, by default the USB device gets mounted under /mnt/usbdevice/sdb2, but this does not work with FreeBSD /drives

  • I've tried setting USB_MOUNT_DIR="/mnt/" in the boottime thinstation.conf but that hasn't worked, the device still gets automounted under /mnt/usbdevice/

So, my problem seems to be due to the fact that:

  • the FreeRDP /drives option is only passing usb drive devices that are mounted directly under /mnt/,

and

  • the TS automount package is only mounting usb drive devices under /mnt/usbdevice/.

After much trial and error I found the easiest solution to be something like this:

xfreerdp /drive:USB,/mnt/usbdevice

and then the usb devices that are automounted under /mnt/usbdevice/ are seen in Windows as \\TSCLIENT\USB.

@Thinstation
Copy link
Owner

By default on a freedrp build, the smart-card reader is consumed by pcscd. You can share the smart card reader with correct FreeRDP options, or you can edit /build/packages/freerdp/dependencies and remove pcscd and ccidreader, then share the newly unallocated usb device.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants