[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: remote printing under OpenBSD
On Mon, Nov 06, 2000 at 09:34:03AM -0500, Andrew Falanga wrote:
> Ok,
>
> I have a book entitled Essential System Administration, O'Reilly
> & Assc. 2nd Edition. (It's probably out of date now.) Anyway, this
> book describes configuration of the /etc/printcap file for remote
> printers. However, it doesn't say anything about proper setup for an
> HP JetDirect card. Last week, I rev'd up the firware on my HP JetDirect
> card to support manual config of IP. I've configured IP and now I want
> to make my OpenBSD boxes send print job's there.
>
> I was doing ok with the printcap file until it mentioned and entry
> for the port number on the remote host. Obviously, the printer isn't
> running any OS so there is no port. Does anyone have any experience
> with Jet Direct and OpenBSD? Can anyone steer me in the right
> directions?
You can leave it out. HP Jet direct cards use port 515 by default, which
is also what the lp daemon uses as well.
Here is a simple printcap I use:
# $OpenBSD: printcap,v 1.2 1996/05/26 10:25:26 deraadt Exp $
# printer IP name is gump, use rp=text for non postscript output
lp|halebopp:\
:sd=/var/spool/lpd/lp:\
:mx#0:\
:sh=true:\
:rm=gump:\
:rp=text:\
:if=/var/spool/lpd/lp/filter:
# to print postscript use rp=raw
lpps|hale:\
:sd=/var/spool/lpd/lpps:\
:mx#0:\
:sh=true:\
:rm=gump:\
:rp=raw:\
:if=/var/spool/lpd/lp/filter:
/var/spool/lpd/lp/filter is an empty file for me right now.
in actual usage, it is 'lpr -Plpps file.ps' to print a postscript file
printing from netscape, just specify lpr -Plpps in the print command box
to eliminate the extra page printed after each print job, add the -h
command eg. lpr -h -Plpps
J.D. Carlson, Univ of Colo Health Sciences Ctr