Subject: Re: coping with funky remote printers
To: Steven M. Bellovin <smb@cs.columbia.edu>
From: Luke Mewburn <lukem@NetBSD.org>
List: netbsd-users
Date: 01/02/2005 01:37:43
--+HP7ph2BbKc20aGI
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Dec 31, 2004 at 05:22:46PM -0500, Steven M. Bellovin wrote:
  | I have a Brother 5150D printer that is going to serve assorted NetBSD=
=20
  | boxes.  The question is how best to use it.
  |=20
  | Currently, I've connected its parallel input jack to the print server=
=20
  | built in to an SMC 7004ABR NAT box.  That usually works...  However,=20
  | NetBSD's lpd doesn't honor if=3D filtering for remote printers, though =
I=20
  | understand that FreeBSD's does.  I'd like to use magicfilter or=20
  | equivalent.  (apsfilter seems to have a hack-around way to do this, but=
=20
  | I haven't quite gotten it working yet.)

You can work around this by designating one of your NetBSD hosts as the
"printserver" and using a "direct" TCP/IP port (i.e, non-lpd-emulation)
on the SMC -- if it supports such a feature.

For example, my JetDirect enabled LaserJet 4M+ is "lj4mp" (which
supports "direct" printing to port 9100) and my main server is "argo",
and all of my NetBSD systems (including argo) share the following
printcap entry:

	lj4mp|lp|lj4|lj4m|HP LaserJet 4M plus:\
		:rm=3Dargo:\
		:lp=3D9100@lj4mp:\
		:sd=3D/var/spool/output/lj4mp:\
		:lf=3D/var/spool/output/lj4mp/log:\
		:if=3D/usr/pkg/libexec/magicfilter/ljet4m-filter:\
		:mx#0:sh:

(The crucial entries are the rm & lp entries, and the if entry).


I hope that's useful.

Luke.

--+HP7ph2BbKc20aGI
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (NetBSD)

iD8DBQFB1rW3pBhtmn8zJHIRAqdiAJ0f2Gep7ujqcNBV1MT3MqGaS9dOLwCgtMzo
ReudzPlhSGiPfoz9B85dt7c=
=iKsO
-----END PGP SIGNATURE-----

--+HP7ph2BbKc20aGI--