From owner-freebsd-newbies@FreeBSD.ORG Mon Feb 14 22:03:10 2005 Return-Path: Delivered-To: freebsd-newbies@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A8B5B16A4CE for ; Mon, 14 Feb 2005 22:03:10 +0000 (GMT) Received: from av4-1-sn3.vrr.skanova.net (av4-1-sn3.vrr.skanova.net [81.228.9.111]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1F6EE43D49 for ; Mon, 14 Feb 2005 22:03:10 +0000 (GMT) (envelope-from homebell@telia.com) Received: by av4-1-sn3.vrr.skanova.net (Postfix, from userid 502) id EFF1337E59; Mon, 14 Feb 2005 23:03:08 +0100 (CET) Received: from smtp1-2-sn3.vrr.skanova.net (smtp1-2-sn3.vrr.skanova.net [81.228.9.178]) by av4-1-sn3.vrr.skanova.net (Postfix) with ESMTP id E1A2637E59; Mon, 14 Feb 2005 23:03:08 +0100 (CET) Received: from [192.168.0.3] (h138n2fls31o930.telia.com [217.210.244.138]) by smtp1-2-sn3.vrr.skanova.net (Postfix) with ESMTP id 977C738010; Mon, 14 Feb 2005 23:03:08 +0100 (CET) Message-ID: <4211201A.5030507@telia.com> Date: Mon, 14 Feb 2005 23:03:06 +0100 From: "Kjell B." Organization: Not particularly organized User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041206 Thunderbird/1.0 Mnenhy/0.7.1 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Brian John References: <420FCEA2.5020307@fusemail.com> In-Reply-To: <420FCEA2.5020307@fusemail.com> X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit cc: freebsd-newbies@freebsd.org Subject: Re: trouble printing X-BeenThere: freebsd-newbies@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Gathering place for new users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Feb 2005 22:03:10 -0000 On 2005-02-13 23:03, Brian John wrote: > Hello, I am having trouble printing from my HP Deskjet 710C printer. It > is hooked up via parallel port and I can print fine with it from > Windows. However, I can't get it to work in FreeBSD. I followed the > instructions here: > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/printing-intro-setup.html > > Everything seems to be fine. But when I try to test the printer using a > command similar to this: > > # cat file > /dev/lptN > > or this: > > lptest > /dev/lpt0 > > nothing happens. Does anyone have a clue what I might have done wrong? > > Thanks for the help > > /Brian > > > _______________________________________________ > freebsd-newbies@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-newbies > To unsubscribe, send any mail to "freebsd-newbies-unsubscribe@freebsd.org" > I understand the Deskjet 710C is a similar beast as the 720C which I have, i.e. it is a PPA printer. PPA is a proprietary HP format for which there is no native support in either Linux or FreeBSD, but only in Windows (and possibly Mac). Have a look at http://www.linuxprinting.org/show_printer.cgi?recnum=HP-DeskJet_710C for some hints. There is more information elsewhere, but I don't have the links handy. In summary, you have to first produce PostScript output, convert it to PPM with Ghostscript, and finally convert that to PPA before sending it off to the HW. Personally, I set the printer up like this in printcap: dj720c|lp|HP DeskJet 720C:sd=/var/spool/lpd/dj720c:sh:if=/usr/local/bin/ppa-test -filter:lp=/dev/lpt0: where ppa-test-filter (my naming, was supposed to be temporary) contains #!/bin/sh #cat $1 | \ /usr/local/bin/gs -sDEVICE=ppmraw -q -sPAPERSIZE=a4 -dNOPAUSE -dQUIET -r600 -sst dout=%stderr -sOutputFile=- - | \ /usr/local/bin/pnm2ppa -i - -o - (third line broken). You need to install the ports print/ghostscript (7.07 is the version I'm running) and print/pnm2ppa (I run version 1.12). Both are called from the ppa-test-filter script. Then you can feed PostScript output to the printer (dj720c or lp in my case). Don't forget to read the pnm2ppa documentation for calibration and fine-tuning. It took me quite an amount of hours to get it going. I hope I saved you some of those hours with the above. -- Kjell