[Samba] Printing from Linux to an NT printer

Sistemas sistemas at elbolson.gov.ar
Thu Apr 10 17:32:56 GMT 2003


Thank you for your help, but I can't find "checkpc" anywhere, maybe it's a
distribution-dependant command?

By the way, I have tested smbclient and it works ok, so my problem must be
relationed to the printer configuration.
Another question: Can you tell me what difference is there between using
lp=/dev/lp1 and lp=/dev/null in the printcap file?

Thank you very much.

----- Original Message -----
From: "Joel Hammer" <Joel at HammersHome.com>
To: "Sistemas" <sistemas at elbolson.gov.ar>; <samba at lists.samba.org>
Sent: Thursday, April 10, 2003 1:50 PM
Subject: Re: [Samba] Printing from Linux to an NT printer

> You have to run checkpc -f once you have set up your queue, and then
> restart your lpd.
> Just so you don't get too mystified by the complexity added by those
> scripts, all you are doing is using the smbclient comand to print.
> This doesn't need smbd running or an smb.conf, just smbclient.
> Joel
> On Thu, Apr 10, 2003 at 09:49:26AM -0300, Sistemas wrote:
> >
> > Hello, Samba team! I am very new to Linux and Samba, so probably my
problem is that I need to study more Linux basic concepts, but in the
meanwhile, I need to get this working:
> >
> > I have to print from a Linux Suse 7.2 box, where I have installed Samba,
to a printer connected to an NT box. I have found things written for
printing the other way around, but not too much this way. I defined a
printer called smb in etc/printcap:
> >
> > smb:\
> >     :lp=/dev/lp1:\
> >     :sd=/var/spool/lpd/smb:\
> >     :af=/var/spool/lpd/smb/acct:\
> >     :if=/usr/bin/smbprint:\
> >     :mx#0:
> >
> > I also created the directory smb in /var/spool/lpd (with group and owner
lp), the file acct in /var/spool/lpd/smb  (with group and owner lp), and the
.config file in the same directory with information about the server,
service and password  (with group and owner root). I am not sure about what
the group and owner should be.
> > I edited the smbprint file in /usr/bin as explained in David Wood's SMB
> > But when I write the command "lpr -Psmb myfile" I get the message:
> >
> > Bad termcap entry
> > lpr: smb: unknown printer
> >
> > I tried editing the smb.conf file as I read somewhere, but I still
recieve the same message.
> >
> > Thank you very much in advance for your help.
> >
> > Greetings, LauZ
> >
> >
> > --
> > 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