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

泄露秘密 提交于 2019-12-08 07:57:45

问题


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?


回答1:


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

raw=true, lp -o raw


来源:https://stackoverflow.com/questions/19082201/how-can-i-simulate-a-usb-printer-to-lpt-on-linux

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!