如何配置 CUPS 以从 RedHat 打印到共享 Windows Zebra 打印机 TLP 3842

发布于 2024-10-18 00:02:32 字数 1540 浏览 1 评论 0原文

我正在尝试从虚拟 RedHat 实例打印到 Windows XP 工作站上共享的标签打印机。我在 Ubuntu 上成功使用了 rlpr,但我们正在移植到新标准 RedHat。因为它是虚拟化的,所以我无法访问 http://localhost:631 上的 CUPS 管理页面,而是尝试通过 lpadmin 执行所有操作。

Windows 机器,LC16 启用了 Unix 打印和文件共享服务(Samba?),我可以使用 rlpr 从 Ubuntu 打印到它。

我使用以下命令尝试设置 CUPS 打印机:

lpadmin -p 15747s_18200s -u allowed:all -v lpd://LC16/15747s_18200s

但是当我运行 lpq > 我没有看到打印机:

[root@here]# lpq
14415s_15747s is ready
no entries

我的 /etc/cups/printer.conf 看起来像这样:

# Printer configuration file for CUPS v1.3.7
# Written by cupsd on 2011-02-15 16:01
<Printer 15747s_18200s>
Info 15747s_18200s
DeviceURI lpd://LC16/15747s_18200s
State Stopped
StateMessage
StateTime 1297810868
Accepting No
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>

lpstat -t 给出(以及其他内容)

system default destination: 14415s_15747s
...
device for 15747s_18200s: lpd://LC16/15747s_18200s
...
15747s_18200s not accepting requests since Tue 15 Feb 2011 04:01:08 PM MST -
...
printer 15747s_18200s disabled since Tue 15 Feb 2011 04:01:08 PM MST -
    reason unknown

我尝试启用打印机使用cupsenable但没有运气:

cupsenable 15747s_18200s

没有改变任何东西,并且

cupsenable -h LC16 15747s_18200s

挂起。

知道我需要做什么才能让事情正常运行吗?

谢谢,

戴夫·克罗克

I am trying to print from a virtual RedHat instance to a label printer shared on a Windows XP workstation. I have had success using rlpr on Ubuntu, but we are porting to our new standard, RedHat. Because it is virtualized, I do not have access to the CUPS administration page at http://localhost:631 and am trying to do everything through lpadmin.

The Windows machine, LC16 has Unix Print and File Sharing Services enabled (Samba?), and I'm able to print to it from Ubuntu using rlpr.

I used the following command to try to set up the CUPS printer:

lpadmin -p 15747s_18200s -u allow:all -v lpd://LC16/15747s_18200s

But when I run lpq I do not see the printer:

[root@here]# lpq
14415s_15747s is ready
no entries

My /etc/cups/printer.conf looks like this:

# Printer configuration file for CUPS v1.3.7
# Written by cupsd on 2011-02-15 16:01
<Printer 15747s_18200s>
Info 15747s_18200s
DeviceURI lpd://LC16/15747s_18200s
State Stopped
StateMessage
StateTime 1297810868
Accepting No
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>

lpstat -t gives (among other stuff)

system default destination: 14415s_15747s
...
device for 15747s_18200s: lpd://LC16/15747s_18200s
...
15747s_18200s not accepting requests since Tue 15 Feb 2011 04:01:08 PM MST -
...
printer 15747s_18200s disabled since Tue 15 Feb 2011 04:01:08 PM MST -
    reason unknown

I tried to enable the printer using cupsenable but no luck:

cupsenable 15747s_18200s

doesn't change anything, and

cupsenable -h LC16 15747s_18200s

hangs.

Any idea what I need to do to get things running?

Thanks,

Dave Crocker

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文