Steve

We use Samba to print  from our DG Aviion System (dgux) in exactly the same
manner you want to from Linux. ie: having printers attached to Win9x boxes
and printed to from the Unix System.

Our solution was found buried in the distribution directory from Samba. (not
the installed directory). I am not sure if it is there or available in a RPM
on Linux as I only have used the source tree from samba.org.

If you grab the samba source tree from www.samba.org, uncompress and untar
it you will find a directory 'examples/printing'.

dgux-/home/pworboys/samba-2.0.6/examples/printing: ls -l
total 12
-rwxr-xr-x   1 pworboys general        2594 Nov 11 13:35 smbprint
-rw-r--r--   1 pworboys general        1837 May  4  1996 smbprint.sysv

What you need in the smbprint script (printcap/linux rh), we use a similar
script to smbprint.sysv as dgux uses printing functions similar to SYS5.

These scripts are documented at the top on how to set up the print queues
etc and they are actually just a script that calls the smbclient program
with relative options.

The stair case effect can be overcome by using the 'translate' function of
smbclient. You can see this in the example also.

Other solutions, not using Samba could be:

1. Spool to NT (if available) running a copy of the lp daemon and get it to
spool to other SMB printers in your WAN. (Shock Horror)

2. Grab a 'shareware' lp daemon to run directly on the Win9x clients.
*pretty clumsy as it requires additional software on the clients*

3. JetDirects *pretty expensive in any quantity*

BTW: I choose the samba method and once I got it going, haven't had any real
problems provided printers are on-line and ready to go.

Hope that helps

Peter Worboys

----- Original Message -----
From: Steven Kerr <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 23, 2000 1:30 PM
Subject: [SLUG] Samba Printing


> Ok, I've read to doco but still can't work it out.
>
> I wish to print FROM the Linux System to an existing  printer attached
> to a Win95/98 Box using samba.
>
> I can get smbclient to recognise the printer and get a smb:\> prompt.
>
> ie: smbclient //mis-sk/CANON -P
>
> I can print file from here, albeit with staircase effect using the
> print command
>
> but....
>
> How does one create a Unix print queue that points to a SMB (Samba)
> printer ?
>
> BTW: How do you get rid of the stair case effect when using the
> 'print' command to spool a text file ?
>
> SK
>
>
> __________________________________________________________________
> Get your free Australian email account at http://www.start.com.au
>
> --
> SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
> To unsubscribe send email to [EMAIL PROTECTED] with
> unsubscribe in the text
>

--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text

Reply via email to