Discussion:
What does "RAW" means for a queue?
Ciprian Marius Vizitiu
2007-08-20 10:09:52 UTC
Permalink
Hi listers

Can someone please give me a short explanation for what is "RAW" supposed to
mean when selecting a "Model/Driver" for a given queue? As opposed to say...
"Postscript" or "HP"?

I mean let's assume that I have CUPS running on a Linux box with some
Windows clients and that I chose RAW as the "Model/Driver"; and I do so
because I have the Windows driver do all the heavy lifting. Given that for
unknown reasons the Windows driver sends some sort of PostScript to the
printer (I would have expected it to be a binary blob), is CUPS supposed to
look into or care about what's been sent to the printer (since the queue is
set to be RAW)? Or should it just "pass the bucket"?

BTW, is this the right place to ask or should it be on cups-bugs?
Michael R Sweet
2007-08-20 16:27:53 UTC
Permalink
Post by Ciprian Marius Vizitiu
Hi listers
Can someone please give me a short explanation for what is "RAW" supposed to
mean when selecting a "Model/Driver" for a given queue? As opposed to say...
"Postscript" or "HP"?
Raw means unfiltered. The data is sent unchanged to the printer
directly.
Post by Ciprian Marius Vizitiu
...
BTW, is this the right place to ask or should it be on cups-bugs?
Yes, this is the right place to ask about usage questions - cups-bugs
is for bugs... :)
--
______________________________________________________________________
Michael R Sweet Senior Printing System Engineer
Ciprian Marius Vizitiu
2007-08-20 19:45:40 UTC
Permalink
Post by Ciprian Marius Vizitiu
Post by Ciprian Marius Vizitiu
Can someone please give me a short explanation for what is "RAW"
supposed to mean when selecting a "Model/Driver" for a
given queue? As opposed to say...
Post by Ciprian Marius Vizitiu
"Postscript" or "HP"?
Raw means unfiltered. The data is sent unchanged to the
printer directly.
Hi Michael,

Still I'm confused. My Windows driver outputs invalid PostScript... Only the
Gods in Redmond know why. Fact is, sending this to a CUPS RAW queue makes
CUPS choke badly... Sometimes only the first page comes out of the printer
in other situations no page at atll... Have to restart CUPS to get it back
on its feet. Feeding that PostScript directly to the printer works
perfectly. Doesn't this contradict what you just wrote? :-/ CUPS shouldn't
care at all about what's inside the blob since it's a RAW queue but somehow
it still does. Can I errr... "enforce" the queue to be RAW?


PS. Thanks for your time. :-)
Michael R Sweet
2007-08-20 20:01:14 UTC
Permalink
Post by Ciprian Marius Vizitiu
Post by Ciprian Marius Vizitiu
Post by Ciprian Marius Vizitiu
Can someone please give me a short explanation for what is "RAW"
supposed to mean when selecting a "Model/Driver" for a
given queue? As opposed to say...
Post by Ciprian Marius Vizitiu
"Postscript" or "HP"?
Raw means unfiltered. The data is sent unchanged to the
printer directly.
Hi Michael,
Still I'm confused. My Windows driver outputs invalid PostScript... Only the
Gods in Redmond know why. Fact is, sending this to a CUPS RAW queue makes
CUPS choke badly...
...
If the queue is really raw, then check the printers.conf file to make
sure you are not using a port monitor. Typically you might use a port
monitor to do TBCP-based binary printing, but for a raw queue it might
just ruin the data.

Other than that, raw means raw.
--
______________________________________________________________________
Michael R Sweet Senior Printing System Engineer
Kurt Pfeifle
2007-08-20 21:59:13 UTC
Permalink
Post by Ciprian Marius Vizitiu
Can someone please give me a short explanation for what is "RAW" supposed to
mean when selecting a "Model/Driver" for a given queue? As opposed to say...
"Postscript" or "HP"?
The contect of your question is not entirely clear. Are you asking from
the point of view of Windows client printing? Or from the point of view
of installing a printer into CUPS?

It is very similar for both, but there are slight differences.

A "raw" printqueue in CUPS is one that has *no* PPD assigned to it. A queue
without a driver, if you like.

Basically you say: "send all jobs to printer unchanged + unfiltered, when-
ever you receive them, from whichever client". (This assumes, the job is in
a file format that the target printer will be able to understand and process).

"Raw printing" from a Windows client does also mean "File is print-ready, do
not process any further".

However, Windows clients never have a queue without a driver, and cannot send
a job without some sort of driver interaction.

The Windows client queue (& driver) may be locally installed to the client,
or the queue may have been drawn via "point and print" from a Windows print
server (which may be a workstation sharing its printers -- or which even may
be a Samba/Unix/CUPS print server).

In the latter case (print server, but based on Windows), the driver is also
installed an the client -- but not fully executed. Basically it only serves
to show the printer driver GUI to the user to make his job selections. When
the user has done this, the job by default is sent off to the print server in
EMF (Enhanced MetaFile, the internal format of the Windows GDI subsystem); the
print server receives EMF and uses his driver to convert the job into the
final format (PostScript, PCL or what the case might be).

However, there is an option in the print dialog on the client to tell the
driver to send the file "RAW"; which tells the driver to execute locally
(on the client), and convert the EMF locally to the final print data format.

[In the case of Samba, this is the *only* option, and is automatically set up
internally -- because Samba-based print servers typically can not process and
convert EMF should they receive it].
Post by Ciprian Marius Vizitiu
I mean let's assume that I have CUPS running on a Linux box with some
Windows clients and that I chose RAW as the "Model/Driver"; and I do so
because I have the Windows driver do all the heavy lifting. Given that for
unknown reasons the Windows driver sends some sort of PostScript to the
printer
The only reason why "the Windows driver sends some sort of PostScript" is
when you install a PostScript driver. (Did you follow the Samba Howto
Collection procedures to install the driver on the Windows Clients? If so,

(a) did you use the "cupsaddsmb" method or

(b) did you install the native drivers into Samba using the "Add Printer
Wizard" on Windows, or

(c) did you install printqueue/driver locally on the Windows boxen? ["use
client driver = yes" ?]
Post by Ciprian Marius Vizitiu
(I would have expected it to be a binary blob), is CUPS supposed to
look into or care about what's been sent to the printer (since the queue is
set to be RAW)? Or should it just "pass the bucket"?
CUPS is always doing "auto-typing" of the job files (determine the MIME
type of the data) by default (also for Samba submitted jobs), unless it
sees the commandline option "-o raw".

You can see what file format CUPS auto-typed by looking at the error_log
messages (you may see it saying "application/octet-stream", which means
'this is an unknown binary format, and there is no CUPS filter for this,
and I'll only send that to the printer if you explicitely tell me so').

In recent Samba versions you can set "cups options = raw" in smb.conf,
which tells Samba to explicitely request raw printing from CUPS.

If CUPS auto-types a job as "application/octet-stream", it will not auto
matically "pass the bucket", unless...

(a) either the "-o raw" commandline parameter is seen (for example be-
cause of the "cups options = raw" in smb.conf), or

(b) application/octet-stream is generally enabled in the mime.types and
mime.convs files of CUPS


Sorry if this sounds confusing -- but printing *is* a complicated thing,
especially if Windows clients are involved.
--
Kurt Pfeifle
System & Network Printing Consultant ---- Linux/Unix/Windows/Samba/CUPS
Infotec Deutschland GmbH ..................... Hedelfinger Strasse 58
A RICOH Company ........................... D-70327 Stuttgart/Germany
Ciprian Marius Vizitiu
2007-08-21 09:19:50 UTC
Permalink
Oh Kurt, thanks a *LOT* for weighting in, I've been struggling with this
problem for... quite some time now. :-|
Post by Kurt Pfeifle
A "raw" printqueue in CUPS is one that has *no* PPD assigned
to it. A queue without a driver, if you like.
Basically you say: "send all jobs to printer unchanged +
unfiltered, when- ever you receive them, from whichever
client". (This assumes, the job is in a file format that the
target printer will be able to understand and process).
"Raw printing" from a Windows client does also mean "File is
print-ready, do not process any further".
Your explanation sounds *exactly* as I thought it should be, yet facts
don't...

Ok the story from the very beginning: I have a small network consisting of
XP WS using a Samba PDC and CUPS driving a bunch of printers; no
"WinPrinters" here all "100% Linux compatible" linuxprinting.org "certified
ware"; Samba 3.0.10 and CUPS 1.1.22. I could send the smb.conf and
cupsd.conf if you want to but it's kinda pointless because all setup was
done as per your very good printing how-to (after drawing you the diagrams
from the ASCII art for that how-to, time to make some good use of it, don't
you think?! ;-) ). Drivers for the printer(s) were installed on the Samba
server via the "add printer wizard" so first time a Windows box connects to
the printer share the drivers get installed "automagically" on the local
machine; since "root" has set up his printing preferences, miracle of modern
technology, all drivers installed have the default values set for duplex,
toner density, A4 and like. I chose the "smart Windows drivers - dumb CUPS"
version because the print drivers running on Windows gave me more options
(and is more "user friendliness") as compared to the CUPS's web page.
Consequently CUPS queues were set-up as RAW and I'm telling you, this setup
worked pretty well for more than a year up until (and including) CUPS
1.1.17. So I guess the config files should be OK?! :-o Oh and yes, I *DO*
have "cups options = raw" in smb.conf

OK, there was one "small problem" though but it's not CUPS related, it's
Samba. During the initial setup of the rig, for the Lexmarks T430 I had the
option of installing two type of drivers: PCL or PS. Of course I jumped into
PCL from the very beginning, but! If one installs a PCL printer driver in
the above setup (that is Windows XP Pro, all updates in place and a Samba
printer share, Samba acting as PDC) everything works well until you want to
change some of the printer settings... Any of them; actually it's not the
change it's pressing the "Apply" button on the driver's window. :-] The very
next moment you "Apply" the settings XP freezes for like 2 or 3 minutes...
When it comes back to life no settings have been applied. BTW, if someone
knows the magic incantation(s) for this problem please step up! After one
frustrating week of mangling permissions and smb.conf I called it a quit and
hesitantly changed to PS drivers so I can proceed with my installation. Well
it worked, drivers installed and allowed me to change settings, I could
set-up the whole thing the way I wanted, Windows PS drivers now outputting
some sort of PS through Samba and then to CUPS RAW and from there to
printer...

All went well until the next update after 1.1.17 (which was like Dec. 2005
if I remember well). After that date certain jobs submitted as before (I
haven't changed a thing!) will pass through Samba, make it to CUPS but then
vanish in a black hole; oh and CUPS will start using some 60% of the
server's CPU time, other jobs will start piling up... Sometimes the printer
will emit one page with:

ERROR: undefined
OFFENDING COMMAND: @JPL

STACK:

... Or something in the line of. I reverted to 1.1.17 for a while; Then
subsequent CUPS releases in the 1.1 series fixed the CPU usage but didn't
fix my problem. So here I am with a print server working in 3 cylinders,
every now and then having to restart CUPS...

About the problematic documents: the problem shows up in some PDFs never in
"text" prints or Microsoft Office generated dox. Chances are "graphics
intensive" HTML pages *when printed from Firefox* will also produce the
problem. Adding insult to injury: take the VERY same HTML page and print it
from Exploiter, works like a charm... makes no sense.
Post by Kurt Pfeifle
(Did you
follow the Samba Howto Collection procedures to install the
driver on the Windows Clients?
I did! And, as I explained above, I had no choice but to use the PS driver.

Maybe I should add some more details, someone might make good use of this.
It is my deep suspicion that using a PCL driver would fix the problem for
good! But then how to coerce Samba into cooperation? :-|

At least for those Lexmark printers (CUPS and Samba aside!) the PCL drivers
are clearly "smarter" than the PS ones. Simple example(s): one PDF (which
also produces the CUPS problem...) printed directly from XP to the
aforementioned Lexmark printer, via USB, has a slightly different appearance
"via PCL" as compared to "via PS"; fonts are slightly different... Oh, a PDF
printed via PS can "override" the page size but it won't do it via PCL... I
know it sounds silly but that's how it is. What do you mean "it's a feature,
it's not a bug!"? :-> Even more, this particular PDF comes out without the
letters "i" via PS but comes out correctly via PCL! I've opened a case with
Adobe and they said the PDF is "broken", something about the embedded fonts
and that Adobe can not be held responsible for... Right. If it's broken why
does it work via PCL? And why did it print very well via PS on CUPS
v1.1.17?! :-|
Post by Kurt Pfeifle
CUPS is always doing "auto-typing" of the job files
(determine the MIME type of the data) by default (also for
Samba submitted jobs), unless it sees the command line option "-o raw".
Critical question: Do I have to manually specify the option "-o raw" or does
Samba insert it once I have the "cups options = raw" in smb.conf?!
Post by Kurt Pfeifle
In recent Samba versions you can set "cups options = raw" in
smb.conf, which tells Samba to explicitely request raw
printing from CUPS.
Oh, kinda answers my question above, doesn't it?! :-(
Post by Kurt Pfeifle
If CUPS auto-types a job as "application/octet-stream", it
will not auto matically "pass the bucket", unless...
(a) either the "-o raw" commandline parameter is seen (for
example be-
cause of the "cups options = raw" in smb.conf), or
(b) application/octet-stream is generally enabled in the
mime.types and
mime.convs files of CUPS
... 've been here before. To be on the safe side I have both the raw Samba
conf option and application/octet-stream in mime.*! :-z Neither helps...

Question remains: Why would CUPS be affected by something it is NOT supposed
to look into?
Kurt Pfeifle
2007-08-21 13:50:47 UTC
Permalink
Post by Ciprian Marius Vizitiu
Oh Kurt, thanks a *LOT* for weighting in, I've been struggling with this
problem for... quite some time now. :-|
Sorry, today my answers will be rather short (and maybe incomplete)...
not so much time right now...
Post by Ciprian Marius Vizitiu
Post by Kurt Pfeifle
A "raw" printqueue in CUPS is one that has *no* PPD assigned
to it. A queue without a driver, if you like.
Basically you say: "send all jobs to printer unchanged +
unfiltered, when- ever you receive them, from whichever
client". (This assumes, the job is in a file format that the
target printer will be able to understand and process).
"Raw printing" from a Windows client does also mean "File is
print-ready, do not process any further".
Your explanation sounds *exactly* as I thought it should be, yet facts
don't...
Ok the story from the very beginning: I have a small network consisting of
XP WS using a Samba PDC and CUPS driving a bunch of printers; no
"WinPrinters" here all "100% Linux compatible" linuxprinting.org "certified
ware"; Samba 3.0.10 and CUPS 1.1.22.
Both version are rather old... (3.0.10 == December 2004; 1.1.22 == Oct 2004)
I personally haven't used them since quite some time.

Latest CUPS from the 1.1.x series is 1.1.23 (released Jan 2005). And of
course, we since had 1.2.0 to 1.2.12 as well as 1.3.0 ...

Latest Samba is 3.0.25c (released yesterday).

Have a look at http://www.cups.org/relnotes.php and search for keywords that
may be related to your problems (like "PDF" to see if there were fixes in
newer releases).

And if you search for "print" or "cups" in the Samba release notes (see
http://us1.samba.org/samba/history/samba-3.0.25.html as well as
http://us1.samba.org/samba/history/samba-3.0.25a.html as well as
http://us1.samba.org/samba/history/samba-3.0.25b.html as well as
http://us1.samba.org/samba/history/samba-3.0.25c.html) for all printing
related changes and fixes since 3.0.10).
Post by Ciprian Marius Vizitiu
I could send the smb.conf and
cupsd.conf if you want to but it's kinda pointless because all setup was
done as per your very good printing how-to (after drawing you the diagrams
from the ASCII art for that how-to, time to make some good use of it, don't
you think?! ;-) ). Drivers for the printer(s) were installed on the Samba
server via the "add printer wizard" so first time a Windows box connects to
the printer share the drivers get installed "automagically" on the local
machine; since "root" has set up his printing preferences, miracle of modern
technology, all drivers installed have the default values set for duplex,
toner density, A4 and like. I chose the "smart Windows drivers - dumb CUPS"
version because the print drivers running on Windows gave me more options
(and is more "user friendliness") as compared to the CUPS's web page.
Consequently CUPS queues were set-up as RAW and I'm telling you, this setup
worked pretty well for more than a year up until (and including) CUPS
1.1.17. So I guess the config files should be OK?! :-o Oh and yes, I *DO*
have "cups options = raw" in smb.conf
OK, there was one "small problem" though but it's not CUPS related, it's
Samba. During the initial setup of the rig, for the Lexmarks T430 I had the
option of installing two type of drivers: PCL or PS. Of course I jumped into
PCL from the very beginning, but! If one installs a PCL printer driver in
the above setup (that is Windows XP Pro, all updates in place and a Samba
printer share, Samba acting as PDC) everything works well until you want to
change some of the printer settings... Any of them; actually it's not the
change it's pressing the "Apply" button on the driver's window. :-] The very
next moment you "Apply" the settings XP freezes for like 2 or 3 minutes...
There were a few notorious PCL drivers (from HP as well as from Lexmark
and others) which caused this type of problems. Especially if the number
of "Dependent Files" for the driver was exceedingly large (I've seen insane
numbers like 70 or 80 .dlls or a single driver....).

This is *much* better now with newer Samba releases (but I'm not sure if
really *all* problems are fixed).
Post by Ciprian Marius Vizitiu
When it comes back to life no settings have been applied. BTW, if someone
knows the magic incantation(s) for this problem please step up!
The only advice I could give (from the distance) is this: testdrive it with
the newest Samba release (and use CUPS 1.1.23 or the latest 1.2.x) and see
if this problem has gone away....
Post by Ciprian Marius Vizitiu
After one
frustrating week of mangling permissions and smb.conf I called it a quit and
hesitantly changed to PS drivers so I can proceed with my installation. Well
it worked, drivers installed and allowed me to change settings, I could
set-up the whole thing the way I wanted, Windows PS drivers now outputting
some sort of PS through Samba and then to CUPS RAW and from there to
printer...
This can only work with CUPS raw printing, if the print device is PS-
capable...

(Some devices can take PCL as well as PostScript, but need to be set up
for auto-switching their PDL language).
Post by Ciprian Marius Vizitiu
All went well until the next update after 1.1.17 (which was like Dec. 2005
if I remember well). After that date certain jobs submitted as before (I
haven't changed a thing!) will pass through Samba, make it to CUPS but then
vanish in a black hole; oh and CUPS will start using some 60% of the
server's CPU time,
It would be interesting to see if it is cupsd itself, or a filter or a
backend process which consumes the CPU...
Post by Ciprian Marius Vizitiu
other jobs will start piling up... Sometimes the printer
ERROR: undefined
This may be caused by Ghostscript filter, when a PostScript file has a
PJL header prepended....

But it also means that the printqueue is *not* fed with "raw" job data
(there may be a non-PS printer in the backend?)...
Post by Ciprian Marius Vizitiu
... Or something in the line of. I reverted to 1.1.17 for a while; Then
subsequent CUPS releases in the 1.1 series fixed the CPU usage but didn't
fix my problem. So here I am with a print server working in 3 cylinders,
every now and then having to restart CUPS...
About the problematic documents: the problem shows up in some PDFs
I assume you're printing the PDFs from some version of Adobe Acrobat
(Reader)? Which version?

The Acrobat printing is somehow different from printing of Office files
(it provides its own PostScript driver, and its print dialog allows for
all kinds of additional tweaks).

Have you played with settings like "print as image" for example? Or
with settings that
Post by Ciprian Marius Vizitiu
never in
"text" prints or Microsoft Office generated dox. Chances are "graphics
intensive" HTML pages *when printed from Firefox* will also produce the
problem. Adding insult to injury: take the VERY same HTML page and print it
from Exploiter, works like a charm... makes no sense.
Which version of Firefox?

FF sometimes indeed does have problems creating a clean, valid PS file that
is processed without a problem by older versions of Ghostscript.

Firefox uses its internal PS-producing engine for print job creation, which
is different from what IE uses....

However, I've seen the same thing vice-versa: IE suffering print problems
with pages that printed alright from FF.
Post by Ciprian Marius Vizitiu
Post by Kurt Pfeifle
(Did you
follow the Samba Howto Collection procedures to install the
driver on the Windows Clients?
I did! And, as I explained above, I had no choice but to use the PS driver.
Maybe I should add some more details, someone might make good use of this.
It is my deep suspicion that using a PCL driver would fix the problem for
good! But then how to coerce Samba into cooperation? :-|
At least for those Lexmark printers (CUPS and Samba aside!) the PCL drivers
are clearly "smarter" than the PS ones. Simple example(s): one PDF (which
also produces the CUPS problem...) printed directly from XP to the
aforementioned Lexmark printer, via USB, has a slightly different appearance
"via PCL" as compared to "via PS"; fonts are slightly different...
I assume it is at least PCL 5?

PCL driver doesn't necessarily use the same fonts...
Post by Ciprian Marius Vizitiu
Oh, a PDF
printed via PS can "override" the page size but it won't do it via PCL...
Yeah, that's a feature of the individual drivers...
Post by Ciprian Marius Vizitiu
I
know it sounds silly but that's how it is. What do you mean "it's a feature,
it's not a bug!"? :-> Even more, this particular PDF comes out without the
letters "i" via PS but comes out correctly via PCL! I've opened a case with
Adobe and they said the PDF is "broken", something about the embedded fonts
and that Adobe can not be held responsible for...
Did you yourself check the PDF with some kind of "preflight" software?
Post by Ciprian Marius Vizitiu
Right. If it's broken why
does it work via PCL?
Probably, because the PCL driver generates pixelized images of the full pages
(or of the font's characters) and embeds this into the file...
Post by Ciprian Marius Vizitiu
And why did it print very well via PS on CUPS
v1.1.17?! :-|
You can still try to change the font settings in the Windows driver dialog
(there are options for TrueType fonts like "send as outline", "send as bit-
map" or "send as softfont")....
Post by Ciprian Marius Vizitiu
Post by Kurt Pfeifle
CUPS is always doing "auto-typing" of the job files
(determine the MIME type of the data) by default (also for
Samba submitted jobs), unless it sees the command line option "-o raw".
Critical question: Do I have to manually specify the option "-o raw" or does
Samba insert it once I have the "cups options = raw" in smb.conf?!
Post by Kurt Pfeifle
In recent Samba versions you can set "cups options = raw" in
smb.conf, which tells Samba to explicitely request raw
printing from CUPS.
Oh, kinda answers my question above, doesn't it?! :-(
Yes, in a way, but not completely.... :-)
Post by Ciprian Marius Vizitiu
Post by Kurt Pfeifle
If CUPS auto-types a job as "application/octet-stream", it
will not auto matically "pass the bucket", unless...
(a) either the "-o raw" commandline parameter is seen (for
example be-
cause of the "cups options = raw" in smb.conf), or
(b) application/octet-stream is generally enabled in the
mime.types and
mime.convs files of CUPS
I should *also* have hinted at the difference of the two things:

(a) will cause CUPS raw printing for *all* Samba-supplied job
files

(b) will cause CUPS raw printing only if auto-typing determined
'application/octet-stream' (and will apply the standard fil-
tering chain construction for all other mime types).
Post by Ciprian Marius Vizitiu
... 've been here before. To be on the safe side I have both the raw Samba
conf option and application/octet-stream in mime.*! :-z Neither helps...
Hmm... maybe a bug in Samba, where it does not really pass the "-o raw"
parameter to CUPS?

(I *seem* to remember speculations about that some long time ago, for
some $version of Samba, but can't remember details...)
Post by Ciprian Marius Vizitiu
Question remains: Why would CUPS be affected by something it is NOT supposed
to look into?
One last idea you could try:

(a) remove "printing = cups" and "printcap = cups" from smb.conf.
This will cause Samba to now require and use the "* command = ..."
set of options.

(b) insert "printing = bsd", and also define all the commands to be
used by Samba to pass the job to CUPS. For example:

print command = "lp -d %p -t %J -o raw %f; \
rm %s; \
echo $(date): Printed and deleted jobfile %s submitted by %U from %m >> /tmp/smbprint.log"


See 'man smb.conf' for details...

The trick here is to explicitely pass on "-o raw" in the print command
to see if this overrides or works around a potential bug in your Samba
version....
--
Kurt Pfeifle
System & Network Printing Consultant ---- Linux/Unix/Windows/Samba/CUPS
Infotec Deutschland GmbH ..................... Hedelfinger Strasse 58
A RICOH Company ........................... D-70327 Stuttgart/Germany
Helge Blischke
2007-08-21 14:39:14 UTC
Permalink
[...]

What I have done to settle similar issues (and to get rid
of the SAMBA stuff completely) is:
- Make ain .INF file for printer installation
- edit the printer's PPD compliant to ESP's CUPS6
addendum to the PSCRIPT5 driver, especially
replacing
*JCLToPSInterpreter: ""
by
*JCLToPSInterpreter: "%cupsJobTicket: raw"
- adding the CUPS6 stuff to this directory
- when installing the printer instance, pointing to
this directory as installation volume
etc.

Helge
--
Helge Blischke
Softwareentwicklung

H.Blischke-***@public.gmane.org
Ciprian Marius Vizitiu
2007-08-21 15:20:38 UTC
Permalink
Post by Kurt Pfeifle
(a) remove "printing = cups" and "printcap = cups" from smb.conf.
This will cause Samba to now require and use the "*
command = ..."
set of options.
(b) insert "printing = bsd", and also define all the commands to be
print command = "lp -d %p -t %J -o raw %f; \
rm %s; \
echo $(date): Printed and deleted
jobfile %s submitted by %U from %m >> /tmp/smbprint.log"
See 'man smb.conf' for details...
The trick here is to explicitely pass on "-o raw" in the
print command to see if this overrides or works around a
potential bug in your Samba version....
Good hint Kurt! Instead of removing I've simply added them on that specific
printer queue; I've also dropped the "rm %s" part so now I have the output
from Samba. Using the output from Samba I did several attempts with the lp
command, it's not Samba's fault on this particular one, looks like a CUPS
problem! I mean I can't see absolutely no reason for which the output of
Samba (which was coming from the Windows PS driver!) should not pass through
CUPS to the printer with the following command:

lp -d LXMRK2 -t Kagan -o raw /var/spool/lpd/LXMRK/smbprn.00003123.poiZZ

Yet 1.1.17 outpus it without any problem(s) but 1.1.22 doesn't.

Loading...