Subversion Repositories configs

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
192 - 1
# All configuration options described here can also be supplied on the
2
# command line of cups-browsed via the "-o" option. In case of
3
# contradicting settings the setting defined in the configuration file
4
# will get used.
5
 
6
# Unknown directives are ignored, also unknown values.
7
 
8
 
9
# Where should cups-browsed save information about the print queues it had
10
# generated when shutting down, like whether one of these queues was the
11
# default printer, or default option settings of the queues?
12
 
13
# CacheDir /var/cache/cups
14
 
15
 
16
# Where should cups-browsed create its debug log file (if "DebugLogging file"
17
# is set)?
18
 
19
# LogDir /var/log/cups
20
 
21
 
22
# How should debug logging be done? Into the file
23
# /var/log/cups/cups-browsed_log ('file'), to stderr ('stderr'), or
24
# not at all ('none')?
25
 
26
# DebugLogging file
27
# DebugLogging stderr
28
# DebugLogging file stderr
29
# DebugLogging none
30
 
31
 
32
# Which protocols will we use to discover printers on the network?
33
# Can use DNSSD and/or CUPS and/or LDAP, or 'none' for neither.
34
 
35
BrowseRemoteProtocols dnssd cups
36
 
37
 
38
# Which protocols will we use to broadcast shared local printers to the network?
39
# Can use DNSSD and/or CUPS, or 'none' for neither.
40
# Only CUPS is actually supported, as DNSSD is done by CUPS itself (we ignore
41
# DNSSD in this directive).
42
 
43
# BrowseLocalProtocols none
44
 
45
 
46
# Settings of this directive apply to both BrowseRemoteProtocols and
47
# BrowseLocalProtocols.
48
# Can use DNSSD and/or CUPS and/or LDAP, or 'none' for neither.
49
 
50
# BrowseProtocols none
51
 
52
 
53
# Only browse remote printers (via DNS-SD or CUPS browsing) from
54
# selected servers using the "BrowseAllow", "BrowseDeny", and
55
# "BrowseOrder" directives
56
 
57
# This serves for restricting the choice of printers in print dialogs
58
# to trusted servers or to reduce the number of listed printers in the
59
# print dialogs to a more user-friendly amount in large networks with
60
# very many shared printers.
61
 
62
# This only filters the selection of remote printers for which
63
# cups-browsed creates local queues. If the print dialog uses other
64
# mechanisms to list remote printers as for example direct DNS-SD
65
# access, cups-browsed has no influence. cups-browsed also does not
66
# prevent the user from manually accessing non-listed printers.
67
 
68
# "BrowseAllow": Accept printers from these hosts or networks. If
69
# there are only "BrowseAllow" lines and no "BrowseOrder" and/or
70
# "BrowseDeny" lines, only servers matching at last one "BrowseAllow"
71
# line are accepted.
72
 
73
# "BrowseDeny": Deny printers from these hosts or networks. If there
74
# are only "BrowseDeny" lines and no "BrowseOrder" and/or
75
# "BrowseAllow" lines, all servers NOT matching any of the
76
# "BrowseDeny" lines are accepted.
77
 
78
# "BrowseOrder": Determine the order in which "BrowseAllow" and
79
# "BrowseDeny" lines are applied. With "BrowseOrder Deny,Allow" in the
80
# beginning all servers are accepted, then the "BrowseDeny" lines are
81
# applied to exclude unwished servers or networks and after that the
82
# "BrowseAllow" lines to re-include servers or networks. With
83
# "BrowseOrder Allow,Deny" we start with denying all servers, then
84
# applying the "BrowseAllow" lines and afterwards the "BrowseDeny"
85
# lines.
86
 
87
# Default for "BrowseOrder" is "Deny.Allow" if there are both
88
# "BrowseAllow" and "BrowseDeny" lines.
89
 
90
# If there are no "Browse..." lines at all, all servers are accepted.
91
 
92
# BrowseAllow All
93
# BrowseAllow cups.example.com
94
# BrowseAllow 192.168.1.12
95
# BrowseAllow 192.168.1.0/24
96
# BrowseAllow 192.168.1.0/255.255.255.0
97
 
98
# BrowseDeny All
99
# BrowseDeny printserver.example.com
100
# BrowseDeny 192.168.1.13
101
# BrowseDeny 192.168.3.0/24
102
# BrowseDeny 192.168.3.0/255.255.255.0
103
 
104
# BrowseOrder Deny,Allow
105
# BrowseOrder Allow,Deny
106
 
107
 
108
# The interval between browsing/broadcasting cycles, local and/or
109
# remote, can be adjusted with the BrowseInterval directive.
110
 
111
# BrowseInterval 60
112
 
113
 
114
# Browsing-related operations such as adding or removing printer queues
115
# and broadcasting are each allowed to take up to a given amount of time.
116
# It can be configured, in seconds, with the BrowseTimeout directive.
117
# Especially queues discovered by CUPS broadcasts will be removed after
118
# this timeout if no further broadcast from the server happens.
119
 
120
# BrowseTimeout 300
121
 
122
 
123
# Filtering of remote printers by other properties than IP addresses
124
# of their servers
125
 
126
# Often the desired selection of printers cannot be reached by only
127
# taking into account the IP addresses of the servers. For these cases
128
# there is the BrowseFilter directive to filter by most of the known
129
# properties of the printer.
130
 
131
# By default there is no BrowseFilter line meaning that no filtering
132
# is applied.
133
 
134
# To do filtering one can supply one or more BrowseFilter directives
135
# like this:
136
 
137
# BrowseFilter [NOT] [EXACT] <FIELD> [<VALUE>]
138
 
139
# The BrowseFilter directive always starts with the word
140
# "BrowseFilter" and it must at least contain the name of the data
141
# field (<FIELD>) of the printer's properties to which it should
142
# apply.
143
 
144
# Available field names are:
145
 
146
#   name:    Name of the local print queue to be created
147
#   host:    Host name of the remote print server
148
#   port:    Port through which the printer is accessed on the server
149
#   service: DNS/SD service name of the remote printer
150
#   domain:  Domain of the remote print server
151
 
152
# Also all field names in the TXT records of DNS-SD-advertised printers
153
# are valid, like "color", "duplex", "pdl", ... If the field name of
154
# the filter rule does not exist for the printer, the rule is skipped.
155
 
156
# The optional <VALUE> field is either the exact value (when the
157
# option EXACT is supplied) or a regular expression (Run "man 7 regex"
158
# in a terminal window) to be matched with the data field.
159
 
160
# If no <VALUE> filed is supplied, rules with field names of the TXT
161
# record are considered for boolean matching (true/false) of boolean
162
# field (like duplex, which can have the values "T" for true and "F"
163
# for false).
164
 
165
# If the option NOT is supplied, the filter rule is fulfilled if the
166
# regular expression or the exact value DOES NOT match the content of
167
# the data field. In a boolean rule (without <VALUE>) the rule matches
168
# false.
169
 
170
# Regular expressions are always considered case-insensitive and
171
# extended POSIX regular expressions. Field names and options (NOT,
172
# EXACT) are all evaluated case-insensitive. If there is an error in a
173
# regular expression, the BrowseFilter line gets ignored.
174
 
175
# Especially to note is that supplying any simple string consisting of
176
# only letters, numbers, spaces, and some basic special characters as
177
# a regular expression matches if it is contained somewhere in the
178
# data field.
179
 
180
# If there is more than one BrowseFilter directive, ALL the directives
181
# need to be fulfilled for the remote printer to be accepted. If one
182
# is not fulfilled, the printer will get ignored.
183
 
184
# Examples:
185
 
186
# Rules for standard data items which are supplied with any remote
187
# printer advertised via DNS-SD:
188
 
189
# Print queue name must contain "hum_res_", this matches
190
# "hum_res_mono" or "hum_res_color" but also "old_hum_res_mono":
191
 
192
# BrowseFilter name hum_res_
193
 
194
# This matches if the remote host name contains "printserver", like
195
# "printserver.local", "printserver2.example.com", "newprintserver":
196
 
197
# BrowseFilter host printserver
198
 
199
# This matches all ports with 631 int its number, for example 631,
200
# 8631, 10631,...:
201
 
202
# BrowseFilter port 631
203
 
204
# This rule matches if the DNS-SD service name contains "@ printserver":
205
 
206
# Browsefilter service @ printserver
207
 
208
# Matches all domains with "local" in their names, not only "local" but
209
# also things like "printlocally.com":
210
 
211
# BrowseFilter domain local
212
 
213
# Examples for rules applying to items of the TXT record:
214
 
215
# This rule selects PostScript printers, as the "PDL" field in the TXT
216
# record contains "postscript" then. This includes also remote CUPS
217
# queues which accept PostScript, independent of whether the physical
218
# printer behind the CUPS queue accepts PostScript or not.
219
 
220
# BrowseFilter pdl postscript
221
 
222
# Color printers usually contain a "Color" entry set to "T" (for true)
223
# in the TXT record. This rule selects them:
224
 
225
# BrowseFilter color
226
 
227
# This is a similar rule to select only duplex (automatic double-sided
228
# printing) printers:
229
 
230
# BrowseFilter duplex
231
 
232
# Rules with the NOT option:
233
 
234
# This rule EXCLUDES printers from all hosts containing "financial" in
235
# their names, nice to get rid of the 100s of printers of the
236
# financial department:
237
 
238
# BrowseFilter NOT host financial
239
 
240
# Get only monochrome printers ("Color" set to "F", meaning false, in
241
# the TXT record):
242
 
243
# BrowseFilter NOT color
244
 
245
# Rules with more advanced use of regular expressions:
246
 
247
# Only queue names which BEGIN WITH "hum_res_" are accepted now, so we
248
# still get "hum_res_mono" or "hum_res_color" but not
249
# "old_hum_res_mono" any more:
250
 
251
# BrowseFilter name ^hum_res_
252
 
253
# Server names is accepted if it contains "print_server" OR
254
# "graphics_dep_server":
255
 
256
# BrowseFilter host print_server|graphics_dep_server
257
 
258
# "printserver1", "printserver2", and "printserver3", nothing else:
259
 
260
# BrowseFilter host ^printserver[1-3]$
261
 
262
# Printers understanding at least one of PostScript, PCL, or PDF:
263
 
264
# BrowseFilter pdl postscript|pcl|pdf
265
 
266
# Examples for the EXACT option:
267
 
268
# Only printers from "printserver.local" are accepted:
269
 
270
# BrowseFilter EXACT host printserver.local
271
 
272
# Printers from all servers except "prinserver2.local" are accepted:
273
 
274
# BrowseFilter NOT EXACT host prinserver2.local
275
 
276
 
277
# Use BrowsePoll to poll a particular CUPS server
278
 
279
# BrowsePoll cups.example.com
280
# BrowsePoll cups.example.com:631
281
# BrowsePoll cups.example.com:631/version=1.1
282
 
283
 
284
# LDAP browsing configuration
285
# The default value for all options is an empty string. Example configuration:
286
 
287
# BrowseLDAPBindDN cn=cups-browsed,dc=domain,dc=tld
288
# BrowseLDAPCACertFile /path/to/server/certificate.pem
289
# BrowseLDAPDN ou=printers,dc=domain,dc=tld
290
# BrowseLDAPFilter (printerLocation=/Office 1/*)
291
# BrowseLDAPPassword s3cret
292
# BrowseLDAPServer ldaps://ldap.domain.tld
293
 
294
 
295
# Use DomainSocket to access the local CUPS daemon via another than the
296
# default domain socket. "None" or "Off" lets cups-browsed not use CUPS'
297
# domain socket.
298
 
299
# DomainSocket /var/run/cups/cups.sock
300
# DomainSocket None
301
# DomainSocket Off
302
 
303
 
304
# Set HTTP timeout (in seconds) for requests sent to local/remote
305
# resources Note that too short timeouts can make services getting
306
# missed when they are present and operations be unneccesarily
307
# repeated and too long timeouts can make operations take too long
308
# when the server does not respond.
309
 
310
# HttpLocalTimeout 5
311
# HttpRemoteTimeout 10
312
 
313
 
314
# Set OnlyUnsupportedByCUPS to "Yes" will make cups-browsed not create
315
# local queues for remote printers for which CUPS creates queues by
316
# itself.  These printers are printers advertised via DNS-SD and doing
317
# CUPS-supported (currently PWG Raster and Apple Raster) driverless
318
# printing, including remote CUPS queues. Queues for other printers
319
# (like for legacy PostScript/PCL printers) are always created
320
# (depending on the other configuration settings of cups-browsed).
321
 
322
# With OnlyUnsupportedByCUPS set to "No", cups-browsed creates queues
323
# for all printers which it supports, including printers for which
324
# CUPS would create queues by itself. Temporary queues created by CUPS
325
# will get overwritten. This way it is assured that any extra
326
# functionality of cups-browsed will apply to these queues. As queues
327
# created by cups-browsed are permanent CUPS queues this setting is
328
# also recommended if applications/print dialogs which do not support
329
# temporary CUPS queues are installed. This setting is the default.
330
 
331
# OnlyUnsupportedByCUPS Yes
332
 
333
 
334
# With UseCUPSGeneratedPPDs set to "Yes" cups-browsed creates queues
335
# for IPP printers with PPDs generated by the PPD generator of CUPS
336
# and not with the one of cups-browsed. So any new development in
337
# CUPS' PPD generator gets available. As CUPS' PPD generator is not
338
# directly accessible, we need to make CUPS generate a temporary print
339
# queue with the desired PPD. Therefore we can only use these PPDs
340
# when our queue replaces a temporary CUPS queue, meaning that the
341
# queue is for a printer on which CUPS supports driverless printing
342
# (IPP 2.x, PDLs: PDF, PWG Raster, and/or Apple Raster) and that its
343
# name is the same as CUPS uses for the temporary queue
344
# ("LocalQueueNamingIPPPrinter DNS-SD" must be set). The directive
345
# applies only to IPP printers, not to remote CUPS queues, to not
346
# break clustering. Setting this directive to "No" lets cups-browsed
347
# generate the PPD file. Default setting is "Yes".
348
 
349
# UseCUPSGeneratedPPDs No
350
 
351
 
352
# With the directives LocalQueueNamingRemoteCUPS and
353
# LocalQueueNamingIPPPrinter you can determine how the names for local
354
# queues generated by cups-browsed are generated, separately for
355
# remote CUPS printers and IPP printers.
356
 
357
# DNS-SD (the default in both cases) bases the naming on the service
358
# name of the printer's advertised DNS-SD record. This is exactly the
359
# same naming scheme as CUPS uses for its temporary queues, so the
360
# local queue from cups-browsed prevents CUPS from listing and
361
# creating an additional queue. As DNS-SD service names have to be
362
# unique, queue names of printers from different servers will also be
363
# unique and so there is no automatic clustering for load-balanced
364
# printing.
365
 
366
# MakeModel bases the queue name on the printer's manufacturer and
367
# model names. This scheme cups-browsed used formerly for IPP
368
# printers.
369
 
370
# RemoteName is only available for remote CUPS queues and uses the
371
# name of the queue on the remote CUPS server as the local queue's
372
# name. This makes printers on different CUPS servers with equal queue
373
# names automatically forming a load-balancing cluster as CUPS did
374
# formerly (CUPS 1.5.x and older) with CUPS-broadcasted remote
375
# printers. This scheme cups-browsed used formerly for remote CUPS
376
# printers.
377
 
378
# LocalQueueNamingRemoteCUPS DNS-SD
379
# LocalQueueNamingRemoteCUPS MakeModel
380
LocalQueueNamingRemoteCUPS RemoteName
381
# LocalQueueNamingIPPPrinter DNS-SD
382
# LocalQueueNamingIPPPrinter MakeModel
383
 
384
 
385
# Set IPBasedDeviceURIs to "Yes" if cups-browsed should create its
386
# local queues with device URIs with the IP addresses instead of the
387
# host names of the remote servers. This mode is there for any
388
# problems with host name resolution in the network, especially also
389
# if avahi-daemon is only run for printer discovery and already
390
# stopped while still printing. By default this mode is turned off,
391
# meaning that we use URIs with host names.
392
 
393
# If you prefer IPv4 or IPv6 IP addresses in the URIs, you can set
394
# IPBasedDeviceURIs to "IPv4" to only get IPv4 IP addresses or
395
# IPBasedDeviceURIs to "IPv6" to only get IPv6 IP addresses.
396
 
397
# IPBasedDeviceURIs No
398
# IPBasedDeviceURIs Yes
399
# IPBasedDeviceURIs IPv4
400
# IPBasedDeviceURIs IPv6
401
 
402
 
403
# Set CreateRemoteRawPrinterQueues to "Yes" to let cups-browsed also
404
# create local queues pointing to remote raw CUPS queues. Normally,
405
# only queues pointing to remote queues with PPD/driver are created
406
# as we do not use drivers on the client side, but in some cases
407
# accessing a remote raw queue can make sense, for example if the
408
# queue forwards the jobs by a special backend like Tea4CUPS.
409
 
410
# CreateRemoteRawPrinterQueues Yes
411
 
412
 
413
# cups-browsed by default creates local print queues for each shared
414
# CUPS print queue which it discovers on remote machines in the local
415
# network(s). Set CreateRemoteCUPSPrinterQueues to "No" if you do not
416
# want cups-browsed to do this. For example you can set cups-browsed
417
# to only create queues for IPP network printers setting
418
# CreateIPPPrinterQueues not to "No" and CreateRemoteCUPSPrinterQueues
419
# to "No".
420
 
421
# CreateRemoteCUPSPrinterQueues No
422
 
423
 
424
# Set CreateIPPPrinterQueues to "All" to let cups-browsed discover IPP
425
# network printers (native printers, not CUPS queues) with known page
426
# description languages (PWG Raster, PDF, PostScript, PCL XL, PCL
427
# 5c/e) in the local network and auto-create print queues for them.
428
 
429
# Set CreateIPPPrinterQueues to "Everywhere" to let cups-browsed
430
# discover IPP Everywhere printers in the local network (native
431
# printers, not CUPS queues) and auto-create print queues for them.
432
 
433
# Set CreateIPPPrinterQueues to "AppleRaster" to let cups-browsed
434
# discover Apple Raster printers in the local network (native
435
# printers, not CUPS queues) and auto-create print queues for them.
436
 
437
# Set CreateIPPPrinterQueues to "Driverless" to let cups-browsed
438
# discover printers designed for driverless use (currently IPP
439
# Everywhere and Apple Raster) in the local network (native printers,
440
# not CUPS queues) and auto-create print queues for them.
441
 
442
# Set CreateIPPPrinterQueues to "LocalOnly" to auto-create print
443
# queues only for local printers made available as IPP printers. These
444
# are for example IPP-over-USB printers, made available via
445
# ippusbxd. This is the default.
446
 
447
# Set CreateIPPPrinterQueues to "No" to not auto-create print queues
448
# for IPP network printers.
449
 
450
# If queues with PPD file are created (see IPPPrinterQueueType
451
# directive below) the PPDs are auto-generated by cups-browsed based
452
# on properties of the printer polled via IPP. In case of missing
453
# information, info from the Bonjour record is used asd as last mean
454
# default values.
455
 
456
# If queues without PPD (see IPPPrinterQueueType directive below) are
457
# created clients have to IPP-poll the capabilities of the printer and
458
# send option settings as standard IPP attributes. Then we do not poll
459
# the capabilities by ourselves to not wake up the printer from
460
# power-saving mode when creating the queues. Jobs have to be sent in
461
# one of PDF, PWG Raster, or JPEG format. Other formats are not
462
# accepted.
463
 
464
# This functionality is primarily for mobile devices running
465
# CUPS to not need a printer setup tool nor a collection of printer
466
# drivers and PPDs.
467
 
468
# CreateIPPPrinterQueues No
469
# CreateIPPPrinterQueues LocalOnly
470
# CreateIPPPrinterQueues Everywhere
471
# CreateIPPPrinterQueues AppleRaster
472
# CreateIPPPrinterQueues Everywhere AppleRaster
473
# CreateIPPPrinterQueues Driverless
474
CreateIPPPrinterQueues All
475
 
476
 
477
# If cups-browsed is automatically creating print queues for native
478
# IPP network printers ("CreateIPPPrinterQueues Yes"), the type of
479
# queue to be created can be selected by the "IPPPrinterQueueType"
480
# directive. The "PPD" (default) setting makes queues with PPD file
481
# being created. With "Interface" or "NoPPD" the queue is created with
482
# a System V interface script (Not supported with CUPS 2.2.x or
483
# later). "Auto" is for backward compatibility and also lets queues
484
# with PPD get created.
485
 
486
# IPPPrinterQueueType PPD
487
# IPPPrinterQueueType NoPPD
488
# IPPPrinterQueueType Interface
489
# IPPPrinterQueueType Auto
490
 
491
 
492
# The NewIPPPrinterQueuesShared directive determines whether a print
493
# queue for a newly discovered IPP network printer (not remote CUPS
494
# queue) will be shared to the local network or not. This is only
495
# valid for newly discovered printers. For printers discovered in an
496
# earlier cups-browsed session, cups-browsed will remember whether the
497
# printer was shared, so changes by the user get conserved. Default is
498
# not to share newly discovered IPP printers.
499
 
500
# NewIPPPrinterQueuesShared Yes
501
 
502
 
503
# If there is more than one remote CUPS printer whose local queue
504
# would get the same name and AutoClustering is set to "Yes" (the
505
# default) only one local queue is created which makes up a
506
# load-balancing cluster of the remote printers which would get this
507
# queue name (implicit class). This means that when several jobs are
508
# sent to this queue they get distributed between the printers, using
509
# the method chosen by the LoadBalancing directive.
510
 
511
# Note that the forming of clusters depends on the naming scheme for
512
# local queues created by cups-browsed. If you have set
513
# LocalQueueNamingRemoteCUPS to "DNSSD" you will not get automatic
514
# clustering as the DNS-SD service names are always unique. With
515
# LocalQueueNamingRemoteCUPS set to "RemoteName" local queues are
516
# named as the CUPS queues on the remote servers are named and so
517
# equally named queues on different servers get clustered (this is how
518
# CUPS did it in version 1.5.x or older). LocalQueueNamingRemoteCUPS
519
# set to "MakeModel" makes remote printers of the same model get
520
# clustered. Note that then a cluster can contain more than one queue
521
# of the same server.
522
 
523
# With AutoClustering set to "No", for each remote CUPS printer an
524
# individual local queue is created, and to avoid name clashes when
525
# using the LocalQueueNamingRemoteCUPS settings "RemoteName" or
526
# "MakeModel" "@<server name>" is added to the local queue name.
527
 
528
# Only remote CUPS printers get clustered, not IPP network printers or
529
# IPP-over-USB printers.
530
 
531
# AutoClustering Yes
532
# AutoClustering No
533
 
534
 
535
# Load-balancing printer cluster formation can also be manually
536
# controlled by defining explicitly which remote CUPS printers should
537
# get clustered together.
538
 
539
# This is done by the "Cluster" directive:
540
 
541
# Cluster <QUEUENAME>: <EXPRESSION1> <EXPRESSION2> ...
542
# Cluster <QUEUENAME>
543
 
544
# If no expressions are given, <QUEUENAME> is used as the first and
545
# only expression for this cluster.
546
 
547
# Discovered printers are matched against all the expressions of all
548
# defined clusters. The first expression which matches the discovered
549
# printer determines to which cluster it belongs. Note that this way a
550
# printer can only belong to one cluster. Once matched, further
551
# cluster definitions will not checked any more.
552
 
553
# With the first printer matching a cluster's expression a local queue
554
# with the name <QUEUENAME> is created. If more printers are
555
# discovered and match this cluster, they join the cluster. Printing
556
# to this queue prints to all these printers in a load-balancing
557
# manner, according to to the setting of the LoadBalancing directive.
558
 
559
# Each expression must be a string of characters without spaces. If
560
# spaces are needed, replace them by underscores ('_').
561
 
562
# An expression can be matched in three ways:
563
 
564
# 1. By the name of the CUPS queue on the remote server
565
# 2. By make and model name of the remote printer
566
# 3. By the DNS-SD service name of the remote printer
567
 
568
# Note that the matching is done case-insensitively and any group of
569
# non-alphanumerical characters is replaced by a single underscore.
570
 
571
# So if an expression is "HP_DeskJet_2540" and the remote server
572
# reports "hp Deskjet-2540" the printer gets matched to this cluster.
573
 
574
# If "AutoClustering" is not set to "No" both your manual cluster
575
# definitions will be followed and automatic clustering of
576
# equally-named remote queues will be performed. If a printer matches
577
# in both categories the match to the manually defined cluster has
578
# priority. Automatic clustering of equally-named remote printers is
579
# not performed if there is a manually defined cluster with this name
580
# (at least as the printers do not match this cluster).
581
 
582
# Examples:
583
 
584
# To cluster all remote CUPS queues named "laserprinter" in your local
585
# network but not cluster any other equally-named remote CUPS printers
586
# use (Local queue will get named "laserprinter"):
587
 
588
# AutoClustering No
589
# Cluster laserprinter
590
 
591
# To cluster all remote CUPS queues of HP LaserJet 4050 printers in a
592
# local queue named "LJ4050":
593
 
594
# Cluster LJ4050: HP_LaserJet_4050
595
 
596
# As DNS-SD service names are unique in a network you can create a
597
# cluster from exactly specified printers (spaces replaced by
598
# underscors):
599
 
600
# Cluster hrdep: oldlaser_@_hr-server1 newlaser_@_hr-server2
601
 
602
 
603
# The LoadBalancing directive switches between two methods of handling
604
# load balancing between equally-named remote queues which are
605
# represented by one local print queue making up a cluster of them
606
# (implicit class).
607
 
608
# The two methods are:
609
 
610
# Queuing of jobs on the client (LoadBalancing QueueOnClient):
611
 
612
# Here we queue up the jobs on the client and regularly check the
613
# clustered remote print queues. If we find an idle queue, we pass
614
# on a job to it.
615
 
616
# This is also the method which CUPS uses for classes. Advantage is a
617
# more even distribution of the job workload on the servers
618
# (especially if the printing speed of the servers is very different),
619
# and if a server fails, there are not several jobs stuck or
620
# lost. Disadvantage is that if one takes the client (laptop, mobile
621
# phone, ...) out of the local network, printing stops with the jobs
622
# waiting in the local queue.
623
 
624
# Queuing of jobs on the servers (LoadBalancing QueueOnServers):
625
 
626
# Here we check the number of jobs on each of the clustered remote
627
# printers and send an incoming job immediately to the remote printer
628
# with the lowest amount of jobs in its queue. This way no jobs queue
629
# up locally, all jobs which are waiting are waiting on one of the
630
# remote servers.
631
 
632
# Not having jobs waiting locally has the advantage that we can take
633
# the local machine from the network and all jobs get printed.
634
# Disadvantage is that if a server with a full queue of jobs goes
635
# away, the jobs go away, too.
636
 
637
# Default is queuing the jobs on the client as this is what CUPS does
638
# with classes.
639
 
640
# LoadBalancing QueueOnClient
641
# LoadBalancing QueueOnServers
642
 
643
 
644
# With the DefaultOptions directive one or more option settings can be
645
# defined to be applied to every print queue newly created by
646
# cups-browsed. Each option is supplied as one supplies options with
647
# the "-o" command line argument to the "lpadmin" command (Run "man
648
# lpadmin" for more details). More than one option can be supplied
649
# separating the options by spaces. By default no option settings are
650
# pre-defined.
651
 
652
# Note that print queues which cups-browsed already created before
653
# remember their previous settings and so these settings do not get
654
# applied.
655
 
656
# DefaultOptions Option1=Value1 Option2=Value2 Option3 noOption4
657
 
658
 
659
# The AutoShutdown directive specifies whether cups-browsed should
660
# automatically terminate when it has no local raw queues set up
661
# pointing to any discovered remote printers or no jobs on such queues
662
# depending on AutoShutdownOn setting (auto shutdown mode). Setting it
663
# to "On" activates the auto-shutdown mode, setting it to "Off"
664
# deactiivates it (the default). The special mode "avahi" turns auto
665
# shutdown off while avahi-daemon is running and on when avahi-daemon
666
# stops. This allows running cups-browsed on-demand when avahi-daemon
667
# is run on-demand.
668
 
669
# AutoShutdown Off
670
# AutoShutdown On
671
# AutoShutdown avahi
672
 
673
 
674
# The AutoShutdownOn directive determines what event cups-browsed
675
# considers as inactivity in auto shutdown mode. "NoQueues" (the
676
# default) means that auto shutdown is initiated when there are no
677
# queues for discovered remote printers generated by cups-browsed any
678
# more. "NoJobs" means that all queues generated by cups-browsed are
679
# without jobs.
680
 
681
# AutoShutdownOn NoQueues
682
# AutoShutdownOn NoJobs
683
 
684
 
685
# The AutoShutdownTimeout directive specifies after how many seconds
686
# without local raw queues set up pointing to any discovered remote
687
# printers or jobs on these queues cups-browsed should actually shut
688
# down in auto shutdown mode. Default is 30 seconds, 0 means immediate
689
# shutdown.
690
 
691
# AutoShutdownTimeout 30