HP LaserJet 1020 :  foo2zjs - foo2hp - foo2xqx - foo2lava - foo2qpdl - foo2oak
Support for linux printer drivers
The fastest message board... ever.
 
HP laserjet 1020 on rhel 5 [solved; didn't do getweb 1020]
Posted by: neerajgupta3729 ()
Date: August 18, 2011 01:48AM

I configured the HP laserjet 1020 printer on Rhel 5 ,the operating system recognized the printer when i installed the above tar packages and followed the steps as mentioned but i got a problem,when i am giving a job for printing the page is not printing on checking the /var/log/messages i hvae

Aug 16 09:42:13 localhost HP_LaserJet_P1007?serial=NC0AZ7Z: INFO: open device failed; will retry in 30 seconds...
Aug 16 09:42:43 localhost hpiod: unable to Device::Open hp:/usb/HP_LaserJet_P1007?serial=NC0AZ7Z io/hpiod/device.cpp 906


kindly help its urgent



Edited 2 time(s). Last edit at 08/20/2011 04:54AM by rickrich.

Options: ReplyQuote
Re: HP laserjet 1020 on rhel 5
Posted by: rickrich ()
Date: August 18, 2011 06:34AM

You are using the WRONG URI. From the INSTALL file:
CUPS USB NOTES
--------------
    If you are using the USB port, then the URI should be:
        usb:/dev/usb/lp0
        usb:/dev/usb/lp1
    OR
        usb://Samsung/CLP-310%20Series
        usb://Samsung/CLP-310%20Series
        usb://HP/Color%20LaserJet%20CP1215
        usb://HP/Color%20LaserJet%202600n
        usb://HP/LaserJet%201000
        usb://HP/LaserJet%201005
        usb://HP/LaserJet%201018
        usb://HP/LaserJet%201020
        usb://HP/LaserJet%20P1005
        usb://HP/LaserJet%20P1006
        usb://HP/LaserJet%20P1007
        usb://HP/LaserJet%20P1008
        usb://HP/LaserJet%20P1505
        usb://HP/LaserJet%20Professional%20P1102w

    Don't use hp://<whatever> because that is for hplip (a closed source,
    proprietary driver).

Please fix your URI and power cycle the printer.

Here is an image of proper URI settings:






Edited 1 time(s). Last edit at 08/18/2011 07:07AM by rickrich.

Options: ReplyQuote
Re: HP laserjet 1020 on rhel 5
Posted by: neerajgupta3729 ()
Date: August 20, 2011 04:18AM

I am lost. Unable to fix the printer problem . I tries everything can you tell me step by step method of installing printer. also i am getting avc denial message. plz. help

/root/Desktop/Screenshot.png

Options: ReplyQuote
problem with lase printer 1020
Posted by: neerajgupta3729 ()
Date: August 20, 2011 04:23AM

continuing with my last message here is snapshot of log files

Aug 20 13:01:21 localhost kernel: usb 1-5: new high speed USB device using ehci_hcd and address 6
Aug 20 13:01:21 localhost kernel: usb 1-5: configuration #1 chosen from 1 choice
Aug 20 13:01:22 localhost kernel: drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 6 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
Aug 20 13:01:22 localhost kernel: usbcore: registered new driver usblp
Aug 20 13:01:22 localhost kernel: drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Aug 20 13:01:23 localhost /etc/hotplug/usb/hplj1020: foo2zjs: Missing HP LaserJet 1020 firmware file /usr/share/foo2zjs/firmware/sihp1020.dl
Aug 20 13:01:23 localhost /etc/hotplug/usb/hplj1020: foo2zjs: ...read foo2zjs installation instructions and run ./getweb 1020
Aug 20 13:03:33 localhost python: [8779]: warning: python-dbus not installed.
Aug 20 13:03:34 localhost setroubleshoot: SELinux is preventing hp (cupsd_t) "read" to 001 (usb_device_t). For complete SELinux messages. run sealert -l b943fed1-8303-46a1-a889-8ebb725b9c95
Aug 20 13:03:34 localhost setroubleshoot: SELinux is preventing hp (cupsd_t) "read" to 001 (usb_device_t). For complete SELinux messages. run sealert -l b943fed1-8303-46a1-a889-8ebb725b9c95
Aug 20 13:03:34 localhost setroubleshoot: SELinux is preventing hp (cupsd_t) "read write" to 001 (usb_device_t). For complete SELinux messages. run sealert -l a907bad3-2341-46bc-b09f-017f3bfca503
Aug 20 13:03:34 localhost setroubleshoot: SELinux is preventing hp (cupsd_t) "read" to 001 (usb_device_t). For complete SELinux messages. run sealert -l b943fed1-8303-46a1-a889-8ebb725b9c95
Aug 20 13:03:34 localhost setroubleshoot: SELinux is preventing hp (cupsd_t) "read write" to 001 (usb_device_t). For complete SELinux messages. run sealert -l a907bad3-2341-46bc-b09f-017f3bfca503
Aug 20 13:03:34 localhost setroubleshoot: SELinux is preventing hp (cupsd_t) "read write" to 001 (usb_device_t). For complete SELinux messages. run sealert -l a907bad3-2341-46bc-b09f-017f3bfca503
Aug 20 13:03:34 localhost setroubleshoot: SELinux is preventing hp (cupsd_t) "read" to 001 (usb_device_t). For complete SELinux messages. run sealert -l b943fed1-8303-46a1-a889-8ebb725b9c95
Aug 20 13:03:34 localhost setroubleshoot: SELinux is preventing hp (cupsd_t) "read write" to 006 (usb_device_t). For complete SELinux messages. run sealert -l 406423fc-3f2c-4332-9454-4c0495118bd1
Aug 20 13:03:34 localhost setroubleshoot: SELinux is preventing hp (cupsd_t) "read write" to 001 (usb_device_t). For complete SELinux messages. run sealert -l a907bad3-2341-46bc-b09f-017f3bfca503
Aug 20 13:03:34 localhost setroubleshoot: SELinux is preventing hp (cupsd_t) "read" to 006 (usb_device_t). For complete SELinux messages. run sealert -l 2547c384-1e3b-4059-9a58-3a542a7363f4
Aug 20 13:03:34 localhost setroubleshoot: SELinux is preventing hp (cupsd_t) "read write" to 001 (usb_device_t). For complete SELinux messages. run sealert -l a907bad3-2341-46bc-b09f-017f3bfca503
Aug 20 13:03:34 localhost setroubleshoot: SELinux is preventing hp (cupsd_t) "read" to 001 (usb_device_t). For complete SELinux messages. run sealert -l b943fed1-8303-46a1-a889-8ebb725b9c95
Aug 20 13:03:34 localhost setroubleshoot: SELinux is preventing python (cupsd_t) "search" to ./hp (rpm_var_lib_t). For complete SELinux messages. run sealert -l d9395835-186b-419f-ac47-1a21adb212ea
Aug 20 13:03:36 localhost setroubleshoot: SELinux is preventing python (cupsd_t) "read write" to 001 (usb_device_t). For complete SELinux messages. run sealert -l a907bad3-2341-46bc-b09f-017f3bfca503
Aug 20 13:03:36 localhost setroubleshoot: SELinux is preventing python (cupsd_t) "read" to 001 (usb_device_t). For complete SELinux messages. run sealert -l b943fed1-8303-46a1-a889-8ebb725b9c95
Aug 20 13:03:36 localhost setroubleshoot: SELinux is preventing python (cupsd_t) "read write" to 001 (usb_device_t). For complete SELinux messages. run sealert -l a907bad3-2341-46bc-b09f-017f3bfca503
Aug 20 13:03:36 localhost setroubleshoot: SELinux is preventing python (cupsd_t) "read" to 001 (usb_device_t). For complete SELinux messages. run sealert -l b943fed1-8303-46a1-a889-8ebb725b9c95
Aug 20 13:03:36 localhost setroubleshoot: SELinux is preventing python (cupsd_t) "read write" to 001 (usb_device_t). For complete SELinux messages. run sealert -l a907bad3-2341-46bc-b09f-017f3bfca503
Aug 20 13:03:36 localhost setroubleshoot: SELinux is preventing python (cupsd_t) "read" to 001 (usb_device_t). For complete SELinux messages. run sealert -l b943fed1-8303-46a1-a889-8ebb725b9c95
Aug 20 13:03:36 localhost setroubleshoot: SELinux is preventing python (cupsd_t) "read" to 001 (usb_device_t). For complete SELinux messages. run sealert -l b943fed1-8303-46a1-a889-8ebb725b9c95
Aug 20 13:03:36 localhost setroubleshoot: SELinux is preventing python (cupsd_t) "read write" to 001 (usb_device_t). For complete SELinux messages. run sealert -l a907bad3-2341-46bc-b09f-017f3bfca503
Aug 20 13:03:36 localhost setroubleshoot: SELinux is preventing python (cupsd_t) "read" to 001 (usb_device_t). For complete SELinux messages. run sealert -l b943fed1-8303-46a1-a889-8ebb725b9c95
Aug 20 13:03:36 localhost setroubleshoot: SELinux is preventing python (cupsd_t) "read write" to 001 (usb_device_t). For complete SELinux messages. run sealert -l a907bad3-2341-46bc-b09f-017f3bfca503
Aug 20 13:03:36 localhost setroubleshoot: SELinux is preventing python (cupsd_t) "read" to 006 (usb_device_t). For complete SELinux messages. run sealert -l 2547c384-1e3b-4059-9a58-3a542a7363f4
Aug 20 13:03:36 localhost setroubleshoot: SELinux is preventing python (cupsd_t) "read write" to 006 (usb_device_t). For complete SELinux messages. run sealert -l 406423fc-3f2c-4332-9454-4c0495118bd1
Aug 20 13:06:14 localhost foo2zjs-wrapper: foo2zjs-wrapper -z1 -P -L0 -r1200x600 -p1 -s7 -m1 -T3 -n1
Aug 20 13:07:05 localhost foo2zjs-wrapper: gs -sPAPERSIZE=letter -g10200x6600 -r1200x600 -sDEVICE=pbmraw -dCOLORSCREEN
Aug 20 13:07:05 localhost foo2zjs-wrapper: foo2zjs -r1200x600 -g10200x6600 -p1 -m1 -n1 -d1 -s7 -z1 -u 192x96 -l 192x96 -L 0 -T3 -P
Aug 20 13:07:05 localhost foo2zjs-wrapper: foo2zjs-wrapper -z1 -P -L0 -r1200x600 -p1 -s7 -m1 -T3 -n1
Aug 20 13:09:08 localhost foo2zjs-wrapper: gs -sPAPERSIZE=letter -g10200x6600 -r1200x600 -sDEVICE=pbmraw -dCOLORSCREEN
Aug 20 13:09:08 localhost foo2zjs-wrapper: foo2zjs -r1200x600 -g10200x6600 -p1 -m1 -n1 -d1 -s7 -z1 -u 192x96 -l 192x96 -L 0 -T3 -P
Aug 20 13:09:08 localhost foo2zjs-wrapper: foo2zjs-wrapper -z1 -P -L0 -r1200x600 -p1 -s7 -m1 -T3 -n1
Aug 20 13:09:40 localhost kernel: usb 1-5: USB disconnect, address 6
Aug 20 13:09:40 localhost kernel: drivers/usb/class/usblp.c: usblp0: removed
Aug 20 13:09:40 localhost foo2zjs-wrapper: gs -sPAPERSIZE=letter -g10200x6600 -r1200x600 -sDEVICE=pbmraw -dCOLORSCREEN
Aug 20 13:09:40 localhost foo2zjs-wrapper: foo2zjs -r1200x600 -g10200x6600 -p1 -m1 -n1 -d1 -s7 -z1 -u 192x96 -l 192x96 -L 0 -T3 -P
Aug 20 13:09:44 localhost kernel: usb 1-5: new high speed USB device using ehci_hcd and address 7
Aug 20 13:09:44 localhost kernel: usb 1-5: configuration #1 chosen from 1 choice
Aug 20 13:09:44 localhost kernel: drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 7 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
Aug 20 13:09:44 localhost /etc/hotplug/usb/hplj1020: foo2zjs: Missing HP LaserJet 1020 firmware file /usr/share/foo2zjs/firmware/sihp1020.dl
Aug 20 13:09:44 localhost /etc/hotplug/usb/hplj1020: foo2zjs: ...read foo2zjs installation instructions and run ./getweb 1020
Aug 20 13:09:45 localhost foo2zjs-wrapper: foo2zjs-wrapper -z1 -P -L0 -r1200x600 -p1 -s7 -m1 -T3 -n1
Aug 20 13:10:08 localhost foo2zjs-wrapper: gs -sPAPERSIZE=letter -g10200x6600 -r1200x600 -sDEVICE=pbmraw -dCOLORSCREEN
Aug 20 13:10:08 localhost foo2zjs-wrapper: foo2zjs -r1200x600 -g10200x6600 -p1 -m1 -n1 -d1 -s7 -z1 -u 192x96 -l 192x96 -L 0 -T3 -P
Aug 20 13:10:10 localhost foo2zjs-wrapper: foo2zjs-wrapper -z1 -P -L0 -r1200x600 -p1 -s7 -m1 -T3 -n1
Aug 20 13:11:34 localhost foo2zjs-wrapper: gs -sPAPERSIZE=letter -g10200x6600 -r1200x600 -sDEVICE=pbmraw -dCOLORSCREEN
Aug 20 13:11:34 localhost foo2zjs-wrapper: foo2zjs -r1200x600 -g10200x6600 -p1 -m1 -n1 -d1 -s7 -z1 -u 192x96 -l 192x96 -L 0 -T3 -P
Aug 20 13:12:11 localhost python: [9154]: warning: python-dbus not installed.
Aug 20 13:12:11 localhost setroubleshoot: SELinux is preventing hp (cupsd_t) "read write" to 001 (usb_device_t). For complete SELinux messages. run sealert -l a907bad3-2341-46bc-b09f-017f3bfca503
Aug 20 13:12:11 localhost setroubleshoot: SELinux is preventing hp (cupsd_t) "read" to 001 (usb_device_t). For complete SELinux messages. run sealert -l b943fed1-8303-46a1-a889-8ebb725b9c95
Aug 20 13:12:11 localhost setroubleshoot: SELinux is preventing hp (cupsd_t) "read write" to 001 (usb_device_t). For complete SELinux messages. run sealert -l a907bad3-2341-46bc-b09f-017f3bfca503
Aug 20 13:12:11 localhost setroubleshoot: SELinux is preventing hp (cupsd_t) "read" to 001 (usb_device_t). For complete SELinux messages. run sealert -l b943fed1-8303-46a1-a889-8ebb725b9c95
Aug 20 13:12:11 localhost setroubleshoot: SELinux is preventing hp (cupsd_t) "read write" to 001 (usb_device_t). For complete SELinux messages. run sealert -l a907bad3-2341-46bc-b09f-017f3bfca503
Aug 20 13:12:11 localhost setroubleshoot: SELinux is preventing hp (cupsd_t) "read" to 001 (usb_device_t). For complete SELinux messages. run sealert -l b943fed1-8303-46a1-a889-8ebb725b9c95
Aug 20 13:12:12 localhost setroubleshoot: SELinux is preventing hp (cupsd_t) "read" to 001 (usb_device_t). For complete SELinux messages. run sealert -l b943fed1-8303-46a1-a889-8ebb725b9c95
Aug 20 13:12:12 localhost setroubleshoot: SELinux is preventing hp (cupsd_t) "read write" to 001 (usb_device_t). For complete SELinux messages. run sealert -l a907bad3-2341-46bc-b09f-017f3bfca503
Aug 20 13:12:12 localhost setroubleshoot: SELinux is preventing hp (cupsd_t) "read" to 007 (usb_device_t). For complete SELinux messages. run sealert -l a9124954-109d-4560-82df-be5581b42bd6
Aug 20 13:12:12 localhost setroubleshoot: SELinux is preventing hp (cupsd_t) "read write" to 007 (usb_device_t). For complete SELinux messages. run sealert -l 50e1274e-2d10-4068-b309-c703fb2e5d71
Aug 20 13:12:12 localhost setroubleshoot: SELinux is preventing hp (cupsd_t) "read write" to 001 (usb_device_t). For complete SELinux messages. run sealert -l a907bad3-2341-46bc-b09f-017f3bfca503
Aug 20 13:12:12 localhost setroubleshoot: SELinux is preventing hp (cupsd_t) "read" to 001 (usb_device_t). For complete SELinux messages. run sealert -l b943fed1-8303-46a1-a889-8ebb725b9c95
Aug 20 13:12:12 localhost setroubleshoot: SELinux is preventing python (cupsd_t) "search" to ./hp (rpm_var_lib_t). For complete SELinux messages. run sealert -l d9395835-186b-419f-ac47-1a21adb212ea
Aug 20 13:12:13 localhost setroubleshoot: SELinux is preventing python (cupsd_t) "read write" to 001 (usb_device_t). For complete SELinux messages. run sealert -l a907bad3-2341-46bc-b09f-017f3bfca503
Aug 20 13:12:13 localhost setroubleshoot: SELinux is preventing python (cupsd_t) "read" to 001 (usb_device_t). For complete SELinux messages. run sealert -l b943fed1-8303-46a1-a889-8ebb725b9c95
Aug 20 13:12:13 localhost setroubleshoot: SELinux is preventing python (cupsd_t) "read write" to 001 (usb_device_t). For complete SELinux messages. run sealert -l a907bad3-2341-46bc-b09f-017f3bfca503
Aug 20 13:12:13 localhost setroubleshoot: SELinux is preventing python (cupsd_t) "read" to 001 (usb_device_t). For complete SELinux messages. run sealert -l b943fed1-8303-46a1-a889-8ebb725b9c95
Aug 20 13:12:14 localhost setroubleshoot: SELinux is preventing python (cupsd_t) "read write" to 001 (usb_device_t). For complete SELinux messages. run sealert -l a907bad3-2341-46bc-b09f-017f3bfca503
Aug 20 13:12:14 localhost setroubleshoot: SELinux is preventing python (cupsd_t) "read" to 001 (usb_device_t). For complete SELinux messages. run sealert -l b943fed1-8303-46a1-a889-8ebb725b9c95
Aug 20 13:12:14 localhost setroubleshoot: SELinux is preventing python (cupsd_t) "read" to 007 (usb_device_t). For complete SELinux messages. run sealert -l a9124954-109d-4560-82df-be5581b42bd6
Aug 20 13:12:14 localhost setroubleshoot: SELinux is preventing python (cupsd_t) "read write" to 001 (usb_device_t). For complete SELinux messages. run sealert -l a907bad3-2341-46bc-b09f-017f3bfca503
Aug 20 13:12:14 localhost setroubleshoot: SELinux is preventing python (cupsd_t) "read" to 001 (usb_device_t). For complete SELinux messages. run sealert -l b943fed1-8303-46a1-a889-8ebb725b9c95
Aug 20 13:12:14 localhost setroubleshoot: SELinux is preventing python (cupsd_t) "read" to 001 (usb_device_t). For complete SELinux messages. run sealert -l b943fed1-8303-46a1-a889-8ebb725b9c95
Aug 20 13:12:14 localhost setroubleshoot: SELinux is preventing python (cupsd_t) "read write" to 007 (usb_device_t). For complete SELinux messages. run sealert -l 50e1274e-2d10-4068-b309-c703fb2e5d71
Aug 20 13:12:14 localhost setroubleshoot: SELinux is preventing python (cupsd_t) "read write" to 001 (usb_device_t). For complete SELinux messages. run sealert -l a907bad3-2341-46bc-b09f-017f3bfca503
Aug 20 13:28:35 localhost kernel: usb 1-5: USB disconnect, address 7
Aug 20 13:28:35 localhost kernel: drivers/usb/class/usblp.c: usblp0: removed
Aug 20 13:28:36 localhost kernel: usb 1-5: new high speed USB device using ehci_hcd and address 8
Aug 20 13:28:36 localhost kernel: ehci_hcd 0000:00:1d.7: port 5 reset error -110
Aug 20 13:28:36 localhost kernel: hub 1-0:1.0: hub_port_status failed (err = -32)
Aug 20 13:28:53 localhost kernel: usb 1-5: new high speed USB device using ehci_hcd and address 9
Aug 20 13:28:54 localhost kernel: hub 1-0:1.0: Cannot enable port 5. Maybe the USB cable is bad?
Aug 20 13:28:54 localhost kernel: usb 1-5: new high speed USB device using ehci_hcd and address 10
Aug 20 13:28:54 localhost kernel: usb 1-5: configuration #1 chosen from 1 choice
Aug 20 13:28:54 localhost kernel: drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 10 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
Aug 20 13:28:55 localhost /etc/hotplug/usb/hplj1020: foo2zjs: Missing HP LaserJet 1020 firmware file /usr/share/foo2zjs/firmware/sihp1020.dl
Aug 20 13:28:55 localhost /etc/hotplug/usb/hplj1020: foo2zjs: ...read foo2zjs installation instructions and run ./getweb 1020
Aug 20 13:35:20 localhost yum-updatesd-helper: error getting update info: Cannot retrieve repository metadata (repomd.xml) for repository: rhel-debuginfo. Please verify its path and try again
Aug 20 13:36:16 localhost foo2zjs-wrapper: foo2zjs-wrapper -z1 -P -L0 -r1200x600 -p1 -s7 -m1 -T3 -n1
Aug 20 13:36:17 localhost foo2zjs-wrapper: gs -sPAPERSIZE=letter -g10200x6600 -r1200x600 -sDEVICE=pbmraw -dCOLORSCREEN
Aug 20 13:36:17 localhost foo2zjs-wrapper: foo2zjs -r1200x600 -g10200x6600 -p1 -m1 -n1 -d1 -s7 -z1 -u 192x96 -l 192x96 -L 0 -T3 -P

kindly resolve the issue

Options: ReplyQuote
Re: HP laserjet 1020 on rhel 5
Posted by: rickrich ()
Date: August 20, 2011 04:54AM

Do you do:

$ cd foo2zjs

$ make

$ ./getweb 1020   #IMPORTANT!!!!
sihp1020.img

(c) Copyright Hewlett-Packard 2005

# make install install-hotplug

Ref:
Aug 20 13:28:55 localhost /etc/hotplug/usb/hplj1020: foo2zjs: Missing HP LaserJet 1020 firmware file /usr/share/foo2zjs/firmware/sihp1020.dl
Aug 20 13:28:55 localhost /etc/hotplug/usb/hplj1020: foo2zjs: ...read foo2zjs installation instructions and run ./getweb 1020



Edited 1 time(s). Last edit at 08/20/2011 05:03AM by rickrich.

Options: ReplyQuote


Sorry, only registered users may post in this forum.
This forum powered by Phorum.