[Fwd: Re: No print to Samba (Linux) printer from Win98]
Michel Van den Bergh
vdbergh at luc.ac.be
Sat Dec 15 10:52:05 GMT 2001
Mike Watson wrote:
> I don't have an explicit print command in my smb.conf. Is that required? All
> the examples I have do not have an explicit command. Since I'm use lpr, I'll add
> that to my config and see how it works.
>
> BTW. The Linux printer is an HP Deskjet 600. Old but it still works---crispier
> than my wife's laser printer.
>
> Thanks!
>
> Mike W
Are you using the Windows drivers? If so then it is imperative that you
configure
a raw printer on the Linux side, i.e. one that does not run the file
through ghostscript
(see the printcap example below).
If you use cups (I suspect not), then you must use lpr -l -P%p %s
instead of lpr -P%p
%s.
The reason is that even if use define a raw printer under cups, it still
tries to parse
the
spool file and bails out if it does not recognize the file format (I
suspect this is a
bug).
Regards,
Michel
>
>
> Joel Hammer wrote:
> >
> > Here is what I have in my smb.conf file for a linux printer accesses via
> > samba by windows clients.
> > The lp queue exists on the linux server. It is a raw queue, no filter.
> >
> > [lp]
> > comment = Raw Printer for Z53
> > path = /tmp
> > create mask = 0700
> > guest ok = Yes
> > hosts allow = 192.168.
> > printable = Yes
> > printing = lprng
> > print command = echo %J %p %s >> /tmp/junkJ;\
> > a="`echo '%J' | sed "s/^.*- //"`" ;\
> > echo This is truncated $a >> /tmp/junkJ;\
> > /usr/bin/lpr -Plp -J"$a" %s;\
> > rm %s
> > lpq command = /usr/bin/lpq -Plp
> > lprm command = /usr/bin/lprm -Plp %j
> > lppause command = /usr/sbin/lpc hold -Plp %j
> > lpresume command = /usr/sbin/lpc release -Plp %j
> > printer name = lp
> > share modes = No
> >
> > And here is my printcap:
> >
> > lp|LP|z53-outfiles:\
> > :sd=/var/spool/lpd/lp:\
> > :mx#0:\
> > :lp=/dev/lp0:\
> > :sh:rw:
> > The fancy print command captures J, the real file name, to display in the
> > queue. You could just use /usr/bin/lpr -Plp %s; rm %s as the print command.
> > Joel
> >
> >
> >
> >
> > On Fri, Dec 14, 2001 at 06:32:57PM -0600, Mike Watson wrote:
> > > I'm stuck.
> > >
> > > I have Samba running on my Red Hat 7.2 Linux box. I can mount by remote dirctory
> > > on the Linux box via Samba. But I can't print to the Linux printer. I have a
> > > Linux printer installed and I can print to it using lpr. I have a printer
> > > configured in Samba and can see that from the Win98SE box. I've clicked on the
> > > Samba printer name and configured a Win98 printer.
> > >
> > > However, when I try to print (or test) the Win98 spooler runs, then goes away,
> > > but nothing happens on the Linux printer. The Samba printer spool points to
> > > /var/spool/samba. Should it point to the lpr spool directory? How does samba
> > > link the incoming spool data from Win98 to lpr?
> > >
> > > Mike W.
> > >
> > > --
> > > To unsubscribe from this list go to the following URL and read the
> > > instructions: http://lists.samba.org/mailman/listinfo/samba
> >
> > --
> > To unsubscribe from this list go to the following URL and read the
> > instructions: http://lists.samba.org/mailman/listinfo/samba
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: http://lists.samba.org/mailman/listinfo/samba
More information about the samba
mailing list