Re: Printing from Opera

2011-08-25 Thread Polytropon
On Thu, 25 Aug 2011 08:01:50 +0200, Kruppa, Peter Ulrich wrote:
 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
  RankOwner   Job File(s)  Total Size
  active  poly20  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

Just checked again. Even though I did not have CUPS_OVERWRITE_BASE=YES
in /etc/make.conf when installing cups, I renamed the system's lp*
tools so those of CUPS are being used:

% which lpq lpr lprm lp
/usr/local/bin/lpq
/usr/local/bin/lpr
/usr/local/bin/lprm
/usr/local/bin/lp

The system's tools are out of scope now.

% ls /usr/bin/lp*
/usr/bin/lp.bsd
/usr/bin/lpq.bsd
/usr/bin/lpr.bsd
/usr/bin/lprm.bsd

As I made sure from various programs, CUPS _can_ actually print.
It just doesn't print from Opera.




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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


Re: Printing from Opera

2011-08-25 Thread Kruppa, Peter Ulrich



Am 25.08.2011 08:09, schrieb Polytropon:

On Thu, 25 Aug 2011 08:01:50 +0200, Kruppa, Peter Ulrich wrote:

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
RankOwner   Job File(s)  Total Size
active  poly20  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


Just checked again. Even though I did not have CUPS_OVERWRITE_BASE=YES
in /etc/make.conf when installing cups, I renamed the system's lp*
tools so those of CUPS are being used:

% which lpq lpr lprm lp
/usr/local/bin/lpq
/usr/local/bin/lpr
/usr/local/bin/lprm
/usr/local/bin/lp

The system's tools are out of scope now.

% ls /usr/bin/lp*
/usr/bin/lp.bsd
/usr/bin/lpq.bsd
/usr/bin/lpr.bsd
/usr/bin/lprm.bsd

As I made sure from various programs, CUPS _can_ actually print.
It just doesn't print from Opera.

Do opera's print jobs show up in the queue (With # lpq) or via browser
http://localhost:631 ?

Greetings

Peter.







--

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


Re: Printing from Opera

2011-08-25 Thread Polytropon
On Wed, 24 Aug 2011 17:48:40 -0400, Rod Person wrote:
 Out of curiosity, when I got how I fired up Opera 11.50 and took these screen 
 shots.
 
 You can see that I have a Print to LPR option and you can set the command 
 line.

Yes - that seems to be the KDE printing dialog. I did just
rebuild Opera (which installed _lots_ of stuff, kdelibs and
other KDE and Qt related things, and stuff that I've never
heared of, no idea what it is and what I should need it for,
e. g. Sesame, Rasqal, Soprano, Botan and Grantlee - it's
just you're talking how to solve Maniac Mansion II: Day Of
The Tentacle with a friend on a public bus!). Really, naming
modern software products makes you sound silly. :-)



 But it seem it does stay saved and you have to type in the command every time.

The standard command _is_ lpr, so this should be fine. I've
tried _all_ the dialogs, going to opera:config Registry,
and changing numerical values.

The explainations for Dialog Toolkit are a bit scary:

0 = Autodetect toolkit to use for file selector
1 = Use Qt for file selector (dprecated, will fall back to KDE)
2 = Use GTK for file selector
3 = Use KDE for file selector
4 = Use X11 for file selector

Note that althoug the key Dialog Toolkit is categorized
in File Selector, it does _also_ affect the printing dialog!
Furthermore, it affects how the menus and colors look like.

Oh... deprecated!!! The only file saving dialog that worked in
a halfway accessible manner is now DEPRECATED! Great!

I tried the Gtk file dialog, it has bad keyboard support, is
slow and doesn't allow fast actions. The KDE dialog is also
unusable. And if Opera starts, there are a lot of error
messages related to KDE (as I'm not using it maybe?). There
is no .. entry anymore (too complicated for average users?),
and the GTK file dialog doesn't even allow easy overwriting
a file name (selection just covers prefix, not full entry).

This is how it looked like in previous versions:

+-- Save as ---+
|  |
|  Look in: _#_/var/tmp_ [] [^] [°]  [::][=]  |
|  |
|  # ..* a_saved_file.html |
|  # some_directory* another_file_html |
|  # another one   |
|  |
|  File name: blabla.html_ [  Save  ]  |
|  |
|  File type: HTML file (*.htm, *.html)[ Cancel ]  |
|  |
+--+

Note that the upper field can be addressed per keyboard, so
you can change the path there - or you enter a path (as prefix
or only entry) in the lower field.

The dialog I got after installation with KDE and GTK backends
_not_ selected was a poor implementation of that dialog, but
it worked, even though there are strange things like Places
and File system that I don't understand what they are to be
used for. Waste of space on screen seems to be modern.

The old Opera 8.54 printing dialog had a tab to specify a printer
program and its parameters. This seems also DEPRECATED, so if
you want it, you need KDE... or what?



 Dialog:
 http://rodperson.com/DL/2011-08-24-174109_1680x1050_scrot.png

Exactly that's what I get, and if I enter a job, it is shown
for a short time in the lpq output, but the printer does not
print anything. Then the queue is empty.

And even as I now have those dialogs, and made all settings
as one would expect, in the _result_, nothing is printed.
No error messages (checked xterm calling Opera) appear.

There is just one printer. It's the only one on the list.
It _has_ to be manually (!) selected before I am able to
send the print job. Standard procedure ^P and Enter also
seems to be DEPRECATED...



Summary: Printing still does not work. And file dialog got worse.



I will try to make a workaround by using the Print to file
mechanism to pipe it directly into the printer somehow.




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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


Re: Printing from Opera

2011-08-25 Thread Polytropon
On Thu, 25 Aug 2011 08:57:41 +0200, Kruppa, Peter Ulrich wrote:
 Do opera's print jobs show up in the queue (With # lpq) or via browser
 http://localhost:631 ?

In both, for a very short time. The command line lpr report
looks like this:

% lpq
HP_LaserJet_4000_Series is ready and printing
RankOwner   Job File(s)  Total Size
active  poly20  Google - Opera   419840 bytes

Then it disappears after a few seconds

% lpq
HP_LaserJet_4000_Series is ready
no entries

The printer doesn't start to print. If I try this from other
programs (e. g. Gimp, the Sylpheed MUA, or OpenOffice), the
entry is listed, and the printer starts to work. In the web
administration, all jobs are listed as completed, except
that the Opera printing jobs didn't result in printing, while
the other ones did.



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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


Re: Printing from Opera

2011-08-25 Thread Warren Block

On Thu, 25 Aug 2011, Polytropon wrote:


On Thu, 25 Aug 2011 08:57:41 +0200, Kruppa, Peter Ulrich wrote:

Do opera's print jobs show up in the queue (With # lpq) or via browser
http://localhost:631 ?


In both, for a very short time. The command line lpr report
looks like this:

% lpq
HP_LaserJet_4000_Series is ready and printing
RankOwner   Job File(s)  Total Size
active  poly20  Google - Opera   419840 bytes

Then it disappears after a few seconds

% lpq
HP_LaserJet_4000_Series is ready
no entries

The printer doesn't start to print.


If the print job has a PostScript error, it would be received and then 
just disappear.  Unless you have the printer set to print PostScript 
errors, anyway.  Watch the printer lights for a quick flash when (if) 
the job is actually sent.

___
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


Re: Printing from Opera

2011-08-25 Thread Polytropon
Again a system freeze, so I have to write this message
for a second time. But I think it's worth it as I made
some interesting discoveries. :-)

On Thu, 25 Aug 2011 06:43:01 -0600 (MDT), Warren Block wrote:
 If the print job has a PostScript error, it would be received and then 
 just disappear.  Unless you have the printer set to print PostScript 
 errors, anyway.  Watch the printer lights for a quick flash when (if) 
 the job is actually sent.

I've tried that from the google search page (no query
entered) and could see the display JOBVERARBEITUNG
(job processing), as well as a short flashing of the
Daten (data) LED. Nothing got printed, but the
printer seemed to receive data. So I thought I should
investigate the data.

In Opera, I selected Print to file and loaded the
PS file into gs. It had a black square across the
page, as well as scroll bars. Scroll bars? In the PS
output? Hmmm... sounds stupid!

Printing this file from within gs (which pipes it to
lpr), as well as directly printing it with lpr, resulted
in the job appearing + disappearing.

Okay, I thought it might have something to do with the
web page printed... so I opened a simple web page (no
images, just text).

IT GOT PRINTED!!!

So is this local file vs. online file?

I opened http://www.freebsd.org/doc/handbook/LEGALNOTICE.html
and printed it. It also got printed, but with a black bar
across the rear side of the second page. There also were
grey bars at the margins of the text (but I could remove
them by manually Alt+P = Preferencs, Webpages, Background
Color set to white).

The output was like this (2nd page):

Corel and WordPerfect are trademarks or registered
trademarks of Corel Corporation and/or its 
subsidiaries in Canada, the United States and/or
##
##
##
##

And then printing continued normally on the 3rd page (2nd
sheet) with

SAP, R/3, and mySAP are trademarks or registered 
trademarks of SAP AG in Germany and in several other 
countries all over the world.

What is this selective printing? Or am I not allowed to
print portions of the copyright? :-)

Whenever I try to print from Opera, I have to manually select
the only selectable printer with the mouse. What about the
good old Ctrl+P Enter? Already DEPRECATED? Not modern
enough?

Alternative: Firefox. I have version 6.0.1 installed. When
I opened the google search page, it got printed, but without
the colored Google text. Other web pages with images have
the images printed.

And suddenly, the system froze. I had to switch it off (with
the _real_ power switch on the back).

The freeze virus has jumped from Sylpheed to Firefox.

Summary:

PS generation seems to be different among browsers. Sometimes
something gets generated that the printer cannot print.

Idea:

I could configure CUPS _not_ to use PS, but instead convert
it to PCL and then send it to the printer, maybe this can
bring different results.



(Note that my last message contained some more details, e. g.
different job sizes when printing the same page from Opera
and from Firefox, but due to the reboot the message was lost.)




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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


Re: Printing from Opera

2011-08-24 Thread Rod Person
On Wed, 24 Aug 2011 09:58:41 +0200
Polytropon free...@edvax.de wrote:
 My question to the list now:
 
 Did anybody get Opera working with CUPS or (better)
 without it? Maybe did I miss something important at
 installation time?
 

I've been printing from Opera using this method
http://www.opera.com/support/kb/view/481/

Since you have a good printer that doesn't need a CUPS you probably can
skip that and just make sure tp have the correct /etc/printcap

-- 
Rod
___
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


Re: Printing from Opera

2011-08-24 Thread Polytropon
On Wed, 24 Aug 2011 06:55:34 -0400, Rod Person wrote:
 On Wed, 24 Aug 2011 09:58:41 +0200
 Polytropon free...@edvax.de wrote:
  My question to the list now:
  
  Did anybody get Opera working with CUPS or (better)
  without it? Maybe did I miss something important at
  installation time?
  
 
 I've been printing from Opera using this method
 http://www.opera.com/support/kb/view/481/

Which version of Opera are you using? I have 11.50/1047
installed; the page you refered to states:

Opera for Linux uses Qt to handle the printing.
Qt looks in /etc/printcap for available printers,
so make sure your printers are listed there.

Printers are listed, but they don't appear in the
Printers list. Then:

If you are having problems printing, try adding
a custom printer under the Options tab in
File  Print.

This is not possible, as the Options tab doesn't have
any function to add a printer. This is what it looks
like:

+-- Print --+
| _ |
|_Destination| Options ||
|   |
| Paper and Orientation |
| A4 (210 x 297 mm)  v  |
| Portrait   v  |
|   |
| Scale print to100% v  |
| [J] Fit to paper width|
|   |
| [ ] Print page background |
| [ ] Print headers and footers |
|   |
| Color |
|   ( ) Print in color if available |
|   (o) Print in grayscale  |
|   |
| Page margins (in centimeters) |
|   Top   1.00   Bottom  1.00   |
|   Left  1.00   Right   1.00   |
|___|
|   |
|   [ Print]  [ Cancel ]  [ Apply ] |
+---+

There is no means to add a printer.

I also checked the Registry... erm... the Configuration
editor opera:config, with the search string print.
Even though the key PrinterName is defined as $PRINTER,
which points to Laserjet (the default printer queue
that all other programs can use too), there is no command
that could be entered (like lpr -PLaserjet), sonsisting
of a printer program and a parameter, as described in the
article mentioned on top.



 Since you have a good printer that doesn't need a CUPS you probably can
 skip that and just make sure tp have the correct /etc/printcap

I have a correct /etc/rintcap for more than 20 years now,
and I never encountered such a situation that cannot be
explained or understood... :-)



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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


Re: Printing from Opera

2011-08-24 Thread Rod Person
On Wed, 24 Aug 2011 17:09:40 +0200
Polytropon free...@edvax.de wrote:
 
 Which version of Opera are you using? I have 11.50/1047
 installed; the page you refered to states:

I have 10.x and Opera-Next installed.

   If you are having problems printing, try adding
   a custom printer under the Options tab in
   File  Print.
 
 This is not possible, as the Options tab doesn't have
 any function to add a printer. This is what it looks
 like:

Sorry, I know Opera-Next does not have this option, but I though the
11.x did. What if you change Dialog Toolkit to 3 in Opera:config, which
will give you the KDE type dialogs?

-- 
Rod

==
This is email was sent by me for the purposes of not promoting global
corporations or mindlessness. If you can't figure out how to read the
reply, stop being a moron and think...hint how do you normally read a
book, magazine or such. Wake the fuck up and think.
___
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


Re: Printing from Opera

2011-08-24 Thread Rod Person
On Wed, 24 Aug 2011 12:54:01 -0400
Rod Person rodper...@rodperson.com wrote:
 On Wed, 24 Aug 2011 17:09:40 +0200
 Polytropon free...@edvax.de wrote:
  
  Which version of Opera are you using? I have 11.50/1047
  installed; the page you refered to states:
 
 I have 10.x and Opera-Next installed.

Out of curiosity, when I got how I fired up Opera 11.50 and took these screen 
shots.

You can see that I have a Print to LPR option and you can set the command line.
But it seem it does stay saved and you have to type in the command every time.

Dialog:
http://rodperson.com/DL/2011-08-24-174109_1680x1050_scrot.png

Version Info:
http://rodperson.com/DL/2011-08-24-174126_1680x1050_scrot.png

Dialog Toolkit setting:
http://rodperson.com/DL/2011-08-24-174152_1680x1050_scrot.png



-- 
Rod Person
http://www.rodperson.com
  
When you step on some toes and offend people you're a radical these
days... And people's toes are very long -aap
___
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


Re: Printing from Opera

2011-08-24 Thread Kruppa, Peter Ulrich

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
RankOwner   Job File(s)  Total Size
active  poly20  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 \033k2G || 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