From owner-freebsd-questions@FreeBSD.ORG Fri Apr 11 09:21:23 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ACC1F37B401 for ; Fri, 11 Apr 2003 09:21:23 -0700 (PDT) Received: from mired.org (ip68-97-54-220.ok.ok.cox.net [68.97.54.220]) by mx1.FreeBSD.org (Postfix) with SMTP id 99D0543F85 for ; Fri, 11 Apr 2003 09:21:22 -0700 (PDT) (envelope-from mwm-dated-1050510081.63557c@mired.org) Received: (qmail 39640 invoked from network); 11 Apr 2003 16:21:21 -0000 Received: from localhost.mired.org (HELO guru.mired.org) (127.0.0.1) by localhost.mired.org with SMTP; 11 Apr 2003 16:21:21 -0000 Received: by guru.mired.org (tmda-inject, from uid 100); Fri, 11 Apr 2003 11:21:21 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16022.60289.92289.802228@guru.mired.org> Date: Fri, 11 Apr 2003 11:21:21 -0500 To: Gary Schenk In-Reply-To: <200304102145.25225.gwschenk@socal.rr.com> References: <200304102145.25225.gwschenk@socal.rr.com> X-Mailer: VM 7.07 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ From: Mike Meyer X-Delivery-Agent: TMDA/0.73 (Jet Pilot) cc: freebsd-questions@freebsd.org Subject: Re: Newbie lpd printing X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Apr 2003 16:21:24 -0000 In <200304102145.25225.gwschenk@socal.rr.com>, Gary Schenk typed: > This FreeBSD newbie has even learned how to print! I'm using lpd to print and > it works fine from the console. I'm using an old Epson with the hpif filter > from the FreeBSD handbook, using uniprint as the device. > > However, it does not work in KDE. I've read the KDE printing handbook, but > have not found much there. > > It seems to be an input filter problem. My /etc/printcap file calls on hpif, > which does print text files to the Epson just fine, yet the results I get in > KDE seem to indicate that the input filter is not working. Does KDE use > /etc/printcap? Have I missed something in setting up printing for KDE? > Basically all I've done is click "print" in the application, choose lpd, and > ok. I suspect your script is broken for printing postscript files. The hpif script in the handbook doesn't handle those at all, so I assume you added that code. Can you print postscript from the command line? If not, the KDE is probably turning everything into postscript, which is then failing. > I'm not good at scripts yet, so maybe that is the problem? Here is my input > filter file: I see two problems. One is that you run ghostscript twice, the first time sending the output to /dev/fd/3, which won't do any good. The second time won't get any data. You also need to do the printf \033&k2g for postscript, and it may put your printer into PCL mode for the job. That should only happen for text files. If you're only going to print from KDE, then fixing this script might be the way to go. However, installing something like magicfilter - and you've already got the hard parts done - which handles the difference between postscript and flat text properly, and automatically converts a number of formats to postscript for you, might be a better option if you want to print regularly from the command line. http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information.