Hi all. I'm writing because printing works.... just not very well. I have
the samba server running on a Solaris 2.5.1 600MP box.
Here's the symptons:
Everytime a samba client send print requests to the samba server/print
server the job does print but I get a header and trailer page enclosing
each job. This means everytime a samba client send a print request two
sheets of paper are being wasted per job. This is adding up quickly.
Here's my configuration:
printcap name = /usr/dypepsi/samba/lib/capprint
[global]
dead time = 30
guest account = nobody
printing = sysv
; log file = /usr/local/samba/log.%m
load printers = yes
lock directory = /usr/local/samba/var/locks
share modes = yes
short preserve case = yes
syslog = 1
preserve case = yes
[homes]
comment = Home Directories
browseable = no
read only = no
create mode = 750
public = no
revalidate = true
[Chimmichanga]
comment = Art Dept. Printer
path = /usr/local/samba/var/spool/public
writable = no
public = yes
printable = yes
[Euclid]
comment = CS Dept. Printer
path = /usr/local/samba/var/spool/public
writable = no
public = yes
printable = yes
[hypertext]
comment = CS Dept. Printer
path = /usr/local/samba/var/spool/public
writable = no
public = yes
printable = yes
[moody]
comment = CS Dept. Printer
path = /usr/local/samba/var/spool/public
writable = no
public = yes
printable = yes
lpadmin is configured to print a banner page for each job sent to it
through normal solaris machines. I disabled this and still the two header
and trailer pages continued so I'ver pretty much exhausted my knowledge
on this matter. Does anyone know how to get rid of the header and trailer
pages that samba creates.
--B.A.Abernathy
On Tue, 30 Jun 1998, Barbara Abernathy wrote:> Everytime a samba client send print requests to the samba server/print > server the job does print but I get a header and trailer page enclosing > each job. This means everytime a samba client send a print request two > sheets of paper are being wasted per job. This is adding up quickly.I'm having the same problem. It's kind of annoying, and I can't figure out why it's happening or what to do about it. ds
I have the following in my /etc/smb.conf: print command = lpr -h -b -P%p %s I believe the -h kills the cover sheet. Bill
On Tue, 30 Jun 1998 10:35:36 Brett Worth <brett@select.com.au> suggested:>On Tue, 30 Jun 1998 <baberna@menger.eecs.stevens-tech.edu>wrote: > >> Everytime a samba client send print requests to the samba server/print >> server the job does print but I get a header and trailer page enclosing >> each job. This means everytime a samba client send a print request two >> sheets of paper are being wasted per job. This is adding up quickly. > >This means that the default lp print command is doing something >strange. > >the lp options until you stop getting a printjob sandwich on white. :-) > >Bretthold the onions, Heheh :) Hmmm. Today for first time setup two different printers on FreeBSD 2.2.2 to test Samba 1.9.17 printing, an Epson LQ-1070 and an HP DeskJet 540. Got both to work ok from Unix with 'out of box' print support, except for having to add a filter for the HP to handle <LF> = <CR><LF>, able to turn banner/header/burst off or make short in printcap, all per FreeBSD handbook ok. Also shared the printers w/ Samba as in the simple smb.conf: workgroup = schiller ; debug level = 3 [public] comment = public files path = /usr/public read only = no guest ok = yes browsable = yes [cdrom] comment = cdrom path = /cdrom read only = yes guest ok = yes browsable = yes [printers] path = /usr/spool/public writable = no public = yes printable = yes The behavior I see is: 1) Print ok from Unix, banner or no as config'd, ejects page, end of job. 2) Print from NT (4sp3), using proper printer drivers, gets an extra page at the end, i.e., prints the job, ejects last page, then ejects another blank sheet. Now, I can stop the last page waste by adding a :sf: suppress form/feed to printcap, but then printing from Unix won't eject the page, must hit FF on printer to get the page, and from NT all is ok, that is, prints and ejects the last sheet ok. Happens on both printers, SO I definitely see a *difference* in printing between Unix and from NT via Samba, there's an extra FF from NT - but haven't cornered it yet. Never got a blank sheet before the print job. The hp filter isn't the culprit, as it isn't necessary for files coming from NT, and DID pwr off the printer after using it. Still investigating and learning... Chuck cswiger@widomaker.com