Neogenix
asked on
Printing on RedHat-5.1
I have setup my printing on my server and everything works fine even my print queue and spooling are working, but lpq says: "waiting for lp to become ready (offline ?)"
My printcap looks like:
# LOCAL HP Laser Jet
lp|dj|hplj:\
:sd=/var/spool/lpd/hplj:\
:mx#0:\
:lp=/dev/lp0:\
:if=/var/spool/lpd/hplj/fi lter:\
:sh:
It is a HP LaserJet 4 Plus.
If I run "cat dhcpd.leases /dev/lp0" I get "cat: /dev/lp0: Device not configured"
If I run "cat dhcpd.leases /dev/lp1" I get "cat: /dev/lp1: Invalid argument"
In my messages I keep "kernel: lp1 at 0x0378, (polling)" every two minutes. It seems like I have to configure my lp0? How do I do that?
My printcap looks like:
# LOCAL HP Laser Jet
lp|dj|hplj:\
:sd=/var/spool/lpd/hplj:\
:mx#0:\
:lp=/dev/lp0:\
:if=/var/spool/lpd/hplj/fi
:sh:
It is a HP LaserJet 4 Plus.
If I run "cat dhcpd.leases /dev/lp0" I get "cat: /dev/lp0: Device not configured"
If I run "cat dhcpd.leases /dev/lp1" I get "cat: /dev/lp1: Invalid argument"
In my messages I keep "kernel: lp1 at 0x0378, (polling)" every two minutes. It seems like I have to configure my lp0? How do I do that?
------------- cut ------------------------
# LOCAL HP Laser Jet
lp|dj|hplj:\
:sd=/var/spool/lpd/hplj:\
:mx#0:\
:lp=/dev/lp0:\
:if=/var/spool/lpd/hplj/fi lter:\
:sh:
-------- cut ----------------------
change to :lp=/dev/lp1:\
Youre kernel says that you have the printer on /dev/lp1
"kernel: lp1 at 0x0378, (polling)"
# LOCAL HP Laser Jet
lp|dj|hplj:\
:sd=/var/spool/lpd/hplj:\
:mx#0:\
:lp=/dev/lp0:\
:if=/var/spool/lpd/hplj/fi
:sh:
-------- cut ----------------------
change to :lp=/dev/lp1:\
Youre kernel says that you have the printer on /dev/lp1
"kernel: lp1 at 0x0378, (polling)"
ASKER
Thank you wqclatre. Please answer this question so I can give you the point. Wonderfully obvious wasn't it.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If I run "cat dhcpd.leases /dev/lp1" I get "cat: /dev/lp1: Invalid argument"
..
Try "cat foo.txt > /dev/lp" and it should go to printer.
I had the polling problem once and found out that I had two
lpd daemons running (pidof lpd, if you get more than one pid fyou have 2 daemons), check if that's the case.
I got printer (canon) working with apsfilter, it seems to have support to HP Laserjet 4 so maybe you should try it.
(ftp://sunsite.unc.edu/pub/Linux/system/Printing/aps-491.tgz)
Good luck!