i want to create a "linux box" with 2 usb. first usb is attacched to windows pc the second to printer on linux.

Now the first usb (windows-to-linux usb device), must be seen by windows as a printer is it possible? for the second isn't a problem have resolved with cups

how can i do?

  • Doing this literally would require atypical hardware more common in embedded systems. But why must the connection be USB? Why not emulate a network printer? – Chris Stratton Nov 20 '12 at 3:52
  • @TheNeXt I have the exact same need now.. have you found any solution / device to this since then? – Uri Abramson May 10 '16 at 10:57

You need the gadget printer module and hardware that supports USB on the go or slave.

The point for hardware is that USB has one master (the PC) and several slaves (the devices). With Linux, you can make a PC or an embedded system behave like a device (with the gadget modules), but you also need support in hardware, so that it appears as a slave. USB On The Go (OTG) is a type of port that can be programmed (or even it can auto-detect) to be master or slave, but is ofter available in embedded systems, and I've never seen in on PCs.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy