>-----Original Message-----
>From: Barry Redmond [mailto:bredmond at electronics.dit.ie]
>>Hi,
>>I have a problem setting up a HP PhotoSmart P1100 printer to be used
>by Windows machines via samba on Slackware. Everything seems
>to work ok except that one blank page is added to the end of the
>printout, and I can't figure out why. As I write this I'm just
>realising that I've only tested it with single page documents, so
>it's possible that a blank page is being added after every page.
>>As far as I can make out the P1100 is intended to be used only with
>Windows, but all I want to do is take the bunch of bytes issued by
>the driver on the client PC and shuffle them through samba and lpr
>out to the printer so it should work - shouldn't it?
>>The testing I've done seems to point to lpr as the culprit. Does it
>do any processing of the byte stream by default? My printcap is
>the standard stuff from the installed sample. If lpr does
>modify the byte stream then how do I stop it doing it? I can't find
>any relevant information in the man pages.
I have exactly the same problem with my Brother 1050. The solution is to add
the option sf to /etc/printcap for the printer, so you'll have something
like:
lp:\
:sd=/var/spool/lpd/lp:\
:mx#0:\
:sh:\
:rm=dylan:\
:rp=lp:\
:if=/var/spool/lpd/lp/filter:
and you need to add sf, so you'll have:
lp:\
:sd=/var/spool/lpd/lp:\
:mx#0:\
:sh:sf:\
^^^^^^^^^^
:rm=dylan:\
:rp=lp:\
:if=/var/spool/lpd/lp/filter:
That suppresses the final form feed.
Regards
L.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!