*BSD News Article 80382


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!cs.mu.OZ.AU!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!cancer.vividnet.com!hunter.premier.net!news.nl.innet.net!INnl.net!feed1.news.erols.com!news1.wtn.mci.net!newsfeed.internetmci.com!news.msfc.nasa.gov!elroy.jpl.nasa.gov!lll-winken.llnl.gov!taco.cc.ncsu.edu!rdkeys
From: rdkeys@unity.ncsu.edu (Bob Keys)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: How to set up lpr properly
Date: 9 Oct 1996 17:40:34 GMT
Organization: North Carolina State University
Lines: 48
Message-ID: <53go2i$d16@taco.cc.ncsu.edu>
NNTP-Posting-Host: cc05du.unity.ncsu.edu

I have set up the FreeBSD 2.1.5 stable system on a machine locally, and
have used the net install, and basically have it up and running, except
I can't get anything to print to a postscript printer on the standard
parallel printer port.  Since I am not a unix guru, this is a problem.
I know enough to get the system to install, but not enough to sysadmin
it very well.  But, we fools have to start somewhere......

How is the printer system properly set up, to, for example:

          cat filename.ps | lpr

   or     lpr filename.ps

   and get it to print.

I am close but no joy yet....(:+{{.....

1.  I uncommented /etc/printcap to set up the lp printer.  The default
    lp as came with the FreeBSD installation was used.  It was:

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

2.  I rebooted cold the machine.

3.  I created /var/spool/output/lpd directory manually because it was not
    there by default in installation --- why not?

4.  A 10 line groff file was used to generate a simple postscript
    printer file.  The identical file was used on dos troff to
    make a similar file.

    The FreeBSD and the dos files were printed fine on dos to the printer.

    The FreeBSD box file flushed both the dos and FreeBSD generated
    postscript files when sent to the printer (same printer).


Alas, something is still not right on the FreeBSD box, but almost.....

Thanks and pardon the fool's question, but I can't get the manpages or
the handbook or the faq to print otherwise.....(:+{{.....

Still learning.....

Bob Keys
rdkeys@unity.ncsu.edu