From owner-freebsd-questions@FreeBSD.ORG Wed Mar 8 00:43:47 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 2D5F916A420 for ; Wed, 8 Mar 2006 00:43:47 +0000 (GMT) (envelope-from danny@ricin.com) Received: from smtpq1.groni1.gr.home.nl (smtpq1.groni1.gr.home.nl [213.51.130.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id 58E1C43D45 for ; Wed, 8 Mar 2006 00:43:45 +0000 (GMT) (envelope-from danny@ricin.com) Received: from [213.51.130.188] (port=54566 helo=smtp3.groni1.gr.home.nl) by smtpq1.groni1.gr.home.nl with esmtp (Exim 4.30) id 1FGmmE-0004Od-6F; Wed, 08 Mar 2006 01:43:42 +0100 Received: from cp464173-a.dbsch1.nb.home.nl ([84.27.215.228]:63860 helo=desktop.homenet) by smtp3.groni1.gr.home.nl with esmtp (Exim 4.30) id 1FGmmD-0002rQ-6M; Wed, 08 Mar 2006 01:43:41 +0100 From: Danny Pansters To: freebsd-questions@freebsd.org Date: Wed, 8 Mar 2006 00:43:13 +0000 User-Agent: KMail/1.9.1 References: <20060307082141.GA13694@thought.org> <200603071133.02515.danny@ricin.com> <20060307174404.GA46892@thought.org> In-Reply-To: <20060307174404.GA46892@thought.org> X-Face: :N, f2_*44g[tRY8Y-gL2zi`G|<6SpFjTeHt|V5LO6Yl2E7yAfEh{E6-8pqxUFX"l)=?utf-8?q?Nm8y=7E=0A=09IWJSAWQ=7D+=3DpP=7CT=5D?=@sy1sz%h)*CW6gtbp]"fe@MjICtIUo.0, CH~{[R4PXSyL MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200603080043.13456.danny@ricin.com> X-AtHome-MailScanner-Information: Please contact support@home.nl for more information X-AtHome-MailScanner: Found to be clean Cc: Gary Kline Subject: Re: print question: cups and lpr X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Mar 2006 00:43:47 -0000 On Tuesday 7 March 2006 17:44, Gary Kline wrote: > On Tue, Mar 07, 2006 at 11:33:02AM +0000, Danny Pansters wrote: > > On Tuesday 7 March 2006 08:21, Gary Kline wrote: > > > On my test system I'm defaulting to "cups"; printing on any > > > flavor of *nix has always been painful ... which is why I > > > stick with plain ol' lpr::: it Just-Works{tm}. So on my > > > printserver and everywhere else I have lpr/lpd going. > > > > > > Under Gnome on my test platform I've tried to get things to > > > print via my printsrver. I see that Gnome thinks things are > > > printing. Not. Do any of you print wizards know what I'm > > > missing? > > > > Usually this is caused by confusion over which lpr to use. The one that > > comes with base (lpd) is in /usr/bin, the one installed by cups is > > in /usr/local/bin. When searching $PATH the first will be used, which is > > the wrong one. IIRC the cups port has a 'make replace' target. Or (what I > > usually do): cp /usr/bin/lpr /usr/bin/lpr.not and I put NO_LPR=yes in > > /etc/make.conf so that when rebuilding world all of lpd is skipped. > > Are you saying that, in effect, I should use cups on my > printserver? --or at least use the cups lpr? Well, no, you should use whatever works best for you. I'm only saying that cups is probably well worth investigating and that it works great for me (with KDE I might add, I don't run gnome). And that the common faq if it doesn't print is $PATH confusion over which lpr binary to use. As a matter of fact (but check the docs) I think cups can work just fine with existing LPR servers. It can be an LPR server itself. > > > PS: 5 gold stars for anybody who can 'splain why cups exists. > > > > Well for just a printer server lpd is fine and maybe easier. But for a > > desktop where you want a good filter/driver for those shiny PDFs, cups is > > almost a must. I use a HP all-in-one (and before that an officejet). Good > > luck writing a printcap for that. Even more so getting a suitable filter. > > With cups this is automagical, and no sub par quality or bleak colors > > (well at least with HP's drivers, graphics/hpoj and hpijs). Granted, if > > you fail to get it running automagically you're in for some reading, but > > it's well documented. If all you ever do is print plain text then cups > > may be overkill. > > I've got the ghostscript stuff set up for my HP Deskjet-500 > (still using since 1992). lpr -> hpif (I think); hpif calls > the ghostscript tools and I can print anything. Postscript, > pdf, graphics, OO files, whatever. OK. hpif == hpijs? I guess so. > > Also, cups supports several protocols, most prominently ipp which > > arguably is the standard now. Since I have my printer hanging on the > > network this comes in handy. > > > > My experience with lpd getting it to print decently with magicfilter on > > the officejet was always rather painful. Cups just works. It also does > > scanning and I can read my camera's flash card with it, but that has > > nothing to do with cups, rather with the device drivers. > > > > HTH, > > A little, thanks. If I use the cups lpr on my printserver, > will/(*should*) my test server with Gnome and cups just-work, > or is that a black-hole question? Are there are cups type > tutorials around? I haven't googled around. Cups has a webserver running on localhost port 631 from where you can set everything up. This is (not perfectly) integrated with KDE. Don't know about Gnome. Cups has documentation where you expect it: /usr/local/share/doc/cups/ > > The nutshell of it is that when I first started messing with > SVR2 in 1986 (then SVR4, then FreeBSD) it took weeks (totaled) > to get things-printer working with lpr/lpd. It's time to get > out of my Ludditeism and move to CUPS. Well "there must be something easier" :) It's probably cups. Together with the docs that come with hpijs/hpoj ports (not mandatory I think but if you have a deskjet even an older one hpijs may be of interest) you should be able to get it going. Use the cups CLI commands or web interface to cups, look at Gnome later (perhaps once cups is set up a reboot or restarting gnome will do). I'm not a cups expert in any way but might be able to help a bit along the way if needed. I tend to stay away from the cups utilities/web interface unless I need to redo the setup or something. Then the KDE printer stuff sometimes seems to not be in synch with what you'd do in the web interface. So for real maintenace I bypass KDE, for normal usage (cleaning the queue and such)it works fine. Perhaps someone else could elaborate a bit about cups w/ gnome. > > gary Cheers, Dan