1cupsaddsmb(8) Easy Software Products cupsaddsmb(8)
2
3
4
6 cupsaddsmb - export printers to samba for windows clients
7
8
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
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
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
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 printer admin = root
68
69 [print$]
70 comment = Printer Drivers
71 path = /etc/samba/drivers
72 browseable = yes
73 guest ok = no
74 read only = yes
75 write list = root
76
77 This configuration assumes a FHS-compliant installation of SAMBA;
78 adjust the [printers] and [print$] share paths accordingly on your sys‐
79 tem as needed.
80
81
83 The base driver for Windows 2000 and higher is the Microsoft PostScript
84 driver, which is available on any system running Windows 2000 or higher
85 in the %WINDIR%\SYSTEM32\SPOOL\DRIVERS\W32X86\3 folder.
86
87 The CUPS printer driver is preferred over the Microsoft driver since it
88 supports the page-label, job-billing, and job-hold-until options fully
89 on all printers. However, currently only Windows 2000 and higher is
90 supported by the Microsoft driver, so you will also need to get the
91 Adobe driver to support Windows 95, 98, and Me clients. The Adobe and
92 Microsoft drivers for Windows 2000 are identical.
93
94 Once you have extracted the driver files, copy them to the
95 /usr/share/cups/drivers directory exactly as named below:
96
97 [Windows 2000 and higher]
98 ps5ui.dll
99 pscript.hlp
100 pscript.ntf
101 pscript5.dll
102
103 Note: Unlike Windows, case is significant - make sure that you use the
104 lowercase filenames shown above, otherwise cupsaddsmb will fail to
105 export the drivers.
106
107
109 cupsaddsmb can use the CUPS v6 PostScript printer driver for Windows,
110 which is available for download from the CUPS web site.
111
112 The CUPS printer driver is preferred over the Adobe and Microsoft driv‐
113 ers since it supports the page-label, job-billing, and job-hold-until
114 options fully on all printers. However, currently only Windows 2000 and
115 higher is supported by the CUPS driver, so you will also need to get
116 the Adobe driver to support Windows 95, 98, and Me clients.
117
118 Once you have extracted the driver files, copy them to the
119 /usr/share/cups/drivers directory exactly as named below:
120
121 [Windows 2000 and higher]
122 cups6.inf (from www.cups.org)
123 cups6.ini (from www.cups.org)
124 cupsps6.dll (from www.cups.org)
125 cupsui6.dll (from www.cups.org)
126 ps5ui.dll (from your Windows system)
127 pscript.hlp (from your Windows system)
128 pscript.ntf (from your Windows system)
129 pscript5.dll (from your Windows system)
130
131 Note: Unlike Windows, case is significant - make sure that you use the
132 lowercase filenames shown above, otherwise cupsaddsmb will fail to
133 export the drivers.
134
135
137 cupsaddsmb can use the Adobe PostScript printer driver for Windows 95,
138 98, and ME, which are available for download from the Adobe web site
139 (http://www.adobe.com).
140
141 The Adobe driver does not support the page-label, job-billing, or job-
142 hold-until options.
143
144 Once you have installed the driver on a Windows system, copy the fol‐
145 lowing files to the /usr/share/cups/drivers directory exactly as named
146 below:
147
148 [Windows 95, 98, and Me]
149 ADFONTS.MFM
150 ADOBEPS4.DRV
151 ADOBEPS4.HLP
152 ICONLIB.DLL
153 PSMON.DLL
154
155 Note: Unlike Windows, case is significant - make sure that you use the
156 UPPERCASE filenames shown above, otherwise cupsaddsmb will fail to
157 export the drivers.
158
159
161 cupsaddsmb currently only supports 32-bit x86 drivers on Windows 2000
162 and higher. Support for 64-bit x86 drivers will be added in a future
163 release.
164
165
167 smbd(8), smb.conf(5), http://localhost:631/help
168 http://www.cups.org/windows/
169
170
172 Copyright 1997-2006 by Easy Software Products, All Rights Reserved.
173
174
175
17620 October 2006 Common UNIX Printing System cupsaddsmb(8)