Thinstation / thinstation

A framework for making thin and light Linux based images for x86 based machines and thinclients.
https://www.thinstation.net/
810 stars 187 forks source link

Freerdp drive redirection and TS6.2 #654

Open tomarch opened 3 years ago

tomarch commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

Should mount everything at /media

Thinstation commented 3 years ago

Try BASE_MOUNT_PATH=/media USB_MOUNT_DIR="."

DrFlash99 commented 3 years ago

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 commented 3 years ago

Are you including the filesystem support module that you need?

DrFlash99 commented 3 years ago

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 commented 2 years ago

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

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

and

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 commented 2 years ago

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.