Sujet : Re: unsuccessfully install of printer brother hl-l2360dw
De : smirzo (at) *nospam* example.com (Salvador Mirzo)
Groupes : comp.unix.bsd.freebsd.miscDate : 27. Dec 2024, 20:44:51
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <86ldw0di6k.fsf@example.com>
References : 1 2 3
Matthias Meyser <
Meyser@xenet.de> writes:
Am 27.12.2024 um 15:55 schrieb Matthias Meyser:
This ist a PCL Printer.
see
https://docs.freebsd.org/de/books/handbook/printing/#printing-lpd-filters-ps2pcl
>
in english :)
>
https://docs.freebsd.org/en/books/handbook/printing/#printing-lpd-filters-ps2pcl
Thank you so much. That allows me to use lpd and it's working. The
handbook test was successful and I just asked Firefox to print a text
document using /usr/bin/lpr (using my /etc/printcap entry). It worked!
I would still like to understand what's going on with CUPS, so I will
continue the troubleshooting but I'm very happy that I can print just
fine with lpd.
The printcap entry so far:
--8<-------------------------------------------------------->8---
lp|remote|brother|Brother HL-L2360DW:\
:lp=
9100@BRWB052162167A6:\
:if=/usr/local/libexec/ps2pcl:\
:sh:sd=/var/spool/output/brother:\
:lf=/var/log/lpd-errs:
--8<-------------------------------------------------------->8---
The filter:
--8<-------------------------------------------------------->8---
#!/bin/sh
/usr/local/bin/gs -dSAFER -dNOPAUSE -dBATCH -q -sDEVICE=pcl3 -sOutputFile=- -
--8<-------------------------------------------------------->8---
I believe the driver pcl3 works better than the ljet4 given in the
handbook as per a couple of experiments here. I probably should try
other drivers to see if there's any difference.
One program also metioned by the handbook is enscript. It converts text
files to PostScript, so I can print text files. But my text files are
usually UTF-8 and it seems enscript doesn't support UTF-8 as far as the
manual says. So what I am now doing is using iconv to convert to latin1
before invoking enscript. If you'd like to share how you do it, I'd
appreciate hearing about.
# iconv -f UTF-8 -t LATIN1 sample.txt | enscript -X latin1 -Premote
[ 1 page * 1 copy ] sent to remote