Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gema-arta/3399c2028d9471582e23d2836597b482 to your computer and use it in GitHub Desktop.
Save gema-arta/3399c2028d9471582e23d2836597b482 to your computer and use it in GitHub Desktop.
USB-over-IP for sharing webcam over local network
# server - make a device available remotely
apt install linux-tools-common linux-tools-generic hwdata
modprobe usbip-core
modprobe usbip-host
usbipd -D # (runs in background)
usbip list -l
usbip bind -b <busid>
# client - attach to remote device
apt install linux-tools-common linux-tools-generic-hwe-18.04 hwdata
modprobe usbip-core
modprobe vhci-hcd
usbip list -r <server>
usbip attach -r <server> -b <busid>
usbip port
usbip detach -p <port>
# server - remove a shared device
usbip list -r localhost
usbip unbind -b <busid>
pkill usbipd
More information here: http://usbip.sourceforge.net/
README with older usbip tool examples: https://sourceforge.net/p/usbip/git-windows/ci/master/tree/trunk/userspace/README
A single camera with 640x480 resolution uses approx. 150Mbps, so no go on most wi-fi (2.4GHz). If you try to connect it up on a connection without enough bandwidth, you'll see the camera, but image will not show up at all in cheese application.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment