环境
系统: Fedora 29 x64
打印机: HP Smart Tank 531 Wireless All in One
打印机WIFI 地址: 192.168.1.13
步骤
- 准备 PPD 文件
使用ipptool
获得打印机的属性说明
ipptool -tv ipp://192.168.1.13/ipp/print get-printer-attributes.test > attr.txt
查看 /usr/share/ppd/HP
...
hp-deskjet_935c.ppd.gz hp-laserjet_professional_p1107.ppd.gz hp-smart_tank_350_series.ppd.gz
hp-deskjet_940c.ppd.gz hp-laserjet_professional_p1107w.ppd.gz hp-smart_tank_530_series.ppd.gz
hp-deskjet_948c.ppd.gz hp-laserjet_professional_p1108.ppd.gz hp-smart_tank_wireless_450_series.ppd.gz
hp-deskjet_950c.ppd.gz hp-laserjet_professional_p1108w.ppd.gz hp-tango.ppd.gz
...
有很多 PPD
文件. 这里使用打印机属性文件里的信息,复制 hp-smart_tank_wireless_450_series.ppd.gz
为 hp-smart_tank_530_series.ppd.gz
进行修改. 注意这个文件是个文本文件, 可以直接用 vim
操作.
我主要修改了几个地方, hp-smart_tank_530_series.ppd.gz
, 主要是把名字都改成 530.
*PPD-Adobe: "4.3"
*%%%% PPD file for HP Smart Tank 530 Series with CUPS.
...
*PCFileName: "hp-smart_tank_530_series.ppd"
*Product: "(HP Smart Tank 530 Series)"
...
*ModelName: "HP Smart Tank 530 Series"
*ShortNickName: "HP_Smart_Tank_530_series"
*NickName: "HP Smart Tank 530 Series, hpcups 3.18.12"
...
*1284DeviceID: "MFG:HP;MDL:Smart Tank 530 series;DES:我的机器型号编码;"
...
*% End of hp-smart_tank_530_series.ppd, 29028 bytes.
...
- 打开 HPLIP Graphical Tools
选择CUPS Web Interface
[1] https://github.com/apple/cups/issues/5238
[2] https://www.cups.org/doc/man-ipptool.html
[3] https://developers.hp.com/hp-linux-imaging-and-printing/supported_devices/index
补充
Model Name | Min. HPLIP Version | Driver Plug-in | Support Level | Print Mode | Scan to PC | PC Send Fax | Connectivity: USB, Network, Parallel | Note |
---|---|---|---|---|---|---|---|---|
HP Smart Tank 530 series | 3.19.6 | Yes | Full | Color | Yes | No | USB,Network | |
HP Smart Tank 350 | 3.18.7 | yes | Full | Color | yes | No | USB | |
HP Smart Tank Wireless 450 | 3.18.7 | yes | Full | Color | yes | No | USB |
我原来的 hplip
版本是
hplip-common-3.18.12-9.fc29.x86_64
hplip-3.18.12-9.fc29.x86_64
hplip-gui-3.18.12-9.fc29.x86_64
hplip-libs-3.18.12-9.fc29.x86_64
只需要更新 hplip
即可获得默认支持, 不需要自己制造 PPD
文件.
[user@localhost hpsmart]$ sudo dnf upgrade hplip*
......
=========================================================================================================================
Package Arch Version Repository Size
=========================================================================================================================
Upgrading:
hplip x86_64 3.19.10-1.fc29 updates 17 M
hplip-common x86_64 3.19.10-1.fc29 updates 76 k
hplip-gui x86_64 3.19.10-1.fc29 updates 1.3 M
hplip-libs x86_64 3.19.10-1.fc29 updates 162 k
libsane-hpaio x86_64 3.19.10-1.fc29 updates 88 k
选择 Setup Device...
这个选项主要是使用 USB 连接线配置打印机的网络, 让打印机连接WIFI 路由器. 等连接成功后, 会显示打印机的 IP 地址, 并提示使用 hp-setup
添加打印机, 如 hp-setup 192.168.1.13
打开的是图形界面.
最后选择 Send test page 项可以让打印机打印测试页
HP Device Manager 的图示
[4] https://developers.hp.com/hp-linux-imaging-and-printing
[5] https://docs.fedoraproject.org/en-US/fedora/f29/system-administrators-guide/servers/File_and_Print_Servers/#sec-Printer_Configuration
来源:CSDN
作者:ppdouble
链接:https://blog.csdn.net/ppdouble/article/details/104513014