11.2. Printing to a Windows or Samba printer
There is a Printing to Windows mini-HOWTO out there which has more
info than there is here.
11.2.1. From LPD
It is possible to direct a print queue through the
smbclient
program (part of the Samba suite)
to a TCP/IP based SMB print service. Samba includes a script to
do this called smbprint. In short,
you put a configuration file for the specific printer in question
in the spool directory, and install the smbprint script as theif.
The /etc/printcap entry goes like this:
lp|remote-smbprinter:\
:sh:\
:lp=/dev/null:\
:sd=/var/spool/lpd/lp:\
:if=/usr/local/sbin/smbprint:
|
You should read the documentation inside the smbprint script for more information on how
to set this up.
You can also use smbclient to
submit a file directly to an SMB printing service without
involving lpd. See the man page.