Debian Samba 服务器上的打印机共享问题,作业未发送到服务器

Debian Samba 服务器上的打印机共享问题,作业未发送到服务器

我在 Debian 8 上共享打印机时遇到了很多问题。

我有一台 HP Officejet 4500 g510n-z,通过 USB 连接到机器。检测到:

root@bahamut:/etc/samba# lsusb
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 03f0:2e12 Hewlett-Packard
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

当我插入打印机时,操作系统会通过系统日志检测它:

Dec  1 21:36:47 bahamut colord: Device added: cups-HP_Officejet_4500_G510n-z

我已在我的中配置了它/etc/cups/cupsd.conf

<DefaultPrinter HP_Officejet_4500_G510n-z>
UUID urn:uuid:eb4c2bf6-dadc-3980-6e54-592432cb7f89
Info HP Officejet
Location
DeviceURI hp:/usb/Officejet_4500_G510n-z?serial=CN1BBK32CW05HR
State Idle
StateTime 1480651643
Type 8425484
Accepting Yes
Shared No
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
AllowUser jguy
OpPolicy default
ErrorPolicy stop-printer
</Printer>

lpstat 显示打印机在那里并正在接受作业:

root@bahamut:/etc/cups# lpstat -a
HP_Officejet_4500_G510n-z accepting requests since Thu 01 Dec 2016 10:07:23 PM CST

我可以使用 CUPS 网络控制台打印测试页,并且打印成功。

我有以下几点/etc/samba/smb.conf要分享:

[global]
    passdb backend = tdbsam
    obey pam restrictions = yes
    syslog = 0
    usershare allow guests = yes
    map to guest = bad user
    null passwords = yes
    dns proxy = no
    max log size = 1000
    log file = /var/log/samba/log.%m
    os level = 20
    unix password sync = yes
    server role = standalone server
    passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
    panic action = /usr/share/samba/panic-action %d
    load printers = yes
    encrypt passwords = yes
    pam password change = yes
    passwd program = /usr/bin/passwd %u

[HPOfficeJet]
    path = /var/spool/printer
    printer driver = hp:/usb/Officejet_4500_G510n-z
    public = yes
    printable = yes
    printer = HP_Officejet_4500_G510n-z

我在同一台机器上有一些 Samba 文件共享,它们工作正常。我可以通过 Windows 10 机器上的“设备和打印机”连接到打印机,打印机显示成功。但是,发送到打印机的任何打印作业都不会在服务器上排队或执行,因此客户端不会打印任何内容。

您发现我遗漏了什么吗?感谢您的帮助。

相关内容