Linux 操作系统“hplip”服务

HPLIP 是 HP 开发的解决方案,用于在 Linux 中使用基于 HP 喷墨和激光的打印机进行打印、扫描和传真。

HPLIP 项目为 1,292 种打印机型号提供打印支持,包括 Deskjet、Officejet、Photosmart、PSC(打印扫描复印)、Business Inkjet、LaserJet、Edgeline MFP 和 LaserJet MFP。
(注意:目前并非所有型号都受支持)。

惠普 Linux 成像和打印项目 (HPLIP) 为 Linux 提供了统一的单一和多功能连接解决方案。
该项目的目标是为消费者和小型企业桌面 Linux 用户提供“极其简单”的打印、传真、扫描、照片卡访问和设备管理。
该项目基于开源软件并使用 GPL 兼容许可证。

HPLIP 由几个主要组件组成;应用程序、驱动程序、后端、守护程序和 PPD 文件。
HPLIP 旨在与 CUPS 假脱机系统一起使用。
CUPS/HPLIP 系统提供了全面支持 HPLIP 所必需的双向通信。
HPLIP 提供了一个名为“hp”的新 CUPS 后端,它支持双向打印连接。

HPLIP 使用 HPIJS 为非 postscript 打印作业生成打印机就绪数据。
HPIJS 自 2001 年以来一直作为单向解决方案提供。
HPIJS 已被修改为支持 HPLIP,但 HPIJS 仍然向后兼容现有的假脱机程序。
HPIJS 包含在 HPLIP 解决方案中。
HPLIP 支持通过 USB、并行和网络 (JetDirect) 进行连接。

特征:

  • 打印到 1,292 台 HP 打印机,包括 Deskjet、Officejet、Photosmart、PSC、Business Inkjet 和 LaserJet。 (有关完整列表,请参阅支持的设备)。
  • 高质量照片打印。
  • 全出血打印。
  • 自动双面打印(在配备的打印机上)。
  • 从兼容的 Officejet、PSC、Photosmart 和 LaserJet MFP 进行扫描。
  • 自动文档进纸器 (ADF) 扫描。
  • 与 Scanner Access Now Easy (SANE) 兼容的界面。
  • 彩色和黑白扫描。
  • PC 发送传真实用程序。
  • 发送传真通讯簿。
  • 照片卡访问实用程序。
  • 带有维护工具、耗材级别和状态信息的设备管理器(工具箱)。
  • USB、网络和并行连接类型。
  • 与 CUPS 完全集成。
  • 为仅支持 Postscript 的激光打印机提供的 PPD 文件。
  • 许多经常需要的任务的命令行实用程序。
  • 一个简单的设置实用程序。
  • 自动安装程序。
欢迎来到之路教程(on itroad-com)

其他信息

  1. RPM 包
hplip-[version]-[release]
e.g:
hplip-1.6.7-4.1.el5_0.3
  1. 配置文件
/etc/hp/hplip.conf
  1. 配置文件示例
# cat /etc/hp/hplip.conf
# hplip.conf.  Generated from hplip.conf.in by configure.
[hplip]
version=3.15.9
[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.15.9
html=/usr/share/doc/hplip-3.15.9
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv/hp
bin=/usr/bin
# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
libusb01-build=no
pp-build=yes
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
hpijs-install=yes
foomatic-drv-install=yes
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.15.9
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=no
lite-build=no
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no

服务控制

  1. init.d 脚本位置:/etc/init.d/hplip

2.“chkconfig -list [service]”示例

# chkconfig --list hplip
hplip           0:off   1:off   2:on    3:on    4:on    5:on    6:off
  1. 可用的服务使用选项
# service hplip
Usage: /etc/init.d/hplip {start|stop|status|restart|condrestart}

启动 hplip 服务:

# service hplip start
Starting hpiod:                                            [  OK  ]
Starting hpssd:                                            [  OK  ]

停止 hplip 服务:

# service hplip stop
Stopping hpiod:                                            [  OK  ]
Stopping hpssd:                                            [  OK  ]

要检查 hplip 服务的状态:

# service hplip status
hpiod (pid 13962) is running...
hpssd (pid 13967) is running...

要重新启动 hplip 服务:

# service hplip restart
Stopping hpiod:                                            [  OK  ]
Stopping hpssd:                                            [  OK  ]
Starting hpiod:                                            [  OK  ]
Starting hpssd:                                            [  OK  ]
# service hplip condrestart
Stopping hpiod:                                            [  OK  ]
Stopping hpssd:                                            [  OK  ]
Starting hpiod:                                            [  OK  ]
Starting hpssd:                                            [  OK  ]
  1. 它运行哪些守护进程
/usr/sbin/hpiod
python /usr/share/hplip/hpssd.py
  1. 加载哪些模块
none
日期:2020-09-17 00:14:35 来源:oir作者:oir