From owner-freebsd-questions@FreeBSD.ORG Mon Oct 15 04:22:19 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A9A2216A418 for ; Mon, 15 Oct 2007 04:22:19 +0000 (UTC) (envelope-from mapsware@prodigy.net.mx) Received: from nlpiport09.prodigy.net.mx (nlpiport09.prodigy.net.mx [148.235.52.30]) by mx1.freebsd.org (Postfix) with ESMTP id 6DF2213C48E for ; Mon, 15 Oct 2007 04:22:18 +0000 (UTC) (envelope-from mapsware@prodigy.net.mx) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnA9AAOIEke9pTgfRmdsb2JhbACHJIcYAQEBNwGBNJBC X-IronPort-AV: E=Sophos;i="4.21,275,1188795600"; d="scan'208";a="51042298" Received: from dsl-189-165-56-31.prod-infinitum.com.mx (HELO morena) ([189.165.56.31]) by nlpiport09.prodigy.net.mx with ESMTP; 14 Oct 2007 23:29:16 -0500 From: Martin Alejandro Paredes Sanchez To: freebsd-questions@freebsd.org Date: Sun, 14 Oct 2007 21:22:16 -0700 User-Agent: KMail/1.9.7 References: <20071014085536.B35972@wonkity.com> <20071014152136.L27592@tripel.monochrome.org> In-Reply-To: <20071014152136.L27592@tripel.monochrome.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200710142122.17055.mapsware@prodigy.net.mx> Subject: Re: How to set up a network-attached printer X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Oct 2007 04:22:19 -0000 El Dom 14 Oct 2007, Chris Hill escribi=F3: > On Sun, 14 Oct 2007, Warren Block wrote: > > For extra points, add another printcap entry for lp: that will print > > plain text. > > I did something essentially identical to what Warren outlined, and it's > worked fine for many years now, since long before I'd ever heard of > CUPS. Here's the printcap entry: > > # HP color laser > lp|snow|snowball|lj|ps|HP ColorLaserJet 4550N:\ > > :sh:\ > :sd=3D/var/spool/output/lpd:\ > :mx#0:\ > :lp=3D:rm=3Dsnowball:rp=3D"auto": > > By using various names separated by pipe symbols, they are all > equivalent. Since one of them is lp, you can just send text to the > printer and it works, e.g. > > $ lpr textfile A name of lp don't make a printer to print text files, it just save you to= =20 specify the printer (the -P option of lpr) > > I think that "lp" being the first entry makes it lpr's default; not > positive about that. It is not necessary be the first alias, it can be in any position, in my ca= se=20 I have: stylus-c65|lp|Epson Stylus C65:\ > > > /usr/ports/print/enscript* is nice for that, or lots of people use > > /usr/ports/print/apsfilter so they can send about anything to the > > printer and let it do the conversion. > > The printer should already know how to print text. Just send it via lpr; > no additional software needed. Not all the printer know how to print text, but if the Samsung ML-2571N=20 doesn't print text, I would use apsfilter. I know that all HP LaserJet support PCL and text, some models also support= =20 PostScript, I see you use rp=3D"auto" for your HP LaserJet 4550N, I had onl= y=20 use rp=3Draw and I also know that can be rp=3Dtext (to convert CR -> CRLF) = but I=20 never used. maps