From owner-freebsd-questions@FreeBSD.ORG Thu Aug 22 20:39:41 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 0CECD59B for ; Thu, 22 Aug 2013 20:39:41 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B7993206E for ; Thu, 22 Aug 2013 20:39:40 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.7/8.14.7) with ESMTP id r7MKdW4L019830; Thu, 22 Aug 2013 14:39:32 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.7/8.14.7/Submit) with ESMTP id r7MKdW5S019827; Thu, 22 Aug 2013 14:39:32 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Thu, 22 Aug 2013 14:39:32 -0600 (MDT) From: Warren Block To: Juris Kaminskis Subject: Re: Setup HP Laserjet 1120m over network with LPD In-Reply-To: Message-ID: References: <20130820153321.c99e018a.freebsd@edvax.de> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) 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]); Thu, 22 Aug 2013 14:39:32 -0600 (MDT) Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Aug 2013 20:39:41 -0000 On Thu, 22 Aug 2013, Juris Kaminskis wrote: > finally my printer responds with this command: > > nc 192.168.1.105 9100 < output.xqx Okay, that's a good start. > but I have no idea how to get it running through the normal LPD spooling > system. output.xqx file I generate first with the foo2xqx-wrapper filter > and it accepts only postscript That is considered normal for Unix printers. If you want the complexity of a filter that autodetects input type, save adding that for later. > i tried this printcap entry: > > HP|lp|Printer:\ > :lp=9100@192.168.1.105:\ > :sh:\ > :mx#0:\ > :sd=/var/spool/hp:\ > :if=/usr/bin/foo2xqx-wrapper:\ > :lf=/var/log/lpd-errs: > > but in the Status file i have: waiting for 9100@192.168.1.105 to come up Do not use IP addresses. lpd really, really, *really* wants a resolvable hostname. Entering it in /etc/hosts is enough, then use that name above. > btw: gsed package was not mentioned as dependency for foo2xqx-wrapper in > the Installation Notes Depending on where those notes are, that should be mentioned to the author of the notes or the port maintainer.