Printing with lpd

Konrad Heuer kheuer2 at gwdg.de
Mon Aug 4 06:06:21 UTC 2008


On Mon, 4 Aug 2008, Martin Schweizer wrote:

> Hello
>
> I'm playing around with lpd. My setup: a FreeBSD 7.0 server and a attached HP LaserJet 2840N (connected via ethernet), my
> /etc/printcap:
> hplj2840|lp|Hewlett Packard LaserJet 2840C:\
>        :sh:\
>        :lp=:rm=hplj2840:rp=raw:sd=/var/spool/lpd/hplj2840:\
>        :lf=/var/log/lpd-errs:\
>        :if=/usr/local/libexec/if-simple:
>
> and if-simple:
> /usr/local/bin/recode latin1..ibmpc
>
> The prints are ok so fare (incl. the german umlauts). If I print text mails out from mutt the seems ok too. But if the
> mails has some incorrect wrapped lines (> 72 caracters) the lines are not wrapped on the output.  What do I worng here?

I'd add something like

   /usr/bin/fold -s -w 80 | /usr/local/bin/recode latin1..ibmpc

to the filter script. I don't know whether there's an internal printer 
setting for wrapping long lines.

Best regards

Konrad Heuer
GWDG, Am Fassberg, 37077 Goettingen, Germany, kheuer2 at gwdg.de


More information about the freebsd-questions mailing list