John Mann's Weblog (on sng)
 

String around my finger
A 'blog to remember things I found.
Tie a string around your finger
My Home Page
I work for NIS ITS Monash University Australia.

Index

Flavours

  • index
  • circa 1993
  • RSS
  • Links
    These are a few of my favourite links.

  • Home Page
  • Live weblog
  • Static weblog
  • raelity bytes ;-)
  • Slashdot
  • Subscribe
    Subscribe to a syndicated feed of my weblog, brought to you by the wonders of RSS.


    blosxom

    GeoURL

    IP Geotargeting
    Visit eBay

    Click to call me FWD# 61159

       
    Wed, 08 Dec 2004

    Windows to CUPS 2

    Even after following previous instructions, I was having problems.

    After a reboot, or a cups upgrade, printing from Windows would stop working! The failure was silent from the Windows client point of view - print job just disappears!

    There is a message in /var/log/cups/error_log, e.g.
    E [05/Dec/2004:21:12:36 +1100] print_job: Unsupported format 'application/octet-stream'!
    I [05/Dec/2004:21:12:36 +1100] Hint: Do you have the raw file printing rules enabled?
    
    The following line from /etc/cups/mime.types was being commented out:
    application/octet-stream
    
    Found offending code! "/etc/init.d/cups start" calls /usr/sbin/printconf-backend, which imports /usr/share/printconf/util/backend.py which contains:
    def adjust_mime_types (allow_octet_stream):
        """Set or unset 'application/octet-stream' in the mime.types file.
        It needs to be set if there are any raw queues."""
    

    The critical part is that it unsets 'application/octet-stream' if there are no raw queues. So, define a raw queues, even if you never explicitly use it.

    [ /networks | # ]