[Samba] Printing from Linux to an NT printer

Joel Hammer Joel at HammersHome.com
Thu Apr 10 16:50:33 GMT 2003

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.

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

More information about the samba mailing list