From owner-freebsd-questions@FreeBSD.ORG Tue Apr 4 05:19:26 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 350A716A429 for ; Tue, 4 Apr 2006 05:19:26 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id C3D7243D4C for ; Tue, 4 Apr 2006 05:19:25 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.4/8.13.4) with ESMTP id k345Greg026926; Mon, 3 Apr 2006 23:16:53 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Mon, 03 Apr 2006 23:17:47 -0600 (MDT) Message-Id: <20060403.231747.77059253.imp@bsdimp.com> To: vayu@sklinks.com From: "M. Warner Losh" In-Reply-To: <200604032204.03528.vayu@sklinks.com> References: <20060401091713.5fa856c0@localhost> <20060403.132711.21331470.imp@bsdimp.com> <200604032204.03528.vayu@sklinks.com> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Best way to print photos 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, 04 Apr 2006 05:19:26 -0000 In message: <200604032204.03528.vayu@sklinks.com> Vayu writes: : On Monday 03 April 2006 12:27, M. Warner Losh wrote: : > OK. I got bordered photo printing working. I haven't gotten : > borderless printing working, alas. : > : > The key points I learned: : > : > (1) Install print/cups. : > (2) Install graphics/hpijs. This filters .ps -> goo the printer groks : > (3) Install graphics/gimp. This makes .ps files : > (4) Kill lpr/lpd before starting cups. : > (5) Make sure you configure lpr/lpd not to startup on boot : > (6) Remove lp* binaries : > (7) Setup buildworld /etc/make.conf so it doesn't build lpr with : > NO_LPR or WITHOUT_LPR : > (8) Add printer via localhost:631 web interface. : > (8) Set printer to draft mode via cups for testing : > (9) Use firefox to generate test prints. : > (10) To print from gimp, I have to remove the '-l' from the command : > line every time I print in the printer setup. This causes the : > raw .ps file to go to the printer, rather than via cups' : > postscript filter for the printer. : > (11) To get photos, one must set photo quality via cups setup : > interface. : > : : For someone who has just been struggling with CUPS this is helpful. : Would you mind elaborating the steps on how to accomplish 5, 6 and 7 above? : I've got most everything working, now I'd like to switch to the CUPs lp : commands. Sure. Step 5 is accomplished by not having a line like lpd_enable=yes in /etc/rc.conf. I had one from when I was using lpd. Step 6 is just 'sudo rm -f /usr/bin/lp?*'. /usr/bin/lp is mildly useful, and will be recreated. There's also a knob to the cups port which lets you override the system default programs, but I'm unsure what it is. A quick grep shows me nothing (likely grepping in the wrong dir). Step 7 is just adding the lines: NO_LPR=yes 6.x and older WITHOUT_LPR=yes 7.x and newer to /etc/make.conf. In 7.x and newer you can add it to /etc/src.conf as well. Warner