From owner-freebsd-questions@freebsd.org Sun Jul 26 16:22:51 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 A91879A8ED4 for ; Sun, 26 Jul 2015 16:22:51 +0000 (UTC) (envelope-from bah@bananmonarki.se) Received: from feeder.usenet4all.se (1-1-1-38a.far.sth.bostream.se [82.182.32.53]) (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 2682F1BF for ; Sun, 26 Jul 2015 16:22:49 +0000 (UTC) (envelope-from bah@bananmonarki.se) Received: from testbox.news4all.se (testbox.usenet4all.se [10.0.0.3]) by feeder.usenet4all.se (8.13.1/8.13.1) with ESMTP id t6QGMin9004532; Sun, 26 Jul 2015 18:22:44 +0200 (CEST) (envelope-from bah@bananmonarki.se) Message-ID: <55B5095F.7040403@bananmonarki.se> Date: Sun, 26 Jul 2015 18:22:55 +0200 From: Bernt Hansson User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 CC: Thomas Mueller , freebsd-questions@freebsd.org Subject: Re: Ulpt problems. References: <55B0BE81.70208@bananmonarki.se> <884706.24465.bm@smtp116.sbc.mail.ne1.yahoo.com> <55B1A2D3.9040707@bananmonarki.se> <55B217F6.1000603@bananmonarki.se> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed 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, 26 Jul 2015 16:22:51 -0000 On 2015-07-26 17:20, Warren Block wrote: > On Fri, 24 Jul 2015, Bernt Hansson wrote: > >> On 2015-07-24 05:37, Warren Block wrote: >>> On Fri, 24 Jul 2015, Bernt Hansson wrote: >>> >>>> It seems that one needs ulpt, otherwise the printer isn't found. >>>> So I added to /boot/loader.conf ulpt_load="YES" then the printer is >>>> found by cups and hplip. >>>> >>>> But I do not want to use cups so I deinstalled it. Cups can't print >>>> a testpage so I resorted to lpd. >>>> Which can't print anything, so back to cups that too can't print >>>> anything. So I'm stuck. >>> >>> The ulpt module is loaded by /etc/devd/usb.conf. The file says >>> "please do not edit", and I don't know how those modules are disabled. >>> >>>> Printer is HP laserjet P2055d >>> >>> That printer supports PostScript directly, so following the LPD >>> setup in the Handbook is the easiest course. Deinstall CUPS first, >>> because it has not-quite-compatible commands with the same names as >>> the real ones. >>> >>> If the printer has a network interface, that is the preferred >>> connection. But USB will work, too. >>> >>> >> Now that it finds the printer it's not printing anything with cups or >> lpd. >> I'm using apsfilter and lpd. Hplip is deinstalled so is cups. But no >> cigar. > > Please start by testing without any filters. Use the printcap file > shown in > > https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/printing-lpd.html#printing-lpd-setup > > > and test with the small PostScript sample at the end of > > https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/printing-lpd.html#printing-lpd-filters-ps2pcl > > > That did work... Strange. But if I add a filter like this :if=/usr/local/libexec/enscript:\ from the handbook it stops working. Odd to say the least.