From owner-freebsd-questions@freebsd.org Sun Sep 13 13:37:41 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 9AC3BA03CB5 for ; Sun, 13 Sep 2015 13:37:41 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 435331F97 for ; Sun, 13 Sep 2015 13:37:40 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.15.2/8.15.2) with ESMTPS id t8DDbSTr051102 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 13 Sep 2015 07:37:28 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.15.2/8.15.2/Submit) with ESMTP id t8DDbRL6051099; Sun, 13 Sep 2015 07:37:28 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Sun, 13 Sep 2015 07:37:27 -0600 (MDT) From: Warren Block To: reg@dwf.com cc: freebsd-questions@freebsd.org, Polytropon Subject: Re: Still having network/Postscript Printer problem In-Reply-To: <201509130653.t8D6rLr8006399@deneb.dwf.com> Message-ID: References: <201509130653.t8D6rLr8006399@deneb.dwf.com> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Sun, 13 Sep 2015 07:37:28 -0600 (MDT) 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 13:37:41 -0000 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. > 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 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. > if I take the 9100@ out of the printcap file, viz > > HP-DP:\ > :rm=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: > > I see for the lpr > > root@FreeBSD:/home/reg # lpr sum.ps > lpr: HPLJ4100: unknown printer > > so thats the same. > > I have tried about a thousand vaiations, anc always see > > root@FreeBSD:/home/reg # lpq > lpq: printer not found > > I must be doing something basic that is wrong, but I dont see ir. > Someone tell me what Im doing wrong, this can't be this hard. In an earlier post, we showed what was wrong with that earlier broken printcap. Did you not see that? lp:\ :lp=9100@HPLJ4100:\ :sh:\ :mx#0:\ :sd=/var/spool/lpd/lp:\ :lf=/var/log/lpd-errs: This is shown in the Handbook printing section: https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/printing-lpd.html