Printing with CUPS on Mozilla 1.4
I have a printer working perfectly under CUPS when I print from OO.org however when I print from Mozilla, it gives me grief. Under the properties 'print command' field I get: 'lpr ${MOZ_PRINTER_NAME:+'-P'}${MOZ_PRINTER_NAME}' which I know is not CUPs but lpr. how do I get the OO.org printer or perhaps 'system' configured printer configured correctly under Mozilla1.6? I have had a look under the preferences and haven't found anything yet. Ideas/ IIA Hylton -- ======================================================================== Hylton Conacher - Licenced Windows user Registered Linux user # 229959 at http://counter.li.org Currently using SuSE 9.0 Professional with KDE 3.1 ========================================================================
* Hylton Conacher (ZR1HPC)
Under the properties 'print command' field I get: 'lpr ${MOZ_PRINTER_NAME:+'-P'}${MOZ_PRINTER_NAME}' which I know is not CUPs but lpr.
how do I get the OO.org printer or perhaps 'system' configured printer configured correctly under Mozilla1.6?
I have had a look under the preferences and haven't found anything yet.
edit unix.js, find pref("print.printer_list", ""); // list of printers, separated by spaces and add the name of your printer between the last set of double quotes in: pref("print.printer_list", "") ie: pref("print.printer_list", "esp925gp") -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711
Patrick Shanahan wrote:
* Hylton Conacher (ZR1HPC)
[04-10-04 14:24]:
how do I get the OO.org printer or perhaps 'system' configured printer configured correctly under Mozilla1.6?
edit unix.js, find pref("print.printer_list", ""); // list of printers, separated by spaces
and add the name of your printer between the last set of double quotes in: pref("print.printer_list", "")
ie: pref("print.printer_list", "esp925gp") Found the file /opt/mozilla/defaults and the 'pref("print.printer_list"'
[snip] part. What should be the name added between the quotes, what my printer is (Epson Stylus 800+). or what the system identifies it as as?(Epson Stylus 800 Foomatic/stcolor (recommended)) Is there not an easier way than messing wit the source files directly, ie via GUI that does the messing around ie localhost:631/? Do I need to do anything after changing the unix.js source file? TIA Hylton -- The Little Helper ======================================================================== Hylton Conacher - Licenced Windows user Registered Linux user # 229959 at http://counter.li.org Currently using SuSE 9.0 Professional with KDE 3.1 ========================================================================
* Hylton Conacher (ZR1HPC)
Patrick Shanahan wrote:
* Hylton Conacher (ZR1HPC)
[04-10-04 14:24]: how do I get the OO.org printer or perhaps 'system' configured printer configured correctly under Mozilla1.6?
edit unix.js, find pref("print.printer_list", ""); // list of printers, separated by spaces
and add the name of your printer between the last set of double quotes in: pref("print.printer_list", "")
ie: pref("print.printer_list", "esp925gp") Found the file /opt/mozilla/defaults and the 'pref("print.printer_list"'
[snip] part. What should be the name added between the quotes, what my printer is (Epson Stylus 800+). or what the system identifies it as as?(Epson Stylus 800 Foomatic/stcolor (recommended))
from the command-line, do: lpq the results will list your printer queue name. That is the name to use. man lpr lpstat -a will list *all* your printer queues man lpstat
Is there not an easier way than messing wit the source files directly, ie via GUI that does the messing around ie localhost:631/?
'easier' is relative. I would rather *mess* with the configuration files, it's not a *source* file, than a guey. You *can* set the *default* printer queue with localhost:631. leave it like it came. It prints to lpr which should print to the default printer. Else 'lpr -P <printer-name>' will print to <printer-name>. Nothing is necessary unless the print is *not* arriving at the printer you expect.
Do I need to do anything after changing the unix.js source file?
restart the application so it reloads it's config files. Prudent use of the man files will answer many of your questions. Remember linux is a continual learning experience. -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711
Patrick Shanahan wrote:
* Hylton Conacher (ZR1HPC)
[04-11-04 12:43]: [snip]
how do I get the OO.org printer or perhaps 'system' configured printer configured correctly under Mozilla1.6?
edit unix.js,.....
Found the file /opt/mozilla/defaults and the 'pref("print.printer_list"' part. What should be the name added between the quotes, what my printer is (Epson Stylus 800+). or what the system identifies it as as?(Epson Stylus 800 Foomatic/stcolor (recommended))
from the command-line, do: lpq the results will list your printer queue name. That is the name to use. $lpq Printer is ready No entries $
lpstat -a will list *all* your printer queues $lpstat -a printer accepting requests since Jan 01 00:00 $
leave it like it came. It prints to lpr which should print to the default printer. should is also relative :) Especially since I use CUPS and not lpr/d
Do I need to do anything after changing the unix.js source file?
restart the application so it reloads it's config files. OK, that figures
Prudent use of the man files will answer many of your questions. Prudent or exhaustive use of the man files did not help me.
Remember linux is a continual learning experience. That should be CONTINUAL!!!! :))
-- The Little Helper ======================================================================== Hylton Conacher - Licenced Windows user Registered Linux user # 229959 at http://counter.li.org Currently using SuSE 9.0 Professional with KDE 3.1 ========================================================================
Patrick Shanahan wrote:
* Hylton Conacher (ZR1HPC)
[04-10-04 14:24]: Under the properties 'print command' field I get: 'lpr ${MOZ_PRINTER_NAME:+'-P'}${MOZ_PRINTER_NAME}' which I know is not CUPs but lpr.
how do I get the OO.org printer or perhaps 'system' configured printer configured correctly under Mozilla1.6?
I have had a look under the preferences and haven't found anything yet.
edit unix.js, find pref("print.printer_list", ""); // list of printers, separated by spaces
and add the name of your printer between the last set of double quotes in: pref("print.printer_list", "")
ie: pref("print.printer_list", "esp925gp")
If you're running KDE, simply replace the printer command with "kprinter". In Moz: File-->Print-->Properties, Print Command = kprinter. You'll get the same dialog box you get in Ooo. Dan
Dan Weisenstein wrote:
* Hylton Conacher (ZR1HPC)
[04-10-04 14:24]: how do I get the OO.org printer or perhaps 'system' configured printer configured correctly under Mozilla1.6?
I have had a look under the preferences and haven't found anything yet.
If you're running KDE, simply replace the printer command with "kprinter". In Moz: File-->Print-->Properties, Print Command = kprinter. You'll get the same dialog box you get in Ooo.
Dan, You are THE man. Tnx Now printing is working 100's on Mozilla 1.6 -- The Little Helper ======================================================================== Hylton Conacher - Licenced Windows user Registered Linux user # 229959 at http://counter.li.org Currently using SuSE 9.0 Professional with KDE 3.1 ========================================================================
* Hylton Conacher (ZR1HPC)
Dan Weisenstein wrote:
* Hylton Conacher (ZR1HPC)
[04-10-04 14:24]: how do I get the OO.org printer or perhaps 'system' configured printer configured correctly under Mozilla1.6?
I have had a look under the preferences and haven't found anything yet.
If you're running KDE, simply replace the printer command with "kprinter". In Moz: File-->Print-->Properties, Print Command = kprinter. You'll get the same dialog box you get in Ooo. Dan, You are THE man. Tnx Now printing is working 100's on Mozilla 1.6
I read your response to my post, IIANM, I believe that you will find that lpr is the same print queue that kprinter utilizes. But kprinter raises another graphical window for you to alter your print configurations. To test, 'cat ~/.lpoptions', then make a change in kprinter to your margins or print quality, etc, and again 'cat ~/.lpoptions' to see if the changes you made with kprinter are reflected in .lpoptions. So kprinter will work (also), if you need to see another window. In the same respect, you could print to xpp and achieve the same. -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711
Patrick Shanahan wrote:
* Hylton Conacher (ZR1HPC)
[04-14-04 13:04]: Dan Weisenstein wrote:
* Hylton Conacher (ZR1HPC)
[04-10-04 14:24]: how do I get the OO.org printer or perhaps 'system' configured printer configured correctly under Mozilla1.6?
I have had a look under the preferences and haven't found anything yet.
If you're running KDE, simply replace the printer command with "kprinter". In Moz: File-->Print-->Properties, Print Command = kprinter. You'll get the same dialog box you get in Ooo.
Dan, You are THE man. Tnx Now printing is working 100's on Mozilla 1.6
I read your response to my post, Sorry if it rubbed you up the wrong way a little.
IIANM, I believe that you will find that lpr is the same print queue that kprinter utilizes. But kprinter raises another graphical window for you to alter your print configurations. I am pretty sure it does, but the more graphical windows there are the easier it is for an old time Windows user like me to understand.
To test, 'cat ~/.lpoptions', then make a change in kprinter to your margins or print quality, etc, and again 'cat ~/.lpoptions' to see if the changes you made with kprinter are reflected in .lpoptions. I did the cat thing and got this: hylton@linux:~> cat ~/.lpoptions Default Epson_Stylus_800+ Special Advanced%20Faxing%20Tool%20(ksendfax) Special Mail%20PDF%20file Special Print%20to%20File%20(PDF) Special Print%20to%20File%20(PostScript) Special Send%20to%20Fax
I then changed the margin and got: hylton@linux:~> cat ~/.lpoptions Default printer kde-margin-bottom=48 kde-margin-left=24 kde-margin-right=24 kde-margin-top=100 Special Advanced%20Faxing%20Tool%20(ksendfax) Special Mail%20PDF%20file Special Print%20to%20File%20(PDF) Special Print%20to%20File%20(PostScript) Special Send%20to%20Fax I am certainly glad for the GUI as there is no way I could have remembered the syntax used there. :) I decided to change the margin back and got: hylton@linux:~> cat ~/.lpoptions Default printer Special Advanced%20Faxing%20Tool%20(ksendfax) Special Mail%20PDF%20file Special Print%20to%20File%20(PDF) Special Print%20to%20File%20(PostScript) Special Send%20to%20Fax Now I notice that Default printer is not named like it was in the first cat. How come, as I didn't change the name at all? Is it because the printer was off whilst I was catting and changing a margin?
In the same respect, you could print to xpp and achieve the same. Don't go there...my poor brain is still working on lpr :)
Thanks for the effort taken to explain to me. Hylton -- ======================================================================== Hylton Conacher - Licenced Windows user Registered Linux user # 229959 at http://counter.li.org Currently using SuSE 9.0 Professional with KDE 3.1 ========================================================================
* Hylton Conacher (ZR1HPC)
Patrick Shanahan wrote:
I read your response to my post,
Sorry if it rubbed you up the wrong way a little.
No, it did not <smile>.
IIANM, I believe that you will find that lpr is the same print queue that kprinter utilizes. But kprinter raises another graphical window for you to alter your print configurations. I am pretty sure it does, but the more graphical windows there are the easier it is for an old time Windows user like me to understand.
A better phrase: ex-windoz user
To test, 'cat ~/.lpoptions', then make a change in kprinter to your margins or print quality, etc, and again 'cat ~/.lpoptions' to see if the changes you made with kprinter are reflected in .lpoptions. I did the cat thing and got this: hylton@linux:~> cat ~/.lpoptions Default Epson_Stylus_800+ Special Advanced%20Faxing%20Tool%20(ksendfax) Special Mail%20PDF%20file Special Print%20to%20File%20(PDF) Special Print%20to%20File%20(PostScript) Special Send%20to%20Fax
I then changed the margin and got: hylton@linux:~> cat ~/.lpoptions Default printer kde-margin-bottom=48 kde-margin-left=24 kde-margin-right=24 kde-margin-top=100 Special Advanced%20Faxing%20Tool%20(ksendfax) Special Mail%20PDF%20file Special Print%20to%20File%20(PDF) Special Print%20to%20File%20(PostScript) Special Send%20to%20Fax
I am certainly glad for the GUI as there is no way I could have remembered the syntax used there. :)
I am not telling you to forgo the GUI, just showing you that you *are* using lpr.
I decided to change the margin back and got: hylton@linux:~> cat ~/.lpoptions Default printer Special Advanced%20Faxing%20Tool%20(ksendfax) Special Mail%20PDF%20file Special Print%20to%20File%20(PDF) Special Print%20to%20File%20(PostScript) Special Send%20to%20Fax
Now I notice that Default printer is not named like it was in the first cat. How come, as I didn't change the name at all? Is it because the printer was off whilst I was catting and changing a margin?
I don't know the answer to this.
In the same respect, you could print to xpp and achieve the same. Don't go there...my poor brain is still working on lpr :)
xpp is another GUI, but works in the other window managers, not just kde.
Thanks for the effort taken to explain to me.
We are meeting here to help each other. gud luk, -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711
Patrick Shanahan wrote:
* Hylton Conacher (ZR1HPC)
[04-16-04 23:45]: Patrick Shanahan wrote:
A better phrase: ex-windoz user I can't really say that as I use Windows almost daily at work and have to use it for my finances at home for Quicken 98. I will eventually get to the stage where I can run all the Windows apps I need on WINE but until then I am afraid Windows has to stay.
To test, 'cat ~/.lpoptions', then make a change in kprinter to your margins or print quality, etc, and again 'cat ~/.lpoptions' to see if the changes you made with kprinter are reflected in .lpoptions.
I did the cat thing and got this: hylton@linux:~> cat ~/.lpoptions Default Epson_Stylus_800+ Special Advanced%20Faxing%20Tool%20(ksendfax) Special Mail%20PDF%20file Special Print%20to%20File%20(PDF) Special Print%20to%20File%20(PostScript) Special Send%20to%20Fax
I then changed the margin and got: hylton@linux:~> cat ~/.lpoptions Default printer kde-margin-bottom=48 kde-margin-left=24 kde-margin-right=24 kde-margin-top=100 Special Advanced%20Faxing%20Tool%20(ksendfax) Special Mail%20PDF%20file Special Print%20to%20File%20(PDF) Special Print%20to%20File%20(PostScript) Special Send%20to%20Fax
I am certainly glad for the GUI as there is no way I could have remembered the syntax used there. :)
I am not telling you to forgo the GUI, just showing you that you *are* using lpr. OK, sorry that is how it came across as does allot of linux ie forgo the GUI and get into the CLI.
In the same respect, you could print to xpp and achieve the same.
Don't go there...my poor brain is still working on lpr :)
xpp is another GUI, but works in the other window managers, not just kde. So in actual fact xpp is the better one to use as a system I work on may not have KDE installed but maybe Fluxbox or whatever kprinter does not use?
I installed xpp and then went looking for it in the K menu but was unable to find it. I don't want to mess up my current printing but knowing how to use another GUI tool to access it is a good idea, any ideas? -- The Little Helper ======================================================================== Hylton Conacher - Licenced Windows user Registered Linux user # 229959 at http://counter.li.org Currently using SuSE 9.0 Professional with KDE 3.1 ========================================================================
* Hylton Conacher (ZR1HPC)
So in actual fact xpp is the better one to use as a system I work on may not have KDE installed but maybe Fluxbox or whatever kprinter does not use?
IMNSHO <grin>
I installed xpp and then went looking for it in the K menu but was unable to find it. I don't want to mess up my current printing but knowing how to use another GUI tool to access it is a good idea, any ideas?
ideas: 1. <alt><f2> type "xpp"<enter> 2. <from command-line>xpp -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711
* Hylton Conacher (ZR1HPC)
I did the cat thing and got this: hylton@linux:~> cat ~/.lpoptions Default Epson_Stylus_800+
btw, we were trying to determine the name of your default printer (will be the same as lpr). It is: Epson_Stylus_800+ -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711
participants (3)
-
Dan Weisenstein
-
Hylton Conacher (ZR1HPC)
-
Patrick Shanahan