The
printing
configuration option tells Samba a little about your Unix printing system, in this case which printing parser to use. With Unix, there are several different families of commands to control printing and print statusing. Samba supports seven different types, as shown in
Table 7.3.
Table 7.3: Printing Types
Variable |
Definition |
BSD |
Berkeley Unix system |
SYSV |
System V |
AIX |
AIX Operating System (IBM) |
HPUX |
Hewlett-Packard Unix |
QNX |
QNX Realtime Operating System (QNX) |
LPRNG |
LPR Next Generation (Powell) |
SOFTQ |
SOFTQ system |
PLP |
Portable Line Printer (Powell) |
The value for this optio.n will be one of these seven options. For example:
printing = SYSV
The default value of this option is system dependent and is configured when Samba is first compiled. For most systems, the
configure script will automatically detect the printing system to be used and configure it properly in the Samba makefile. However, if your system is a PLP, LPRNG, or QNX printing system, you will need to explicitly specify this in the makefile or the printing share.
The most common system types are BSD and SYSV. Each of the printers on a BSD Unix server are described in the printer capabilities file - normally
/etc/printcap.
Setting the
printing
configuration option automatically sets at least three other printing options for the service in question:
print
command
,
lpq
command
, and
lprm
command
. If you are running Samba on a system that doesn't support any of these printing styles, simply set the commands for each of these manually.