1cupsaddsmb(8)                     Apple Inc.                     cupsaddsmb(8)
2
3
4

NAME

6       cupsaddsmb - export printers to samba for windows clients
7
8

SYNOPSIS

10       cupsaddsmb  [ -H samba-server ] [ -U samba-user[%samba-password] ] [ -h
11       cups-server[:port] ] [ -v ] -a
12       cupsaddsmb [ -H samba-server ] [ -U samba-user[%samba-password] ] [  -h
13       cups-server[:port] ] [ -v ] printer [ ... printer ]
14
15

DESCRIPTION

17       cupsaddsmb  exports  printers  to  the SAMBA software (version 2.2.0 or
18       higher) for use with Windows clients. Depending on the SAMBA configura‐
19       tion,  you  may need to provide a password to export the printers. This
20       program requires the Windows printer driver files described below.
21
22

OPTIONS

24       cupsaddsmb supports the following options:
25
26       -H samba-server
27            Specifies the SAMBA server which defaults to the CUPS server.
28
29       -U samba-user[%samba-password]
30            Specifies the SAMBA print admin username which  defaults  to  your
31            current  username.  If the username contains a percent (%) charac‐
32            ter, then the text following the percent is treated as  the  SAMBA
33            password to use.
34
35       -a
36            Exports  all known printers. Otherwise only the named printers are
37            exported.
38
39       -h cups-server[:port]
40            Specifies a different CUPS server to use.
41
42       -v
43            Specifies that verbose information should be shown. This is useful
44            for debugging SAMBA configuration problems.
45
46

SAMBA CONFIGURATION

48       cupsaddsmb  uses  the  new RPC-based printing support in SAMBA 2.2.x to
49       provide printer drivers and PPD files to Windows  client  machines.  In
50       order  to  use  this  functionality, you must first configure the SAMBA
51       smb.conf(5) file to support printing through CUPS and provide a printer
52       driver download share, as follows:
53
54           [global]
55            load printers = yes
56            printing = cups
57            printcap name = cups
58
59           [printers]
60            comment = All Printers
61            path = /var/spool/samba
62            browseable = no
63            public = yes
64            guest ok = yes
65            writable = no
66            printable = yes
67
68           [print$]
69            comment = Printer Drivers
70            path = /etc/samba/drivers
71            browseable = yes
72            guest ok = no
73            read only = yes
74            write list = root
75
76       This  configuration  assumes  a  FHS-compliant  installation  of SAMBA;
77       adjust the [printers] and [print$] share paths accordingly on your sys‐
78       tem as needed.
79
80

MICROSOFT POSTSCRIPT DRIVERS FOR WINDOWS

82       The base driver for Windows 2000 and higher is the Microsoft PostScript
83       driver, which is available on any system running Windows 2000 or higher
84       in the %WINDIR%\SYSTEM32\SPOOL\DRIVERS\W32X86\3 folder for 32-bit driv‐
85       ers and %WINDIR%\SYSTEM32\SPOOL\DRIVERS\X64\3 folder for  64-bit  driv‐
86       ers.
87
88       The CUPS printer driver is preferred over the Microsoft driver since it
89       supports the page-label, job-billing, and job-hold-until options  fully
90       on  all  printers.  However,  currently only Windows 2000 and higher is
91       supported by the Microsoft driver, so you will also  need  to  get  the
92       Adobe  driver  to support Windows 95, 98, and Me clients. The Adobe and
93       Microsoft drivers for Windows 2000 are identical.
94
95       Once you have extracted the driver files, copy the  32-bit  drivers  to
96       the  /usr/share/cups/drivers  directory  and  the 64-bit drivers to the
97       /usr/share/cups/drivers/x64 directory exactly as named below:
98
99           [Windows 2000 and higher]
100           ps5ui.dll
101           pscript.hlp
102           pscript.ntf
103           pscript5.dll
104
105       Note: Unlike Windows, case is significant - make sure that you use  the
106       lowercase  filenames  shown  above,  otherwise  cupsaddsmb will fail to
107       export the drivers.
108
109

CUPS POSTSCRIPT DRIVERS FOR WINDOWS

111       cupsaddsmb can use the CUPS v6 PostScript printer driver  for  Windows,
112       which is available for download from the CUPS web site.
113
114       The CUPS printer driver is preferred over the Adobe and Microsoft driv‐
115       ers since it supports the page-label, job-billing,  and  job-hold-until
116       options fully on all printers. However, currently only Windows 2000 and
117       higher is supported by the CUPS driver, so you will also  need  to  get
118       the Adobe driver to support Windows 95, 98, and Me clients.
119
120       Once  you  have  extracted the driver files, copy the 32-bit drivers to
121       the /usr/share/cups/drivers directory and the  64-bit  drivers  to  the
122       /usr/share/cups/drivers/x64 directory exactly as named below:
123
124           [Windows 2000 and higher]
125           cups6.inf (from www.cups.org)
126           cups6.ini (from www.cups.org)
127           cupsps6.dll (from www.cups.org)
128           cupsui6.dll (from www.cups.org)
129           ps5ui.dll (from your Windows system)
130           pscript.hlp (from your Windows system)
131           pscript.ntf (from your Windows system)
132           pscript5.dll (from your Windows system)
133
134       Note:  Unlike Windows, case is significant - make sure that you use the
135       lowercase filenames shown above,  otherwise  cupsaddsmb  will  fail  to
136       export the drivers.
137
138

ADOBE POSTSCRIPT DRIVERS FOR WINDOWS 95, 98, AND ME

140       cupsaddsmb  can use the Adobe PostScript printer driver for Windows 95,
141       98, and ME, which are available for download from the  Adobe  web  site
142       (http://www.adobe.com).
143
144       The  Adobe driver does not support the page-label, job-billing, or job-
145       hold-until options.
146
147       Once you have installed the driver on a Windows system, copy  the  fol‐
148       lowing  files to the /usr/share/cups/drivers directory exactly as named
149       below:
150
151           [Windows 95, 98, and Me]
152           ADFONTS.MFM
153           ADOBEPS4.DRV
154           ADOBEPS4.HLP
155           ICONLIB.DLL
156           PSMON.DLL
157
158       Note: Unlike Windows, case is significant - make sure that you use  the
159       UPPERCASE  filenames  shown  above,  otherwise  cupsaddsmb will fail to
160       export the drivers.
161
162

KNOWN ISSUES

164       Getting the full set of Windows driver files should be easier.
165
166

SEE ALSO

168       smbd(8), smb.conf(5), http://localhost:631/help
169       http://www.cups.org/windows/
170
171
173       Copyright 2007-2009 by Apple Inc.
174
175
176
17725 July 2007                         CUPS                        cupsaddsmb(8)
Impressum