Supporting USB Devices¶
It is possible to redirect USB flash drives with the PCoIP Client SDK for Linux. The following steps outline how to enable support for remoting USB devices:
- Install usb_helper to /usr/libexec/pcoip-client.
-
Grant the nescessary capability to the usb_helper by running:
setcap "cap_setgid+i" /usr/libexec/pcoip-client/usb-helper
-
Grant the nescessary capability to the client binary by running:
setcap "cap_setgid+p" /path/to/your/custom/client
-
Adjust the nescessary capability within the client binary. The client binary must have CAP_SETGID in the Inheritable set. See capabilities(7) and cap_set_proc(3) for more details. Teradici strongly advises dropping CAP_SETGID from the Permitted set and perform the entire conversion at the earliest opportunity within the client application.
Running Setcap
setcap must be called after the binary is in its final location. If the binary is changed, rebuilt or moved, then setcap must be re-run before USB functionality will be restored.