Solved

Printing on RedHat-5.1

Posted on 1998-11-22
4
198 Views
Last Modified: 2013-12-15
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?
0
Comment
Question by:Neogenix
  • 2
4 Comments
 

Expert Comment

by:jji
ID: 1631697
--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!
0
 
LVL 2

Expert Comment

by:wqclatre
ID: 1631698
------------- 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)"
0
 
LVL 2

Author Comment

by:Neogenix
ID: 1631699
Thank you wqclatre. Please answer this question so I can give you the point. Wonderfully obvious wasn't it.
0
 
LVL 2

Accepted Solution

by:
wqclatre earned 100 total points
ID: 1631700
Se the comment...
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Currently, there is not an RPM package available under the RHEL/Fedora/CentOS distributions that gives you a quick and easy way to allow PHP to interface with Oracle. As a result, I have included a set of instructions on how to do this with minimal …
How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now