Re: Help with Laserjets
On Mon, 13 Jan 1997, Brian Schramm wrote:
> Hi,
>
> I would like to connect my Linux machine to a HP Jetdirect card. I know
> it means setting up bootp and setting up the printercap files special.
> I just cannot find any info on how to do that.
>
> Any ideas?
The printing howto docs address this, but in a nutshell:
Most modern network printers have a native lpd such that you can
configure the printer's IP address, add an entry for it in your
host tables (i.e. /etc/hosts, DNS, NIS, etc) and add an entry for
it as a remote host with a bogus remote printer name. If you
plan on using a filering package, you should probably
"pre-filter" your print jobs by printing to a filtered queue and
having the filter forward the print job to another queue that
just throws the print job to the remote printer.
I have the following entries in my /etc/printcap file:
auto-lj|lp5|ljet4-a4-auto-mono|ljet4 auto mono:\
:lp=/dev/lp0:\
:sd=/var/spool/lpd/ljet4-a4-auto-mono:\
:lf=/var/spool/lpd/ljet4-a4-auto-mono/log:\
:af=/var/spool/lpd/ljet4-a4-auto-mono/acct:\
:if=/usr/lib/apsfilter/filter/aps-ljet4-a4-auto-mono:\
:mx#0:\
:sh:
rlp1|remote-ljet4|hplj4m-1|ljet4-a4-auto-mono|ljet4 auto mono:\
:lp=/dev/null:\
:sd=/var/spool/lpd/remote-ljet4:\
:rm=hplj4m-1:rp=raw:
where /usr/lib/apsfilter/filter/aps-ljet4-a4-auto-mono is the
filter provided by apsfilter with the following modifications:
REMOTE_PRINTER is set to "True"
the if clause that looks at REMOTE-PRINTER builds the PRINT_PS
command as PRINT_PS="$PRINT_PS | lpr -Premote-$PRINTER"
$PRINTER gets defined by splitting the called filtername ($0) on
the dashes and grabbing the first string. This makes this filter
genarally useful for remote printing.
Hope this helps. You should really read the howto docs though as
there is a lot of valuable info in there.
Richard G. Roberto
richr@bear.com
011-81-3-3437-7967 - Tokyo, Japan
--
*******************************************************************************
Bear Stearns is not responsible for any recommendation, solicitation, offer or
agreement or any information about any transaction, customer account or account
activity contained in this communication.
*******************************************************************************
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com
Reply to: