[cups] CUPS won't send my user name to the printer
Gernot Hassenpflug
aikishugyo at gmail.com
Wed Sep 12 07:49:51 PDT 2018
On Wed, Sep 12, 2018 at 4:43 PM, マスターズ イアン <ian at ncsa.jp> wrote:
> Gernot
>
> > How about setting debug for CUPS and looking at the CUPS debug log? That
> will tell you which filters are being invoked and you can see what they do.
>
> OK, did that. Now I have a 2MB file to look through and try and make sense
> of.
>
> > Also, you could set up a file printer, and output the file to there
> first, and then manually send it to the printer with lpr -o raw ...
>
> Not sure what you mean by a "file printer". Is CUPS-PDF an example of that?
>
It means a print queue that goes through all the filters and final driver,
but then writes the raw information to a file instead of sending it to the
connection for the physical printer. CUPS-PDF is a kind of example but the
final driver is a PDF writer.
To set up a test printer:
1) Add support for file output in /etc/cups/cupsd.conf
FileDevice Yes
then restart:
/etc/init.d/cups restart
2) Set up printer queue
lpadmin -p foofile -v file:/tmp/fee
create location:
mkdir /tmp/fee
3) activate printer in interface:
http://localhost:631
4) You can see it here:
/etc/cups/printers.conf
where you can also change existing printers to use similar queues.
References (in comments):
https://aplawrence.com/MacOSX/macosxcupstofile.html
Regards,
Gernot Hassenpflug
More information about the cups
mailing list