Subject: Re: Printing question
To: J. Frank Cortes <frankyc@attglobal.net>
From: Greg A. Woods <woods@weird.com>
List: port-sparc
Date: 08/28/2001 14:22:34
[ On Tuesday, August 28, 2001 at 14:05:16 (-0400), J. Frank Cortes wrote: ]
> Subject: Printing question
>
> How do you setup printing under NetBDS so that you can print to a printer
> on a network with an IP Address. I have a Laserjet 4 with an ip of
> 192.168.1.220. How would I go about getting my Sparc Classioc to print to
> that printer. I have looked around quite a bit for how to do it, but I can
> not find anything that makes sense or is understandable by me. I am running
> version 1.5 of NetBSD.
First give your printer a hostname (either in your local DNS, or in
/etc/hosts, etc.).
Then add these lines to /etc/printcap and uncomment one or more of these
entries and edit as desired (see "man printcap" for the details). Add
the name "lp" to the printer definition you want to be the default for
"lpr".
# Typical remote printer entry.
#
#remote|Remote Line Printer:\
# :sh:\
# :rm=remote_machine_hostname:\
# :rp=remote_queue_name:\
# :sd=/var/spool/output/remote:\
# :lf=/var/log/lpd-errs:
# Typical remote PostScript printer entry.
#
#psrem|Remote PostScript Printer:\
# :rm=remote_machine_hostname:\
# :rp=remote_queue_name:\
# :sd=/var/spool/output/psrem:\
# :mx#0:sf:sh:sb:\
# :lf=/var/log/lpd-errs:
Create the appropriate /var/spool/output directory(ies) and make them
be owned by daemon:daemon (i.e. "chown daemon:daemon /var/spool/output/*").
--
Greg A. Woods
+1 416 218-0098 VE3TCP <gwoods@acm.org> <woods@robohack.ca>
Planix, Inc. <woods@planix.com>; Secrets of the Weird <woods@weird.com>