linuxprintinglpt

How can I simulate a USB printer to LPT on Linux?


I have an Intermec printer connected on an USB port to my computer, the computer doesn't have a parallel port.

I want to send some raw commands to the printer, the printer interprets the file send as commands only if it is send on the parallel port (LPT). At the momment, the printer connected on USB will print the commands as text on the paper.

In Windows this can be achieved by sharing the printer on the network and then using the following:

NET USE LPT1: \\127.0.0.1\Printer /PERSISTENT:YES

Can I do the same in Linux?


Solution

  • You need to set printer in raw mode. In cups\ppd\lpoptions set raw mode.

    raw=true, lp -o raw