CUPS 网络打印机和 Windows 7 x64

CUPS 网络打印机和 Windows 7 x64

我有一台 HP LaserJet 2200d 打印机连接到我的 Ubuntu Server 12.04,我可以使用lpr命令在本地打印文件。以下是输出lpstat

    cce@puntti:~$ lpstat -p -d
    printer HP_LaserJet_2200 is idle.  enabled since Thu 21 Mar 2013 01:23:31 AM EET
    no system default destination

我通过 CUPS Web 界面添加并配置了打印机。问题是,我无法在 Windows 7 x64 客户端计算机上正确设置它。当我尝试从 Windows 网络视图连接到共享打印机时,它显示“未找到驱动程序”消息。

我可以HP LaserJet 2200 Series PCL 5手动从列表中选择一个驱动程序,但用它打印似乎不起作用,因为打印作业立即“完成”,但打印机保持空闲状态。没有条目添加到 CUPS“已完成作业”日志中,也没有添加到/var/log/cups/error_log

Windows 7 x64 的官方 HP 驱动程序毫无用处,因为它们无法正确检测网络打印机。

在服务器端,驱动程序HP LaserJet 2200 hpijs pcl3, 3.12.2来自hplip包。

这是 CUPS 配置文件:

    LogLevel warn
    MaxLogSize 0
    SystemGroup lpadmin
    # Allow remote access
    Port 631
    Listen /var/run/cups/cups.sock
    Browsing on
    BrowseOrder allow,deny
    BrowseAllow all
    BrowseLocalProtocols cups dnssd lpd smb
    BrowseAddress @LOCAL
    DefaultAuthType Basic
    WebInterface Yes
    <Location />
      # Allow remote access...
      Order allow,deny
      Allow all
    </Location>
    <Location /admin>
    </Location>
    <Location /admin/conf>
      AuthType Default
      Require user @SYSTEM
    </Location>
    <Policy default>
      JobPrivateAccess default
      JobPrivateValues default
      SubscriptionPrivateAccess default
      SubscriptionPrivateValues default
      <Limit Create-Job Print-Job Print-URI Validate-Job>
        Order deny,allow
      </Limit>
      <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
        Require user @OWNER @SYSTEM
        Order deny,allow
      </Limit>
      <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
        AuthType Default
        Require user @SYSTEM
        Order deny,allow
      </Limit>
      <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
        AuthType Default
        Require user @SYSTEM
        Order deny,allow
      </Limit>
      <Limit Cancel-Job CUPS-Authenticate-Job>
        Require user @OWNER @SYSTEM
        Order deny,allow
      </Limit>
      <Limit All>
        Order deny,allow
      </Limit>
    </Policy>
    <Policy authenticated>
      JobPrivateAccess default
      JobPrivateValues default
      SubscriptionPrivateAccess default
      SubscriptionPrivateValues default
      <Limit Create-Job Print-Job Print-URI Validate-Job>
        AuthType Default
        Order deny,allow
      </Limit>
      <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
        AuthType Default
        Require user @OWNER @SYSTEM
        Order deny,allow
      </Limit>
      <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
        AuthType Default
        Require user @SYSTEM
        Order deny,allow
      </Limit>
      <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
        AuthType Default
        Require user @SYSTEM
        Order deny,allow
      </Limit>
      <Limit Cancel-Job CUPS-Authenticate-Job>
        AuthType Default
        Require user @OWNER @SYSTEM
        Order deny,allow
      </Limit>
      <Limit All>
        Order deny,allow
      </Limit>
    </Policy>

答案1

好吧,我调整了一下设置,现在它似乎可以正常工作了。我选择的HP LaserJet 2200 Series PCL 5是 Windows 驱动程序和HP LaserJet 2200 Foomatic/Postscript服务器端。不过它似乎只能达到 600x600 dpi 的分辨率。

编辑:新的改进:只打印测试页(从 Windows)有效。所以又回到原点了。

另一项编辑:解决了,我不得不将打印机添加为 IPP 打印机

相关内容