|
楼主 |
发表于 2004-3-1 11:35:50
|
显示全部楼层
不好意思,搞定了!
现贴出来供大家借鉴!
分两步:1、安装ptal打印驱动(即hpoj = HP OfficeJet Linux driver)
2、安装CUPS打印驱动(用http://localhost:631)
1、安装ptal打印驱
#service cups stop
#ptal-init setup
以下为 setup 安装提示
Stopping the HP OfficeJet Linux driver.
----------------------------------------------------------------------
This program manages devices controlled by the HP OfficeJet Linux
driver (hpoj). It attempts to probe your computer for local
parallel-
and USB-connected devices, and allows you to specify network
addresses
for remote JetDirect-connected devices.
If you experience any difficulties in detecting your device(s),
then
refer to the hpoj documentation for troubleshooting information.
----------------------------------------------------------------------
Currently defined device names (=default):
(none)
Probe for parallel-connected devices ([y]/n)? n
----------------------------------------------------------------------
Probe for USB-connected devices ([y]/n)? y
Probing "/dev/usb/lp0"...
Found "hp LaserJet 1010".
This device will be set up as "mlc:usb:hp_LaserJet_1010".
Press <Enter> alone to continue or <Ctrl-D> to skip this
device, or
enter a different desired name suffix (without the "mlc:usb:"
prefix)
here --->
Setting up as "mlc:usb:hp_LaserJet_1010".
Enabling ptal-mlcd and ptal-printd.
Probing "/dev/usb/lp1"...
No device found.
(...)
----------------------------------------------------------------------
Press <Enter> alone to continue, or if you would like to add a
JetDirect-connected device, then enter its dotted-decimal
IP address or hostname here --->
----------------------------------------------------------------------
Done updating device configuration files stored under /etc/ptal.
If you make manual changes to those files, then be sure to run
"/usr/local/sbin/ptal-init start" so they will take effect.
----------------------------------------------------------------------
Starting the HP OfficeJet Linux driver.
mlc:usb:hp_LaserJet_1010
#ptal-init status 查看hpoj状态
ptal-init has been started.
#service cups start 启动CUPS
2、安装CUPS打印驱动 ,用浏览器方式:
http://localhost:631
Manage Printers
Add Printer
HP_LaserJet_1010_hpoj
/dev/usb/lp0
run by hpoj
Continue
PTAL mlc:usb:hp_LaserJet_1010 (Hewlett-Packard hp LaserJet 1010)
Continue
HP
Continue
HP LaserJet Series CUPS v1.1 (en) |
|