simple LPRng question

simple LPRng question

Post by William D. Strathea » Thu, 12 Sep 2002 08:49:43



I am having a hard time getting LPRng to start up.  I know I have
everything configured properly with regards to my printer and the
printcap file (checkpc(8) told me so), but when I try to stat or
start/stop the printer, i get the following error messages:
*--------
# lpc status
.common:
        queuing is enabled
        printing is enabled
        cannot examine spool directory
lp:
        queuing is enabled
        printing is enabled
        cannot examine spool directory

# lpc start lp
lp:
connect: No such file or directory
        couldn't start daemon
*--------

Here are what the permissions for the spool dir look like:
*--------
# ls -l /var/spool/lpd
total 1
drwx------  2 daemon  daemon  512 Sep  9 11:45 lp
# ls -l /var/spool/lpd/lp/
total 24
-rw-------  1 daemon  daemon      0 Sep  9 10:13 acct
-rw-------  1 daemon  daemon      0 Sep  9 10:13 control.lp
-rw-------  1 daemon  daemon  24576 Sep 10 08:31 db.lp
-rw-------  1 daemon  daemon      0 Sep  9 10:13 log
-rw-------  1 daemon  daemon      0 Sep  9 10:13 status.lp
*--------

So who should own the directory?  checkpc(8) seems to thing that uid 1
and gid 1 should own them.  When I run the checkpc with a -f (fix)
option that is what it is set to.

Any help you could offer would be extremly appreciated.  I am trying
to set up an old hp laser jet to do some high quality printing without
the ink(jets).

If you need to know more about my config, here is my print cap file
(short)

*--------
# cat /etc/printcap
.common:
    :sd=/var/spool/lpd/%P:
    :sh:sf:mx=0:mc=0

lp:tc=.common:lp=/dev/lpt0
  :filter=/usr/local/sbin/lpdomatic
  :filter_options= --lprng $Z /usr/local/lib/hplj2Desc.txt
*--------

Thanks in advance to anyone who can help

 
 
 

simple LPRng question

Post by William D. Strathea » Fri, 13 Sep 2002 04:46:19


* Nevermind *

 When I rand lpc,lp,lpd... becuase the old bins were still in
/usr/sbin, and that dir was before the /usr/local/sbin, the old Non
LPRng binaries were running. Those don't run with SUID and were the
cuase of the problem.  Now everything stats alright

# lpc status
 Printer           Printing Spooling Jobs  Server Subserver Redirect
Status/

 Thanks anyway.


Quote:> I am having a hard time getting LPRng to start up.  I know I have
> everything configured properly with regards to my printer and the
> printcap file (checkpc(8) told me so), but when I try to stat or
> start/stop the printer, i get the following error messages:
> *--------
> # lpc status
> .common:
>         queuing is enabled
>         printing is enabled
>         cannot examine spool directory
> lp:
>         queuing is enabled
>         printing is enabled
>         cannot examine spool directory


 
 
 

1. HPDJ500C/LPRng/ifhp/apsfilter-LPRng

I've got a HP DeskJet 500C attached to my parallel port.  I've been able to
send files to it via "cat filename > /dev/lp0", so I know I've got kernel
modules, etc. working right.  I've installed LPRng, ifhp, and
apsfilter-LPRng, but I've been unsucessful getting it to print postscript
(or even plain text) with lpr.  I've gotten the files to spool correctly,
but I think I've got some problems with the filter setup.  In the process
of fiddling around with printcap, apsfilter.conf, etc. I've gotten it to
print out a bunch of PJL commands, but on another attempt, I got it to
filter the file through gs, but it didn't print.  (When checked the
filter's progress w/ ps, it seemed like gs was running, but not doing
anything.)  Can someone help me out?

------------------  Posted via CNET Linux Help  ------------------
                    http://www.searchlinux.com

2. time jumps forward

3. A simple question deserving a simple answer

4. Linux & POP3...

5. a simple sed question ( there all simple :> )

6. yamaha 724 744 driver ?

7. Simple question from simple user

8. USB port adapter -> Multi USB ports existing ? Extending number of USB ports possible ?

9. Simple FTP question (very simple)

10. simple question about simple code

11. Simple question for us simple minded.

12. Simple question - simple answer?

13. lprNG / lpd & Mail -s question on InfoMagic Slakware April 97