文档下载:《USB_IP Share USB-Device On Ubuntu 12》
原文地址:http://jerry2yang.wordpress.com/2013/01/18/usbip-share-usb-device-on-ubuntu-12-04/
完全参照文档来做就可以了,注意修改config.h中的USBIP_VERSION为106,否则windows客户端报错:
windows客户端下载地址:usbip_windows_v0.2.0.0_signed
Usage:
To install the virtual usb bus driver on Windows XP:
- Uncompress the downloaded binary package to a directory.
- Double-click the ‘Add Hardware’ wizard in Control Panel.
- At the ‘Welcome to the Add Hardware Wizard’, click ‘Next’.
- Select ‘Yes, I have already connected the hardware’, then click Next.
- Select ‘Add a new hardware device’ from the list, then click Next.
- Select ‘Install the hardware that I manually select from a list(Advanced)’, and then click next.
- Select ‘System Devices’, then click Next.
- Click ‘Have Disk’, click ‘Browse’, choose the uncompressed directory, and click OK.
- Click on the ‘USB/IP Enumerator’, and then click Next.
- At ‘The wizard is ready to install your hardware’, click Next.
- Click Finish at ‘Completing the Add/Remove Hardware Wizard.’
For Window 7 :
- (Only necessary for custom builds: For x64 allow unsigned drivers: Enter “bcdedit /set testsigning on” in an administrative cmd window)
- Uncompress the downloaded binary package to a directory.
- Start a the Device Manager
- Click Any hardware node
- Choose “Add Legacy Hardware” from the “Action” menu
- At the ‘Welcome to the Add Hardware Wizard’, click ‘Next’.
- Select ‘Install the hardware that I manually select from the list’
- click ‘Next’
- Click ‘Have Disk’, click ‘Browse’, choose the uncompressed directory, and click OK.
- Click on the ‘USB/IP Enumerator’, and then click Next.
- At ‘The wizard is ready to install your hardware’, click Next.
- Click Finish at ‘Completing the Add/Remove Hardware Wizard.’
To use it:
open a command prompt window, cd to the uncompressed directory.
run usbip -l 192.168.2.1 to list the exported devices from ip 192.168.2.1
run usbip -a 192.168.2.1 2-1 to imported the device.
(Of course, you should change 192.168.2.1 and 2-1 to something else)