Subject: Re: apsfilter printcap file problems
To: Steve O'Hara-Smith <steve@sohara.org>
From: Alasdair <alasdair@iprimus.com.au>
List: pkgsrc-users
Date: 03/05/2007 22:35:54
On Sun, Mar 04, 2007 at 06:19:26PM +0000, Steve O'Hara-Smith wrote:
> On Sun, 04 Mar 2007 18:07:10 +0100
> Ulrich Habel <uli@habel.name> wrote:
>
> > On Mo, 2007-03-05 at 00:34 +1100, Alasdair wrote:
> > > Hi,
> > >
> > > I have installed apsfilter. Pretty much as suggested by this page.
> > >
> > > http://www.onlamp.com/pub/a/bsd/2003/11/06/Big_Scary_Daemons.html
> > >
> > > Everything went ok, I managed to print a test page ok. However printing
> > > from any programme I get the following error
> > >
> > > lpr: lp: unknown printer
>
> You really should have got changes in /etc/printcap, it's worth
> trying going through the /usr/pkg/share/apsfilter/SETUP again and seeing if
> you missed a step - like perhaps not being root. Failing that the section
> it should add looks a bit like this
>
> Adjust the driver name, device node and perhaps some of the
> parameters on the first non comment line to suit your setup.
>
> # APS1_BEGIN:printer1
> # - don't delete start label for apsfilter printer1
> # - no other printer defines between BEGIN and END LABEL
> lp|ijs/DESKJET_970;r=300x300;q=medium;c=full;p=a4;m=auto:\
> :lp=/dev/ulpt0:\
> :if=/usr/pkg/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:
> # APS1_END - don't delete this
>
>
> > Funny :) I ran into the same problems. Make sure that your programs
> > uses /usr/pkg/bin/lpr and not /usr/bin which is first in the path. If
> > you try to track it down - just move the /usr/bin/lpr out of the way and
> > try it again.
>
> There will only be a /usr/pkg/bin/lpr if you are using cups or some
> similar lpr replacement. With apsfilter the base system lpr should be fine.
>
> --
> C:>WIN | Directable Mirror Arrays
> The computer obeys and wins. | A better way to focus the sun
> You lose and Bill collects. | licences available see
> | http://www.sohara.org/
Hi,
I tried again and success this time. It wasn't anything to do with not being su'd to root, I did that all the other times. The only thing that I can think was differently was that when SETUP advises to use the command
lpc restart all
to add the new printer, this time I didn't. I rebooted NetBSD instead (the appropriate line was already in rc.conf) and this time it worked just fine.
Sorry I can't offer any great insight as to why this may have worked this time.I don't see why that command should cause any problems.
Thanks for your help,
regards,
Alasdair