[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: apsfilter
Alex Lee wrote:
>
> ++++++++++++++++++++++++++++++++++++
>
> Alex,
>
> Thanks, but I am still having problems. Now I get no errors, and lpq
> will show my print job for a short time, then says there is nothing in
> the queue, but the printer never actually does anything!
>
> My /etc/printcap:
>
> lp|lj5gray;r=300x300;q=medium;c=mono;p=letter;m=auto:\
> :lp=/dev/lpt0:\
> :if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\
> :sd=/var/spool/lpd/lp:\
> :lf=/var/spool/lpd/lp/log:\
> :af=/var/spool/lpd/lp/acct:\
> :mx#0:\
> :sh:
>
> Permissions:
> # ls -ld /var/spool/lpd/lp
> drwxr-xr-x 2 daemon daemon 512 Jul 7 04:47 /var/spool/lpd/lp
>
> # ls -ld /usr/local/etc/apsfilter
> drwxr-xr-x 6 daemon daemon 512 Jul 7 04:46 /usr/local/etc/apsfilter
>
> ++++++++++++++++++++++++++++++++++++++++++++
>
> A "chmod 0771 /var/spool/lpd/lp" resulted in the following permission :-
>
> #ls -ld /var/spool/lpd/lp
> drwxrwx--x 2 root daemon 512 May 23 14:15 /var/spool/lpd/lp
>
> Owner rwx (read, write, execute)
> Group rwx (read, write, execute)
> Others --x (------, -------, execute)
>
> To my understanding the permission you assigned to /var/spool/lpd/lp
> directory is like:-
> Owner rwx (read, write, execute)
> Group r-x (read, ------, execute)
> Others r-x (read, ------, execute)
>
> Your daemon 'group' apparently does not have the 'write' permission on
> the /var/spool/lpd/lp directory. Perhaps this explains why there is
> nothing in the queue.
>
> Alex Lee
>
>
>
>
>
Alex,
I can dump paper to the printer all day, and apsfilter can print a test
page. I think the problem is in the interface between lpd and apsfilter.
It looks like I can get this thing working with a2ps and ghostscript,
both in the packages collection. I just need to figure out the printcap
entry to make it all work. If I understand, a2ps will convert anything
that gets sent to the print que to a ps file, which ghostscript will
then dutifully filter for my printer and dump out on paper. Argh!
Is this documented well somewhere for us OpenBSD folk? Anybody else
using a similar setup that would share scripts and printcap entries?
Thanks,
Lincoln
--
Lincoln Rutledge
Information Technology Manager
Fairfield County District Library
IT Dept request form:
http://fcd200.clc.lib.oh.us/techadmin/information_technology_maintenan.htm