如何在Linux上将USB打印机模拟为LPT? [英] How can I simulate a USB printer to LPT on Linux?

查看:245
本文介绍了如何在Linux上将USB打印机模拟为LPT?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在计算机的USB端口上连接了一个Intermec打印机,该计算机没有并行端口.

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

我想向打印机发送一些原始命令,仅当在并行端口(LPT)上发送文件时,打印机才将文件发送解释为命令.暂时,连接到USB的打印机将在纸上以文本形式打印命令.

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.

在Windows中,可以通过在网络上共享打印机,然后使用以下命令来实现:

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

我可以在Linux中做同样的事情吗?

Can I do the same in Linux?

推荐答案

您需要将打印机设置为原始模式.在cups \ ppd \ lpoptions中设置原始模式.

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

raw=true, lp -o raw

这篇关于如何在Linux上将USB打印机模拟为LPT?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆