| Ariel V. Burbaickij on Sun, 3 Sep 2000 11:52:35 +0200 (CEST) |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
| Re: Printer just prints raw ASCII Postscript |
Andreas Klemm wrote: > > On Sat, Sep 02, 2000 at 11:12:51PM +0200, Ariel V. Burbaickij wrote: > > Andreas Klemm wrote: > > > On Sat, Sep 02, 2000 at 02:47:16PM +0200, Ariel V. Burbaickij wrote: > > Already done as well as commenting safe paper > > options back. > > What machine (OS) do you have ? The same as you do, FreeBSD4.1-STABLE. > > But does not :(( Needless to say I have tried > > to collect debug-information with root privilegies. > > You can't ;-) since the filter script is started by lpd. > Perhaps your directory permissions are wrong, so that lpd, > which invokes apsfilter, is unable to write to the logfile. Perhaps , take a look by yourself .Here you have it(because I do not know what are right permissions or expected permissions .) It is ls -al of /var/spool/lpd/printer1-bj200-a4-auto-default drwxr-xr-x 2 root daemon 512 Sep 1 19:07 . drwxr-xr-x 4 root daemon 512 Sep 1 19:07 .. -rw-r--r-- 1 root daemon 0 Sep 1 19:07 acct -r--r--r-- 1 root daemon 18507 Sep 3 11:29 apsfilterrc -rw-rw-r-- 1 root daemon 0 Sep 1 19:07 lock -rw-r--r-- 1 root daemon 0 Sep 1 19:07 log Besides , things are going from bad to worse now. On startup lpd reports error in printcap(generated by apsfilter) and exits gracefully.I allowed me to add /etc/princap to this message for your examination. I still hope that quick help on my my starup with apsfilter could be provided. Regards > Check the permissions of the spool directories (printcap sd=....) > > And please write a Cc: to the proper mailing-list .... > I'm not the only person who want to make "exclusive-support" since > I HAVE CURRENTLY LESS TIME. > > -- > Andreas Klemm Powered by FreeBSD SMP > Songs from our band >>64Bits<<............http://www.apsfilter.org/64bits.html > My homepage................................ http://people.FreeBSD.ORG/~andreas > Please note: Apsfilter got a NEW HOME................http://www.apsfilter.org/
# @(#)printcap 5.3 (Berkeley) 6/30/90
# $Id: printcap,v 1.9 1998/02/04 12:09:06 ache Exp $
#
# This enables a simple local "raw" printer, hooked up to the first
# parallel port. No kind of filtering is done, so everything you
# pass to the "lpr" command will be printed unmodified.
#
# Remember, for further print queues you're going to add, you have to
# chose different spool directories (the "sd" capability below),
# otherwise you will greatly confuse lpd.
#
# For some advanced printing, have a look at the "apsfilter" package.
# It plugs into the lpd system, allowing you to print a variety of
# different file types by converting everything to PostScript(tm)
# format. If you don't have a PostScript(tm) printer, don't panic,
# but do also install the "ghostscript" package.
#
# Do also refer to section 7 (Printing) of the handbook. A local copy
# can be found under /usr/share/doc/handbook/handbook.{html,latin1}.
#
# Banner pages are now suppressed by default. Remove the :sh:
# capability to turn them back on.
#
lp|local line printer:\
:sh:\
:lp=/dev/lpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:
#
# Sample remote printer. The physical printer is on machine "lphost".
# NB: you cannot perform any kind of local filtering directly. If
# you need local filters (e.g. LF -> CR-LF conversion for HP printers),
# create a filter script that recursively calls lpd with another -P
# argument after filtering.
#
#remote|sample remote printer:\
# :sh:\
# :rm=lphost:sd=/var/spool/output/lphost:lf=/var/log/lpd-errs:
#
# Simple Russian printer with hardware CP866 character set, output filter
# used for KOI8-R -> CP866 conversion
#
#lp|Russian local line printer:\
# :sh:of=/usr/libexec/lpr/ru/koi2alt:\
# :lp=/dev/lpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:
# LABEL apsfilter
# apsfilter setup Sun Sep 3 11:29:36 CEST 2000
#
# DON'T DELETE THIS:
# APS_BASEDIR:/usr/local/apsfilter
#
# APS1_BEGIN:printer1:bj200:a4:default
# - don't delete start label for apsfilter printer1
# - no other printer defines between BEGIN and END LABEL
#
lp|aps1-bj200-a4-auto-default|Printer1 bj200 a4 auto default:\
:lp=/dev/lpt0:\
:sd=/var/spool/lpd/printer1-bj200-a4-auto-default:\
:lf=/var/spool/lpd/printer1-bj200-a4-auto-default/log:\
:af=/var/spool/lpd/printer1-bj200-a4-auto-default/acct:\
:if=/usr/local/apsfilter/filter/aps1-bj200-a4-auto-default:\
:mx#0:\
:sh:
raw|aps2-bj200-a4-raw|Printer1 bj200 a4 raw:\
:lp=/dev/lpt0:\
:sd=/var/spool/lpd/printer1-bj200-a4-raw:\
:lf=/var/spool/lpd/printer1-bj200-a4-raw/log:\
:af=/var/spool/lpd/printer1-bj200-a4-raw/acct:\
:if=/usr/local/apsfilter/filter/aps2-bj200-a4-raw:\
:mx#0:\
:sf:\
:sh:
# APS1_END - don't delete this END LABEL for printer1