2023-07-28 20:48:54 +03:00
|
|
|
# usbip
|
|
|
|
|
|
|
|
> Use USB devices remotely.
|
|
|
|
> More information: <https://usbip.sourceforge.net>.
|
|
|
|
|
|
|
|
- List all local USB devices and their bus ID's:
|
|
|
|
|
2025-04-20 00:21:53 +03:00
|
|
|
`usbip list {{[-l|--local]}}`
|
2023-07-28 20:48:54 +03:00
|
|
|
|
|
|
|
- Start a `usbip` daemon on the server:
|
|
|
|
|
|
|
|
`systemctl start usbipd`
|
|
|
|
|
|
|
|
- Bind a USB device to `usbip` on the server:
|
|
|
|
|
2025-04-20 00:21:53 +03:00
|
|
|
`sudo usbip bind {{[-b|--busid]}} {{bus_id}}`
|
2023-07-28 20:48:54 +03:00
|
|
|
|
|
|
|
- Load the kernel module required by `usbip` on the client:
|
|
|
|
|
|
|
|
`sudo modprobe vhci-hcd`
|
|
|
|
|
|
|
|
- Attach to the `usbip` device on the client (bus ID is the same as on the server):
|
|
|
|
|
2025-04-20 00:21:53 +03:00
|
|
|
`sudo usbip attach {{[-r|--remote]}} {{ip_address}} {{[-b|--busid]}} {{bus_id}}`
|
2023-07-28 20:48:54 +03:00
|
|
|
|
|
|
|
- List attached devices:
|
|
|
|
|
|
|
|
`usbip port`
|
|
|
|
|
|
|
|
- Detach from a device:
|
|
|
|
|
2025-04-20 00:21:53 +03:00
|
|
|
`sudo usbip detach {{[-p|--port]}} {{port}}`
|
2023-07-28 20:48:54 +03:00
|
|
|
|
|
|
|
- Unbind a device:
|
|
|
|
|
2025-04-20 00:21:53 +03:00
|
|
|
`usbip unbind {{[-b|--busid]}} {{bus_id}}`
|