[Fwd: Re: No print to Samba (Linux) printer from Win98]

Mike Watsom mikew at crucis.net
Sat Dec 15 10:47:03 GMT 2001


Here is my smb.conf.  Maybe someone can tell me what I'm doing wrong.
[global]
	workgroup = HOMEGROUP
	log level = 8
	path = /var/spool/lpd/HPDESKJET
	default service = global
	writable = yes
	printer = HPDESKJET
	remote announce = 192.168.x.x/HOMEGROUP
	print command = lpr -l -P%p %s
	printing = bsd
	load printers = yes
	dns proxy = No
	lprm command = lprm
	public = yes
	printcap name = /etc/printcap
	printer name = HPDESKJET
	postscript = yes
	lpq command = lpq -L
	max log size = 50
	null passwords = Yes
	name resolve order = lmhosts host bcast

[homes]
	comment = Home Directories
	read only = No
	browseable = No

[printers]
	comment = All Printers
	guest ok = no
	writeable = no
	printable = yes
	path = /var/spool/lpd/HPDESKJET
	create mode = 0700

On Saturday 15 December 2001 12:34 pm, you wrote:
> -------- Original Message --------
> Subject: Re: No print to Samba (Linux) printer from Win98
> Date: Fri, 14 Dec 2001 20:42:16 -0500
> From: Joel Hammer <Joel at HammersHome.com># Global parameters


> To: Mike Watson <mikew at crucis.net>, samba at lists.samba.org
> References: <3C1A9A39.FA54EB2E at crucis.net>
>
> 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




More information about the samba mailing list