Link to home
Start Free TrialLog in
Avatar of Neogenix
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/filter:\
        :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?
Avatar of jji
jji

--cut--
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!
------------- cut ------------------------
# LOCAL HP Laser Jet
    lp|dj|hplj:\
            :sd=/var/spool/lpd/hplj:\
            :mx#0:\
            :lp=/dev/lp0:\
            :if=/var/spool/lpd/hplj/filter:\
            :sh:

 -------- cut ----------------------

change to :lp=/dev/lp1:\  
Youre kernel says that you have the printer on /dev/lp1
"kernel: lp1 at 0x0378, (polling)"
Avatar of Neogenix

ASKER

Thank you wqclatre. Please answer this question so I can give you the point. Wonderfully obvious wasn't it.
ASKER CERTIFIED SOLUTION
Avatar of wqclatre
wqclatre

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial