*BSD News Article 37990


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msuinfo!uwm.edu!reuter.cse.ogi.edu!netnews.nwnet.net!ns1.nodak.edu!plains.NoDak.edu!tinguely
From: tinguely@plains.NoDak.edu (Mark Tinguely)
Subject: Re: setting up printer..
Sender: usenet@ns1.nodak.edu (Usenet login)
Message-ID: <CzF9qq.rJA@ns1.nodak.edu>
Date: Thu, 17 Nov 1994 17:25:37 GMT
References: <3a8e0j$ru@ucsbuxb.ucsb.edu>
Nntp-Posting-Host: plains.nodak.edu
Organization: North Dakota State University
Lines: 21

In article <3a8e0j$ru@ucsbuxb.ucsb.edu> loren@beauty.ucsb.edu (Loren Koss) writes:
>
>How do you print under FreeBSD?  I have a laserjet 4 sitting hooked up 
>and it is just collecting dust ($1400 worth of it actually!)..  Thanx for 
>any help..  I tried just redirecting to /dev/lpt0, but that didn't work 
>correctly.  lpr says that printer lp couldn't be found..

edit the file /etc/printcap. have it say something like:

lp|localp|local line printer:\
        :lp=/dev/lpt0:sd=/var/spool/printers/lpd:lf=/var/log/lpd-errs:\
        :af=/var/log/lp.acct:

make sure to make the directory /var/spool/printers/lpd and change ownership
and group of it to daemon.

lpr to print a file
lpq to list print jobs
lprm to remove jobs from the print queue.

--mark.