From owner-freebsd-questions@freebsd.org Fri Sep 11 14:12:01 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 BAA609CC458 for ; Fri, 11 Sep 2015 14:12:01 +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 7C0F11EF1 for ; Fri, 11 Sep 2015 14:12:01 +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 t8BEBlnU010169 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 11 Sep 2015 08:11:47 -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 t8BEBliA010156; Fri, 11 Sep 2015 08:11:47 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Fri, 11 Sep 2015 08:11:47 -0600 (MDT) From: Warren Block To: reg@dwf.com cc: freebsd-questions@freebsd.org Subject: Re: Problems setting up printer. In-Reply-To: <201509110349.t8B3nf1s025683@deneb.dwf.com> Message-ID: References: <201509110349.t8B3nf1s025683@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]); Fri, 11 Sep 2015 08:11:47 -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: Fri, 11 Sep 2015 14:12:01 -0000 On Thu, 10 Sep 2015, reg@dwf.com wrote: > > I've read and reread the printers section of the > Handbook, but haven't been able to put together > a printcap that will print. > > I have a Postscript HPLJ4100. > It exists with that name in the dns. > > Here is my attempt at a FreeBSD printcap: > > lp:\ > :/lp:=9100@HPLJ4100:\ > :sh:\ > :mx#0:\ > :sd=/var/spool/lpd/lp:\ > :lf=/var/log/lpd-errs:\ > :if=/usr/local/libexec/enscript: > > Since I will be ONLY passing it Postscript, it would > seem that the last line probably shouldn't be there, > but this was the last of a number of attempts. > > Could someone tell me just WHAT I should be saying? A LaserJet 4100 is a good printer and should not be difficult to get to print. Try the example in "Direct Printing" to make sure the network connection and DNS are working: https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/printing-direct.html As far as the printcap above, it is okay. If PostScript is the only print language, the last line and the backslash on the next-to-last line can be removed. Were the spool directories created as shown in Initial Setup? What file and command are being used to test? What happens, exactly? Are errors reported in /var/log/lpd-errs?