[Samba] Printing from Linux to an NT printer
Joel Hammer
Joel at HammersHome.com
Thu Apr 10 20:55:45 GMT 2003
Yes. /dev/null sends the print job to the byte bucket. In your printcap
file you have /dev/lp1, so the print job is going to the parallel port
on your client, which is not what you want.
I am not sure if you need a lp parameter, but /dev/null should be your
choice if you have to have it.
Here is an old queue I have which I used for a similar purpose with a
windows 98 printer server.
winlp:\
:cm=Window Printer
:af=/var/spool/lpd/winlp/acct:\
:lf=/var/spool/lpd/winlp/log:\
:sd=/var/spool/lpd/winlp:\
::mx#0:\
:lp=/dev/null:\
:if=/var/spool/lpd/winlp/filter:
:sh:
I assume you are using lprng. checkpc I thought was part of that printing
distribution. Are you running it as root? If you don't have it, try to get
it. It will set up all your print queues for you and adjust permissions,
etc, once you write your printcap file. It is very handy.
Have you read through the smbprint script? You may be having trouble with
permissions. You could edit the smbprint script to solve that problem.
Joel
On Thu, Apr 10, 2003 at 02:32:56PM -0300, Sistemas wrote:
> Joel:
>
> 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.
> LauZ
>
> ----- 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
> helpful
> > 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
> HOWTO.
> > > 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
>
> --
> 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