Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

migrated from Nov 19 '12 at 14:47

This question came from our site for professional and enthusiast programmers.

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 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.

share|improve this answer

You must log in to answer this question.