On Fri, Jun 06, 2008 at 05:39:26PM -0400, Woodchuck wrote:
> On Fri, 6 Jun 2008, Michael wrote:
> 
> > I just saw that I didn't make myself totally clear in original post:(
> > I'm using mutt for email on this machine.
> > I just tried installing muttprint, but apparently uses "make" from linux? 
> > It wouldn't build for me because of the -C switch for langinfo. 
> 
> If it wants a SYS-V style make (Linux), use gmake from ports.
> 

ok. I'll do that if needed, but wasn't sure if it would conflict with make. 
Thanks.

> > Apsfilter printed out a nice test page, but so far, that's it. Won't print 
> > a file or email with mutt.
> 
> Try this for unequivocal testing:
> 
>       df | lpr
> 
>       cat somefile.ps | lpr
> 

Just 2 lines of gibberish ( k, mm, k, i, ii, etc)

> Become familiar with lpq, lpr, lpc, lpd from the man 1 and 8 pages.
> lpc and lpq will usually tell the tale.
> 

I've read them several times. Guess I'm man pages "comprehension challenged" ;)

> ****>>> Check that lpd has been started.  Set lpd_flags="" in /etc/rc.conf
> 

yep, have it as lpd_flags"-L" for debugging.

> Post your /etc/printcap file.  This is really necessary to attack
> a printer problem.
>       

This is printcap before and after installing apsfilter:

#       $OpenBSD: printcap,v 1.4 2003/03/28 21:32:30 jmc Exp $

lp|local line printer:\
        :lp=/dev/lpt0:sd=/var/spool/output:lf=/var/log/lpd-errs:

#rp|remote line printer:\
#       :lp=:rm=printhost:rp=lp:sd=/var/spool/output:lf=/var/log/lpd-errs:



#       $OpenBSD: printcap,v 1.4 2003/03/28 21:32:30 jmc Exp $

lp|local line printer:\
        :lp=/dev/lpt0:sd=/var/spool/output:lf=/var/log/lpd-errs:

#rp|remote line printer:\
#       :lp=:rm=printhost:rp=lp:sd=/var/spool/output:lf=/var/log/lpd-errs:
# APS1_BEGIN:printer1
# - don't delete start label for apsfilter printer1
# - no other printer defines between BEGIN and END LABEL
dj870|cdj850;r=300x300;q=high;c=full;p=letter;m=auto:\
    :lp=/dev/lpt0:\
    :if=/etc/apsfilter/basedir/bin/apsfilter:\
    :sd=/var/spool/lpd/dj870:\
    :lf=/var/spool/lpd/dj870/log:\
    :af=/var/spool/lpd/dj870/acct:\
    :mx#0:\
    :sh:
# APS1_END - don't delete this


> > I only have 6 gig for 4.3 on this computer, so was hoping not to install a 
> > bunch of extra programs, but may have to. I'm just trying to print a few 
> > files per week.
> 
> No, you shouldn't have to.  Lpd and friends have run on Unix since
> the days when a 250 MB disk was HUGE and 4MB memory was AMPLE.  They
> have not changed noticeably since those days.  Almost no extra
> software should be needed for text files.
> 

That's what I was hoping, but couldn't get mutt to print anything. The DJ870Cxi 
is pcl v3.
That's why I finally asked for help, after reading man pages for lpd, lpr, lpc, 
afterboot.
I'm probably making something simple into something complex.

> I don't want to contradict earlier posters, but are there *really*
> printers so brain-damaged that they can't print plain text?  I
> exclude from consideration (and so should everyone) so-called
> Win-printers, but it was my impression that those abominations had
> all been kicked to the curb long ago.
> 

The printer works great with cups and linux and probably MS stuff. I was just 
wanting to keep it simple for printing mutt email when needed.

> You also have devices, /dev/lpa[0-2] and /dev/lpt[0-2].  These drive
> the parallel ports.  If your printer uses a parallel port, (increasingly
> rare), then    "cat filename.txt > /dev/lp[ta][0-2] (whatever is
> appropriate, see man lpt) should cause the printer to at least twitch
> a little.  If the printer is on a serial port, then the device is
> /dev/tty{somtething}, probably /dev/tty00 or 01.
> 

Yes, that's what I had/have in my printcap

> Dave

Hope the info helps. Thanks for your help/pointers.

Mike

> -- 
>                The future isn't what it used to be.
>                              -- G'kar
> _______________________________________________
> Openbsd-newbies mailing list
> [email protected]
> http://mailman.theapt.org/listinfo/openbsd-newbies
_______________________________________________
Openbsd-newbies mailing list
[email protected]
http://mailman.theapt.org/listinfo/openbsd-newbies

Reply via email to