[Pkg-cups-devel] Bug#187011: cupsys: Defaultprinter doesn't propagate over network

Harald Thingelstad harald at fair.no
Fri Aug 5 15:07:22 UTC 2005


Package: cupsys
Version: 1.1.23-10
Followup-For: Bug #187011



-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686
Locale: LANG=no_NO, LC_CTYPE=no_NO (charmap=ISO-8859-1)

Versions of packages cupsys depends on:
ii  adduser                     3.63         Add and remove users and
groups
ii  debconf                     1.4.30.13    Debian configuration
management sy
ii  libc6                       2.3.2.ds1-22 GNU C Library: Shared
libraries an
ii  libcupsimage2               1.1.23-10    Common UNIX Printing
System(tm) - 
ii  libcupsys2-gnutls10         1.1.23-10    Common UNIX Printing
System(tm) - 
ii  libgnutls11                 1.0.16-13.1  GNU TLS library - runtime
library
ii  libpam0g                    0.76-22      Pluggable Authentication
Modules l
ii  libpaper1                   1.1.14-3     Library for handling paper
charact
ii  libslp1                     1.0.11a-2    OpenSLP libraries
ii  patch                       2.5.9-2      Apply a diff file to an
original
ii  perl-modules                5.8.4-8      Core Perl modules
ii  xpdf-utils                  3.00-13      Portable Document Format
(PDF) sui
ii  zlib1g                      1:1.2.2-4    compression library -
runtime

-- debconf information:
  cupsys/raw-print: true
  cupsys/backend: ipp, lpd, parallel, socket, usb

Even if you may be able to circumvent this problem, it is a major
usability issue.

The printers 'FairFast' and 'FairColor' are set up in cups on a central
server. The printers.conf file is:

# Printer configuration file for CUPS v1.1.23
# Written by cupsd on Fri 05 Aug 2005 03:42:40 PM CEST
<Printer FairColor>
Info HP ColorLaserJet 4500N
Location Kopirom
DeviceURI socket://printer01
State Idle
Accepting No
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>
<DefaultPrinter FairFast>
Info HP Laserjet 8100DN
Location Kopirom
DeviceURI socket://printer00
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>

The default printer on the server is, of course, 'FairFast'.
But on each workstation (each with their own local cups server), default
printer is 'FairColor'
Situation is the same if you let the printers switch places:

# Printer configuration file for CUPS v1.1.23
# Written by cupsd on Fri 05 Aug 2005 03:42:40 PM CEST
<DefaultPrinter FairFast>
Info HP Laserjet 8100DN
Location Kopirom
DeviceURI socket://printer00
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>
<Printer FairColor>
Info HP ColorLaserJet 4500N
Location Kopirom
DeviceURI socket://printer01
State Idle
Accepting No
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>

A fix I found to this problem is to prepend the printer names with '0'
and
'1':

# Printer configuration file for CUPS v1.1.23
# Written by cupsd on Fri 05 Aug 2005 03:42:40 PM CEST
<DefaultPrinter 0FairFast>
Info HP Laserjet 8100DN
Location Kopirom
DeviceURI socket://printer00
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>
<Printer 1FairColor>
Info HP ColorLaserJet 4500N
Location Kopirom
DeviceURI socket://printer01
State Idle
Accepting No
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>

which makes '0FairFast' the default printer.
Default printer for network clients is the first in an alphabetically
sorted list!

The cups system should export and use the default printer in a network
automatically. This is the expected behaviour, and administrators should
not have to look up in a bug database to find the fix.

So please fix.






More information about the Pkg-cups-devel mailing list