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
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to