Michael Loßin on Tue, 5 Mar 2002 09:39:53 +0100 (CET)(envelope-from owner-apsfilter-help@apsfilter.org)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: No config files created by SETUP


On 04-Mar-02 Stephan Windmüller wrote:
> Setting up apsfilter does not work with the debian packages so I
> installed the newest sources. All works fine, test-page printed,
> /etc/printcap is created:
> 
>| lp|Generic dot-matrix printer entry:\
>|         :lp=/dev/lp0:\
>|         :sd=/var/spool/lpd/lp:\
>|         :af=/var/log/lp-acct:\
>|         :lf=/var/log/lp-errs:\
>|         :pl#66:\
>|         :pw#80:\
>|         :pc#150:\
>|         :mx#0:\
>|         :sh:

I don't know who or what produced this entry (it was
probably there from the beginning), but it's definitely
not from apsfilter's SETUP.

> But where is apsfilter in this?
> I added the line
> 
>|         :if=/etc/apsfilter/basedir/bin/apsfilter:\
> 
> and restarted lpd.

This won't work as expected. Better remove /etc/printcap
completely and start SETUP again.

> Then apsfilter wants the file /etc/apsfilter/log/apsfilterrc
> which is not there. Copying and modifying
> /etc/apsfilter/apsfilterrc was my next step. All activated options in
> this file:
> 
> PRINTER=cdj970
> PAPERSIZE=a4
> METHOD=auto
> QUALITY=medium
> COLOR=gray

These are basically the ones that get created during SETUP.

> At the moment printing web-pages does not work, error-message from
> /var/log/lp-errs is:
> 
>| GNU Ghostscript 6.51: Unrecoverable error, exit code 1
>| sed: couldn't write 1 item to {standard output}: Broken pipe
> 
> PostScript-Files given with 'lpr -P lp <file>' are printed,
> but scaled wrong.

Your spooler environment is rather messed up. Better remove
/etc/printcap and /etc/apsfilter and start again with SETUP.

The people who put that "generic" printer entry in printcap
don't really know what they're doing and cause more harm than
good.


HTH
Michael