[95471] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: samba printing

daemon@ATHENA.MIT.EDU (Erik Ratcliffe)
Sun Oct 18 22:09:34 1998

Date: Sun, 18 Oct 1998 20:09:09 -0600
From: Erik Ratcliffe <erik@caldera.com>
To: redhat-list@redhat.com
In-Reply-To: <199810180013.KAA20173@spice.idl.com.au>; from Pete on Sun, Oct 18, 1998 at 09:45:19AM +1000
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

On Sun, Oct 18, 1998 at 09:45:19AM +1000, Pete wrote:
> I have been busy for the last few days trying to get printing under 
> samba to work.  The closest I came was that the 95 machine was 
> sending it's print job to the samba spool, and there it stayed.  I 
> printed out the spooled files using lpr -r -P bj200 /var/spool/samba/*.

You have a choice here, the way I see it:

1) Set your Windows clients to send PostScript output.  Making your default
printer an Apple LaserWriter II should accomplish this.

2) If that doesn't work and you're using LPRng (I'm not sure what RH uses
for printing), set up a special "raw" printcap entry just for Windows
printing (a raw printcap entry will allow you to use native Windows printer
drivers instead of setting your Windows machines to use a PostScript printer
driver).  The one I commonly recommend with LPRng is this:

winprint:\
    :rw:sh:
    :lp=/dev/lp1
    :sd=/var/spool/lpd/raw
    :fx=flp

Of course, change the lp and sd lines to point to a legitimate printer
device and print spool directory, respectively.  Using an existing set (like
those for your 'lp' printer) is fine.

Then, in your [global] section of smb.conf, add a print command line:

    print command = lpr -b -P%p %s

Stop/start Samba and your print spooling system, then connect to the
'winprint' printer instead of the one you're connecting to now.  If there
are problems, you may need to set printing to 'lprng' instead of 'bsd' like
you have it now.  Note that (as far as I know) this will not work with
regular Berkeley lpr/lpd printing; it's LPRng specific.

Good luck!

-- 
| (o)(o)     Erik Ratcliffe, erik@caldera.com    |
|  \oo/   Caldera Systems, Inc.  Orem, Utah USA  |
|  =\/=           http://www.caldera.com         |


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
		http://www.redhat.com http://archive.redhat.com
         To unsubscribe: mail redhat-list-request@redhat.com with 
                       "unsubscribe" as the Subject.


home help back first fref pref prev next nref lref last post