From owner-freebsd-questions@FreeBSD.ORG Thu Aug 25 05:57:47 2011 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 1F859106566B for ; Thu, 25 Aug 2011 05:57:47 +0000 (UTC) (envelope-from ulrich@pukruppa.de) Received: from pukruppa.de (pd95cabe3.dip0.t-ipconnect.de [217.92.171.227]) by mx1.freebsd.org (Postfix) with ESMTP id 867948FC1D for ; Thu, 25 Aug 2011 05:57:45 +0000 (UTC) Received: from pukruppa.de (localhost [127.0.0.1]) by pukruppa.de (8.14.5/8.14.5) with ESMTP id p7P61o5a072863; Thu, 25 Aug 2011 08:01:51 +0200 (CEST) (envelope-from ulrich@pukruppa.de) Message-ID: <4E55E54E.6000307@pukruppa.de> Date: Thu, 25 Aug 2011 08:01:50 +0200 From: "Kruppa, Peter Ulrich" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:5.0) Gecko/20110728 Thunderbird/5.0 MIME-Version: 1.0 To: Polytropon , freebsd-questions@freebsd.org References: <20110824095841.0f614b67.freebsd@edvax.de> <4E54E2C5.2030408@pukruppa.de> <20110824171956.56654528.freebsd@edvax.de> In-Reply-To: <20110824171956.56654528.freebsd@edvax.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: Printing from Opera 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: Thu, 25 Aug 2011 05:57:47 -0000 Sorry, I forgot to include the list - Am 24.08.2011 17:19, schrieb Polytropon: > On Wed, 24 Aug 2011 13:38:45 +0200, Kruppa, Peter Ulrich wrote: >> Opera really does work with Cups - you will see your printer's >> network name in the printer dialog. > > I've installed CUPS and actually _can_ see the printer > names in the dialog, but no printing takes place. > > Test: I loaded google's homepage and pressed Ctrl+P Enter. > > % lpq > HP_LaserJet_4000_Series is ready and printing > Rank Owner Job File(s) Total Size > active poly 20 Google - Opera 419840 bytes > > And few seconds later: > > % lpq > HP_LaserJet_4000_Series is ready > no entries > > But nothing appear in the printer. It works from any > other application, even from command line. > > Note that _those_ lp* tools are belonging to CUPS. Which means - you really do use /usr/local/bin/lp and removed the system's /usr/bin/lp* stuff? Just to be sure Greetings Peter. > > >> If you really want to use Cups [...] > > Want? There's no such thing as wanting in relation to CUPS. :-) > > > >> [...] you have to set it up manually > > Really? It was always advertised as doing everything totally > automatically. > > > >> - there isn't any automagic. > > It recognized the printer (by scanning the network) correctly > and did even suggest the proper driver that allows me to > enable or disable the printer's special functions, such as > which tray to use, or if to duplex. > > > >> Can you print from the command-line >> # lpr document.ps >> ? > > Without problems. Even the pre-filters do work, e. g. > > % lpr bla.c > > or even > > % lpr foo.jpg > > CUPS does the preprocessing, the printer shows "JOB PROCESSING", > loads the paper and prints - just as expected, even like > without CUPS. :-) > > (I've been using that "magic" with apsfilter before which > uses some pre-filters for various "non-printable" file > types, and then generates PCL using gs, which also allows > me to set printer-specific options.) > > Oh, and I even wrote my own "PS only" printer filters, > also using gs, and putting them into /etc/printcap does > work. > > % cat /opt/libexec/ps2pcl-dup.sh > #!/bin/sh > printf "\033&k2G" || exit 2 > gs -q -dBATCH -dNOPAUSE -dPARANOIDSAFER -dSAFER -sPAPERSIZE=a4 > -r600x600 -sDEVICE=ljet4d -dDuplex=true > -sOutputFile=- -&& exit 0 > exit 2 > > Corresponding printcap entry: > > Laserjet|ljet4d;r=600x600;q=high;c=full;p=a4;m=auto:\ > :rm=192.168.100.100:\ > :rp=raw:\ > :lp=:\ > :if=/opt/libexec/ps2pcl-dup.sh:\ > :sd=/var/spool/lpd/Laserjet:\ > :lf=/var/spool/lpd/Laserjet/log:\ > :af=/var/spool/lpd/Laserjet/acct:\ > :mx#0:\ > :sh: > > Of course in _this_ case print data has to be in PS format, > but that's no problem as it is the default output format > by all the programs that intend to print. > > > -- Peter Ulrich Kruppa Wuppertal Germany