[Samba] Print server on all linux network

Dan Sawyer dsawyer at blenderwars.com
Mon Oct 7 02:07:29 GMT 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Second update:

On the advice of someone else on this mailing list, I converted from BSD 
printing to CUPS (still using samba).  Doing so has given me what is perhaps 
a more identifiable error message.  When I send a job to the server, I check 
the que and get the following response:

thedude at floyd:~> lpstat -t
scheduler is running
system default destination: lp
device for lp: samba://192.168.1.101/lp
lp accepting requests
printer lp disabled -
        reason unknown
lp-1                    thedude         164864   Sun Oct  6 19:07:36 2002

So it seems that the printer is disabled for some reason.  The job just stays 
there in the que and never prints.

- -Dan

On Thursday 03 October 2002 15:23, Joel Hammer wrote:
> Do you understand how printing works with samba?
> Essentially, you just transfer the file to the samba spool directory, and
> invoke lpr to print the file. You will need to look at your smb.conf file
> to see what is supposed to happen. I would set up a share just for your
> printer and not rely on the generic printer share that smb.conf comes with.
>
> Here is the sort of printer share I have:
> This take a postscript file as input, invokes lpr to print to queue ps on
> the server, which translates postscript files for my lexmark printer.
>
> Joel
>
>
>
> [ps]
> 	path = /tmp
> 	read only = No
> 	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 -Pps  -J"$a"  %s;\
>                        rm %s
> 	lpq command = /usr/bin/lpq -Pps
> 	lprm command = /usr/bin/lprm -Pps %j
> 	lppause command = /usr/sbin/lpc hold z53 %j
> 	lpresume command = /usr/sbin/lpc release z53 %j
> 	share modes = No
>         use client driver = yes
>
> On Thu, Oct 03, 2002 at 12:47:27PM -0700, Dan Sawyer wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > Hello, everyone -
> >
> > I've been trying for two weeks now to get my print server operational
> > under Samba.  After walking through the howtos and tweaking the configs
> > per spec, it just ain't working.  Printing from a client machine sends,
> > and then nothing happens.  No error messages or anything similar.
> >
> > Printing from the server works fine, but not from the clients.
> >
> > Setup:
> >
> > 4 machine network, 3 clients, 1 samba file/print server
> > SuSE 7.3 running on all machines.
> > HP 2P parallel printer on lp0 of server
> >
> > What else can I tell you to help figure this out?
> > - -Dan Sawyer
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.0.6 (GNU/Linux)
> > Comment: For info see http://www.gnupg.org
> >
> > iD8DBQE9nJ7TaB8ur/y6V8gRArm9AJ9rRc8yhDm5Catchqv4SXedOqs5qwCfSWS/
> > 2IayciR10uTYysD/3F24UdE=
> > =TMQV
> > -----END PGP SIGNATURE-----
> > --
> > To unsubscribe from this list go to the following URL and read the
> > instructions:  http://lists.samba.org/mailman/listinfo/samba
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9oO3BaB8ur/y6V8gRAiAJAJwNmGtKOhWamaEBO2oX2bTlI0T7DACfXWEj
WPZ2VS/XixCF6xBqgXbDQyc=
=nwXl
-----END PGP SIGNATURE-----



More information about the samba mailing list