Brother HL-L2340D printer and lpd?

Victor Sudakov vas at sibptus.ru
Tue May 5 16:19:55 UTC 2020


Victor Sudakov wrote:
> 
> I'm trying to use a Brother HL-L2340D printer as a simple networked
> line printer with lpd. I've successfully used HP and Canon printers like
> that with a simple printcap like this:

The story continues with some good news.

Thanks to much insight and help from Polytropon (off list also), and
this page:
https://support.brother.com/g/b/faqend.aspx?c=us&lang=en&prod=hll2340dw_us_eu_as&faqid=faq00100602_000

I've been able to print PDF files (lpr -P ps mozilla.pdf) 
on this printer with the following printcap entry:

ps|Brother HL-L2340D series PostScript:\
        :sh:\
        :lp=9100 at 192.168.1.74:\
        :if=/usr/local/etc/ps2pcl.sh:\
        :sd=/var/spool/output/lpd2:lf=/var/log/lpd-errs:

while the ps2pcl.sh looks like this (thanks again to Polytropon):

#!/bin/sh

#/usr/bin/printf "\033&k2G" || exit 2
/usr/local/bin/gs -q -dBATCH -dNOPAUSE -dPARANOIDSAFER -dSAFER \
        -sDEVICE=hl1250 -sPAPERSIZE=a4 -r600x600 \
        -sOutputFile=- - && exit 0
exit 2

So GhostScript's "hl1250" driver works wonders, I even see Cyrillic
text in the printed PDF.

Now two questions are left:

1. How the heck do I print text files with this setup? Should I convert
them to PostScript first, and how? UTF-8 Cyrillic support is crucial.

2. How do I convince Mozilla Firefox that I now have a PostScript
printer and it can print directly to it, not just to a PDF file? It does
not seem to care for /etc/printcap.

-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
2:5005/49 at fidonet http://vas.tomsk.ru/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20200505/2c19c088/attachment.sig>


More information about the freebsd-questions mailing list