Raw data to Cups through Samba

pbeaty.buffalogames pbeaty at buffalogames.com
Tue Apr 6 12:40:02 PDT 2010


I'm trying to send some label (ZPL) data to a zebra printer through a ubuntu (9.10) system running Samba (2:3.4.0) and Cups (1.4.1).  It isn't working.

I have an older linux box that is working doing the same thing that I'd like to retire so I have a good reference for what should be happening.

I turned PreserveJobHistory on for both systems, and discovered that the new system isn't sending the same data to the printer.  On the old system, the file is about 1200 bytes of ZPL formatted data, and on the new system there's about 71 bytes, mostly garbage but with some of the label data there.  Both of these files were sent from the same system, just captured to different unix boxes.

I was hoping someone out there knows a quick fix for this.  I really hate it when upgrades don't work as well as the old versions.

In my Samba config, I have the following options:
printing = CUPS
cups options = raw
printcap name = CUPS

In the cups config, I have the printer set up as a raw printer / queue.

I've uncommented the line in /etc/cups/mime.types which reads: application/octet-stream.
Also uncommented the line in /etc/cups/mime.convs which reads: application/octet-stream application/vnd.cups-raw 0 -

I figure it's either a cups or a samba bug, but I'm not sure how to intercept the job before samba gives it to cups...

Thanks in advance,

Pete





More information about the cups-devel mailing list