From owner-freebsd-questions@FreeBSD.ORG Mon Oct 15 03:16:30 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 551DB16A46D for ; Mon, 15 Oct 2007 03:16:30 +0000 (UTC) (envelope-from mapsware@prodigy.net.mx) Received: from nlpiport06.prodigy.net.mx (nlpiport06.prodigy.net.mx [148.235.52.43]) by mx1.freebsd.org (Postfix) with ESMTP id 1861D13C45A for ; Mon, 15 Oct 2007 03:16:29 +0000 (UTC) (envelope-from mapsware@prodigy.net.mx) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnA9AMd4Eke9pTgfRmdsb2JhbACHJIcYAQEBNwGRbw X-IronPort-AV: E=Sophos;i="4.21,275,1188795600"; d="scan'208";a="49511043" Received: from dsl-189-165-56-31.prod-infinitum.com.mx (HELO morena) ([189.165.56.31]) by nlpiport06.prodigy.net.mx with ESMTP; 14 Oct 2007 22:23:08 -0500 From: Martin Alejandro Paredes Sanchez To: freebsd-questions@freebsd.org Date: Sun, 14 Oct 2007 20:16:18 -0700 User-Agent: KMail/1.9.7 References: <20071014085536.B35972@wonkity.com> In-Reply-To: <20071014085536.B35972@wonkity.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200710142016.18374.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 03:16:30 -0000 El Dom 14 Oct 2007, Warren Block escribi=F3: > Create print queue dir: > > mkdir -p /var/spool/lpd/netlaser > chmod 770 /var/spool/lpd/netlaser chown daemon:daemon /var/spool/lpd/netlaser > > Make /etc/printcap entry with rm=3D and rp=3D : > > netlaser:\ > > :lp=3D:\ > :sh:\ > :mx#0:\ > :rm=3Dnetlaser:\ > :rp=3Draw:\ > :sd=3D/var/spool/lpd/netlaser:\ > :lf=3D/var/log/lpd-errs: :lf=3D/var/spool/lpd/netlaser/filter-errors: since you are not specifying a filter for this printer, the lf capability m= ay=20 not be necessary, but since LPD will launch a process to send the print job= =20 to the networked printer, and this process will have: stdin ---> to the print job stdout --> (I really don't know) stderr --> to the log file (lf capability) I recommend that you had a log for each printer defined, and=20 leave /var/log/lpd-errs for LPD errors > For extra points, add another printcap entry for lp: that will print > plain text. /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. > I recommend apsfilter, but don't only read the documentation, also read the= =20 code of the filter. maps