From dc84d42653100a04b94d4a2685081f85eb781f00 Mon Sep 17 00:00:00 2001 From: Managor <42655600+Managor@users.noreply.github.com> Date: Fri, 28 Jul 2023 20:48:54 +0300 Subject: [PATCH] usbip: add page (#10521) * usbip: add page --------- Co-authored-by: K.B.Dharun Krishna Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> --- pages/linux/usbip.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pages/linux/usbip.md diff --git a/pages/linux/usbip.md b/pages/linux/usbip.md new file mode 100644 index 000000000..5b432a783 --- /dev/null +++ b/pages/linux/usbip.md @@ -0,0 +1,36 @@ +# usbip + +> Use USB devices remotely. +> More information: . + +- List all local USB devices and their bus ID's: + +`usbip list --local` + +- Start a `usbip` daemon on the server: + +`systemctl start usbipd` + +- Bind a USB device to `usbip` on the server: + +`sudo usbip bind --busid={{bus_id}}` + +- 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): + +`sudo usbip attach -r {{ip_address}} --busid={{bus_id}}` + +- List attached devices: + +`usbip port` + +- Detach from a device: + +`sudo usbip detach --port={{port}}` + +- Unbind a device: + +`usbip unbind --busid={{bus_id}}`