[cups.general] compression=gzip and RAW Print Queues (ipp)

Andrew Powell andy at advancethermal.com
Fri Sep 30 11:42:12 PDT 2011


Even better!

For Ubuntu Server 11.04 (using standard repository packages), I had to 
do the following to get this to work:

mkdir /etc/cups/interfaces
chmod 755 /etc/cups/interfaces
chown root:root /etc/cups/interfaces

Place the printer.sh file in /etc/cups/interfaces (contents as what 
Michael wrote).  Not sure if it was necessary, but I made it executable:

chmod 755 /etc/cups/interfaces/printer.sh

Needed to add an exception for AppArmor by adding the following line to 
/etc/apparmor.d/usr.sbin.cupsd (I placed it below the /etc/cups/** rw, line)

   /etc/cups/interfaces/* ixr,

Restarted AppArmor:

service apparmor restart

Added the interface script to the printer:

lpadmin -p jaxshop -i printer.sh

Viola!!

Thanks for everyone's help.

On 9/30/11 10:49 AM, Michael Sweet wrote:
> Hmm, try using a simple interface script with the queue to force decompression, e.g.:
>
>      "printer.sh"
>      #!/bin/sh
>      cat $6
>
> Then run:
>
>      lpadmin -p printer -i printer.sh
>
> On Sep 30, 2011, at 5:30 AM, Andrew Powell wrote:
>
>> Would there be a way to modify the PPD file so it would get decompressed
>> and sent to the printer without any further processing?
>>
>> If the printer was setup as a Generic Text-Only printer, what would need
>> to change in the /etc/cups/ppd/jaxshop.ppd file so no post-processing
>> would occur?  Could something like this even work?
>>
>> On 9/29/11 2:53 PM, Andy Powell wrote:
>>> How do I get CUPS to decompress compressed data for Raw printers?
>>>
>>> In the main office, I have ipp://remote.mydomain.com:631/printers/jaxshop?compression=gzip which is just a raw print queue.
>>>
>>> And in the remote office, I have socket://jaxshop.mydomain.com:9100
>>>
>>> When set to Raw, the compressed data is sent directly to the printer (it is not decompressed) and comes out as garbage.  If it is set to the printer definition, (e.g. HP LaserJet) it decompresses but this can't be done in some cases (e.g. HP/GL and Calcomp plotters).
>>>
>>> Anyone know of a fix/workaround?
>> _______________________________________________
>> cups mailing list
>> cups at easysw.com
>> http://lists.easysw.com/mailman/listinfo/cups
>
> __________________________________________________
> Michael Sweet, Senior Printing System Engineer, PWG Chair
>




More information about the cups mailing list