From owner-freebsd-questions@FreeBSD.ORG Tue Oct 24 02:26:05 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 EF2DC16A417 for ; Tue, 24 Oct 2006 02:26:05 +0000 (UTC) (envelope-from kstewart@owt.com) Received: from smtp.owt.com (smtp.owt.com [204.118.6.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id A7B8E43D4C for ; Tue, 24 Oct 2006 02:26:05 +0000 (GMT) (envelope-from kstewart@owt.com) Received: from topaz-out (owt-207-41-94-233.owt.com [207.41.94.233]) by smtp.owt.com (8.12.8/8.12.8) with ESMTP id k9O2OwpE027407; Mon, 23 Oct 2006 19:24:58 -0700 From: Kent Stewart To: freebsd-questions@freebsd.org Date: Mon, 23 Oct 2006 19:25:03 -0700 User-Agent: KMail/1.9.4 References: <20061023174505.99456.qmail@web31510.mail.mud.yahoo.com> <20061023180314.GA4195@osiris.chen.org.nz> In-Reply-To: <20061023180314.GA4195@osiris.chen.org.nz> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200610231925.03509.kstewart@owt.com> Cc: Jonathan Chen , Karl Agee Subject: Re: cannot print in kde apps using lp 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: Tue, 24 Oct 2006 02:26:06 -0000 On Monday 23 October 2006 11:03, Jonathan Chen wrote: > On Mon, Oct 23, 2006 at 10:45:05AM -0700, Karl Agee wrote: > > I posted about this about a month ago, thought i had > > it it figured out but I guess I fooled myself. > > > > I have kde 3.5.4 installed in fbsd6.1. I cannot print > > from kde applications, such as the printer control > > module, kpdf, etc. > > > > I can print just_fine from OO.o, Firefox and Adobe > > Reader 7. > > > > The error kde gives me is: > > > > usr/local/bin/lpr -P 'lp' '-#1' > > '/usr/local/share/apps/kdeprint/testprint.ps' : > > execution failed with message: > > /usr/local/bin/lpr: Connection refused > > > > I do have cups installed but it is not running or > > enabled. > > > > I dont understand why I can print from non-kde apps > > but not from kde apps. > > The problem is the `lpr' that KDE is invoking. It's using it's own > internal version that requires CUPS to be running. I don't like > CUPS, so I recompiled the whole of KDE making sure that x11/kdelibs3 > had the flag -DWITHOUT_CUPS. With this flag, KDE runs /usr/bin/lpr > instead. > Sort of backwards, it uses the /usr/local/bin/lpr that cups-base installs. If you mv it to lpr.o, you can use lp to print from KDE. This is a fix that lofi sent to me early this morning. Kent > Cheers. -- Kent Stewart Richland, WA http://www.soyandina.com/ "I am Andean project". http://users.owt.com/kstewart/index.html