Solved

Printing on RedHat-5.1

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Ubuntu not booting - How get past GRUB? 3 43
Anything Suspicious in this Report Email on Linux Server 4 49
bash file 10 37
Why  my code (program) build with old compiler? 11 47
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

821 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