Remote scanner, USB over network, Raspbian host, Arch client

Because brscan does not work on ARM 🙁

Raspberry host setup:

apt-get install usbip
echo usbip_core >> /etc/modules

modprobe usbip_core

usbip list -l
# - busid 1-1.1.2 (04f9:0248)
#   Brother Industries, Ltd : DCP-7055 scanner/printer (04f9:0248)

usbip bind ---busid=1-1.1.2

usbipd
# …listening on 0.0.0.0:3240…

usbip unbind ---busid=1-1.1.2

Arch Linux client (wiki)

sudo modprobe vhci-hcd

usbip list -r razpi # or IP
# - razpi
#   1-1.1.2: Brother…

sudo usbip attach -r razpi -b 1-1.1.2

# xsane …

usbip detach -p port_number

TODO: permanent/automatic setup via systemd