Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.