From owner-freebsd-questions@freebsd.org Sun Sep 13 16:59:49 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D5261A03478 for ; Sun, 13 Sep 2015 16:59:49 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 99A56190C for ; Sun, 13 Sep 2015 16:59:49 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de (port-92-195-125-111.dynamic.qsc.de [92.195.125.111]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id 1F254276C3; Sun, 13 Sep 2015 18:59:39 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id t8DGxdq6005022; Sun, 13 Sep 2015 18:59:39 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sun, 13 Sep 2015 18:59:39 +0200 From: Polytropon To: Warren Block Cc: reg@dwf.com, freebsd-questions@freebsd.org Subject: Re: Still having network/Postscript Printer problem Message-Id: <20150913185939.a98c58f5.freebsd@edvax.de> In-Reply-To: References: <201509130653.t8D6rLr8006399@deneb.dwf.com> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Sep 2015 16:59:49 -0000 On Sun, 13 Sep 2015 07:37:27 -0600 (MDT), Warren Block wrote: > On Sun, 13 Sep 2015, reg@dwf.com wrote: > > > I am having nothing but trouble in trying to get printing to work under > > FreeBSD with my HPLJ4100. The printer works find from linux, and I might > > just give up and use the 'cups' implemenetation under FreeBSD if I can't > > get lpd to work. > > > > Here is where I stand. > > > > I have the environment variabalee > > > > setenv PRINTER=HPLJ4100 > > This is not used by lpd at all, as far as I know. It's being used by lpr, lpq, lprm - which I consider part of lpd. :-) > > HP-DP:\ > > :rm=9100@HPLJ4100:\ > > :rp=raw:\ > > :sd=/var/spool/lpd/HP-DP:\ > > :lf=/var/spool/lpd/HP-DP/log:\ > > :af=/var/spool/lpd/HP-DP/acct:\ > > :mx#0:\ > > :sh: > > > > when I do a > > > > lpr sum.ps > > > > of a postscript file, I see > > > > root@FreeBSD:/home/reg # lpr sum.ps > > lpr: HPLJ4100: unknown printer > > That is because the printcap shown above gives the printer the name of > HP-DP. To use that, the printer name must be given to lpr: > > lpr -PHP-DP sum.ps ^^^^^ And _this_ is what $PRINTER can be used for. > However, I recommend giving the default printer the name "lp". That is > the default so that lpr can be used without specifying the printer name. > Printers can be given multiple names, if desired. And it makes dealing with the _one_ printer easier. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...