[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#420502: marked as done (LPRng ignores /etc/printcap)



Your message dated Sun, 22 Apr 2007 19:46:47 +0100
with message-id <E1Hfh5D-0000mv-0H@localhost>
and subject line LPRng ignores /etc/printcap
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: lprng
Version: 3.8.28dfsg.1-1

I've just installed Etch on i386, and set up the LPRng configuration
manually the same as I had working on Sarge. The first snag I hit
was that /dev/lp0 no longer exists, so I connected my printer
(an old Brother HL-1050 laser) to a USB port instead of the parallel
port. I then altered the :lp entry in /etc/printcap to /dev/usb/lp0
(was /dev/lp0).

The lpr command no longer works. It seems to ignore the device and
filter entries in /etc/printcap.

My /etc/printcap:

lp|
    :lp=/dev/usb/lp0:\
    :if=/var/spool/lpd/lp/filter:\
    :sd=/var/spool/lpd/lp:\
    :lf=/var/spool/lpd/lp/log:\
    :af=/var/spool/lpd/lp/acct:\
    :mx#0:\
    :sh:

My /var/spool/lpd/lp/filter:

#! /bin/sh
cat | gs -q -dSAFER -dPARANOIDSAFER -dBATCH -dNOPAUSE -sDEVICE=ljet4 \
-sOutputFile=- -sPAPERSIZE=a4 -r600x600 -
exit 0

This command works (it prints /etc/printcap):
mpage -1 -m40 -of /etc/printcap | /var/spool/lpd/lp/filter > /dev/usb/lp0

but this doesn't (it used to work in Sarge):
mpage -1 -m40 -of /etc/printcap | lpr

Next I tried setting -sOutputFile=/dev/usb/lp0 in the filter.
mpage -1 -m40 -of /etc/printcap | lpr
still didn't work, but
mpage -1 -m40 -of /etc/printcap | /var/spool/lpd/lp/filter
now worked.

The lpr command is queuing the files properly in /var/spool/lpd/lp but
they don't appear to be getting as far as the filter. Any ideas?


--- End Message ---
--- Begin Message ---
Please ignore this bug report. It was pilot error - I forgot
to shut down and restart lprng after changing /etc/printcap.
Sorry for the noise.

--- End Message ---

Reply to: