#151855 Problems with Samba and Ghostscript

Package:
magicfilter
Source:
magicfilter
Description:
automatic printer filter
Submitter:
Claus Fischer
Date:
2005-07-18 03:40:27 UTC
Severity:
normal
#151855#5
Date:
2002-07-03 23:08:15 UTC
From:
To:
When printing PostScript from Windows via a Samba connection
to printcap, I always get obnoxious header and trailer pages.

The problem is apparently related somehow to standard output
of ghostscript.

There is an article with a followup

http://www.linuxprinting.org/pipermail/general-list/2001q1/000275.html
http://www.linuxprinting.org/pipermail/general-list/2001q1/000283.html

that describes a fix which works for me.

That should be implemented in magicfilter at some time.

Thank you.

**************************************************

P.S.

:  1. Stop the running lpr:
:  #/etc/init.d/lpr stop  || /etc/init.d/lprng stop

The first should read /etc/init.d/lpd.

Claus

#151855#10
Date:
2002-12-03 22:52:03 UTC
From:
To:
Comments in the form %%[...]%% are *designed* to go the stderr of the
PostScript interpreter.

I had the above mentioned "solution" once in magicfilter, but it caused
more problems than it solved, namely stuck pages.

Thanks.

Cheers,
  David

#151855#15
Date:
2002-12-03 23:01:48 UTC
From:
To:
On Tue, Dec 03, 2002 at 11:52:03PM +0100, David Frey wrote:
: On Thu, Jul 04, 2002 at 01:08:15AM +0200, Claus Fischer wrote:
: > The problem is apparently related somehow to standard output
: > of ghostscript.
: >
: > There is an article with a followup
: >
: > http://www.linuxprinting.org/pipermail/general-list/2001q1/000275.html
: > http://www.linuxprinting.org/pipermail/general-list/2001q1/000283.html
:
: Comments in the form %%[...]%% are *designed* to go the stderr of the
: PostScript interpreter.
:
: I had the above mentioned "solution" once in magicfilter, but it caused
: more problems than it solved, namely stuck pages.

Well, it may be an improper solution, a 'quickbugfix' that is in
itself a bug. But it worked for me, and I sure was happy to have
found it.

I found it very annoying that the combination of samba and lpr
was practically unusable for me (each and every printout had
these annoying additional pages). So if you state the suggested
bugfix is not proper, I'll believe you, but something should
be done. I doubt that many of the samba/magicfilter/gs users
have the stamina to identify the problem by themselves; if they
are not given the support by the package, they'll once more
dismiss Linux as 'not working' or very poor.

[ I am consulting for some clients so I have some experience in
  the vast amount of setup work that is required to get a Linux
  box going; you practically have to learn configuration of all
  tools involved plus shell, perl, Unix daemons, etc. before
  you get results. For persons without extensive Unix training
  the task is almost hopeless. ]

:
: > P.S.
: >
: > :  1. Stop the running lpr:
: > :  #/etc/init.d/lpr stop  || /etc/init.d/lprng stop
: >
: > The first should read /etc/init.d/lpd.
:
: Thanks.
:
: Cheers,
:   David