Solved

Printing on RedHat-5.1

Posted on 1998-11-22
4
199 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

932 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

10 Experts available now in Live!

Get 1:1 Help Now