From owner-freebsd-questions@FreeBSD.ORG Fri May 29 11:03:39 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 436CC1065670 for ; Fri, 29 May 2009 11:03:39 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id 5E19D8FC1E for ; Fri, 29 May 2009 11:03:38 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3) with ESMTP id n4TB3OXi010330; Fri, 29 May 2009 13:03:27 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3/Submit) with ESMTP id n4TAn4sR010277; Fri, 29 May 2009 12:49:04 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Fri, 29 May 2009 12:49:03 +0200 (CEST) From: Wojciech Puchar To: perryh@pluto.rain.com In-Reply-To: <4a1f9849.pQymwXa+Jjy6Cj9K%perryh@pluto.rain.com> Message-ID: References: <20061208042111.GA709@host.my.domain> <23685866.post@talk.nabble.com> <20090524104618.0a62a935@scorpio> <23711563.post@talk.nabble.com> <20090525154816.3cee4b9a@scorpio> <20090526144939.d21275c2.freebsd@edvax.de> <20090527133706.1a6e4612@scorpio> <20090528111158.aee9a44d.freebsd@edvax.de> <4a1f9849.pQymwXa+Jjy6Cj9K%perryh@pluto.rain.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd@edvax.de, freebsd-questions@freebsd.org Subject: Re: Canon printer and TurboPrint 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: Fri, 29 May 2009 11:03:39 -0000 >> CUPS isn't extra software in my opinions. > > CUPS is a PITA, but it may nevertheless be the "least bad" > solution if one is stuck with a junk printer. i really have nicer things to do that fighting with winprinter, when i can get normal printer for really low price. > Decent, network-capable, PostScript printers do not have to be > costly. I bought a Samsung ML-2571N at Fry's for something like > $60(US) a year or two ago. All I had to do was plug it into the > network, add its IP address to /etc/hosts, add a suitable entry > to /etc/printcap, and lpr "just works". No need to bother with > CUPS. postscript printers are easiest, but PCL as not much more difficult, just write simple filter using ghostscript. Even not write - just modify existing examples like below #!/bin/sh # # ifhp - Print Ghostscript-simulated PostScript on a DesJet 500 # Installed in /usr/local/libexec/hpif # # Treat LF as CR+LF: # printf "\033&k2G" || exit 2 # # Read first two characters of the file # read first_line first_two_chars=`expr "$first_line" : '\(..\)'` if [ "$first_two_chars" = "%!" ]; then # # It is PostScript; use Ghostscript to scan-convert and print it # /usr/local/bin/gs -dSAFER -dNOPAUSE -q -sPAPERSIZE=a4 -sDEVICE=ljet4 -sOutputFile=- - \ && exit 0 else # # Plain text or HP/PCL, so just print it directly; print a form # at the end to eject the last page. # echo "$first_line" && cat && printf "\f" && exit 0 fi exit 2