这是我试图验证的:
smbtree
:
WORKGROUP2
\\DAN-PC
\\DAN-PC\Users
\\DAN-PC\print$ Printer Drivers
\\DAN-PC\IPC$ Remote IPC
\\DAN-PC\HP LaserJet Professional P1102w
HP LaserJet Professional P1102w
\\DAN-PC\D$ Default share
\\DAN-PC\C$ Default share
\\DAN-PC\ADMIN$ Remote Admin
\\BOB-P7-1298C bob-p7-1298c server (Samba, Ubuntu)
\\BOB-P7-1298C\BOB_share yeah
\\BOB-P7-1298C\isos
\\BOB-P7-1298C\ENVY-4500-series HP ENVY 4500 series
\\BOB-P7-1298C\HP-LaserJet-Professional-p1102w HP LaserJet Professional p1102w
\\BOB-P7-1298C\print$ Printer Drivers
\\BOB-P7-1298C\IPC$ IPC Service (bob-p7-1298c server (Samba, Ubuntu))
dpkg -l hplip *foo*
:
bob@bob-p7-1298c:/var/log/cups$ dpkg -l hplip *foo*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-====================================================-===============================-===============================-=============================================================================================================
un foo2zjs <none> <none> (no description available)
un foomatic-db <none> <none> (no description available)
ii foomatic-db-compressed-ppds 20140410-0ubuntu1 all OpenPrinting printer support - Compressed PPDs derived from the database
un foomatic-db-hpijs <none> <none> (no description available)
un foomatic-filters <none> <none> (no description available)
un hannah-foo2zjs <none> <none> (no description available)
ii hplip 3.14.3-0ubuntu3.2 amd64 HP Linux Printing and Imaging System (HPLIP)
ii printer-driver-foo2zjs 20140209dfsg0-1ubuntu1 amd64 printer driver for ZjStream-based printers
ii printer-driver-foo2zjs-common 20140209dfsg0-1ubuntu1 all printer driver for ZjStream-based printers - common files
hp-check -t -ldebug:
bob@bob-p7-1298c:/var/log/cups$ hp-check -t -ldebug
hp-check[5367]: debug: Device URI smb://WORKGROUP2/DAN-PC/HP%20LaserJet%20Professional%20P1102w is invalid/unknown
hp-check[5367]: debug: Exception: 4 (Unknown/invalid device-uri field)
sudo apt-get install snmp
smb.conf
:
[global]
load printers = yes
printing = cups
printcap name = cups
[printers]
comment = All Printers
browseable = yes
path = /var/spool/samba
printable = yes
guest ok = yes
read only = yes
create mask = 0700
printer admin = root, @ntadmins, @smbprintadm
# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = no
猫 /var/log/cups/error_log | grep -i“错误”
D [10/Dec/2014:15:58:58 -0600] [Job 142] Error: This module is designed to work with HP Printers only
D [10/Dec/2014:15:58:58 -0600] [Job 142] STATE: +hplip.plugin-error
D [10/Dec/2014:15:58:58 -0600] [Job 142] prnt/hpcups/HPCupsFilter.cpp 456: m_Job initialization failed with error = 48
D [10/Dec/2014:15:58:58 -0600] [Job 142] PID 7720 (/usr/lib/cups/filter/gstoraster) exited with no errors.
答案1
步骤1:
- 打印机 > 添加 > 通过 SAMBA 的 Windows 打印机
第2步:
- 浏览
- 选择打印机
- 向前
像普通人一样,我选择了“HP LaserJet Professional P1102w”,因为那是打印机的名称。
但是:为了让它发挥作用。
选择:HP LaserJet Pro P1102w Foomatic/foo2zjs-z2(推荐)
注意到名字不匹配了吗?
注意:打开 20 个选项卡后,关闭这些选项卡,然后打开另外 20 个选项卡,并在一天中的大部分时间里这样做。重新检查tail -f /var/log/cups/error_log
并http://localhost:631
重新启动每个服务,并且sudo service cups restart
基本上是在沮丧中运行。sudo service samba restart
sudo reboot now
令我震惊的是,它没有给我选择 foo2zjz 驱动程序的选项。
我当时使用的是 Ubuntu 14.10。
另请确保samba
并cups
正确安装了解决我的问题的驱动程序:
sudo apt-get install hannah-foo2zjs:i386 printer-driver-foo2zjs:i386 hannah-foo2zjs printer-driver-foo2zjs-common printer-driver-foo2zjs hplip