LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-25-2005, 02:51 PM   #1
Sonomatek
LQ Newbie
 
Registered: Jul 2003
Posts: 6

Rep: Reputation: 0
Firefox/Thunderbird Printing Issues on Linux Platforms


I used the in-built search engine to try and find discussions relating to printing issues with both Firefox and Thunderbird, but no articles were returned, which seemed to answer the question. I have asked this same question on mozillazine.org, but have not had any luck. In fact, I was advised to post the question to a Linux forum; naturally this one came to mind first.

I have just installed a printer on my Linux system (ProMEPIS, if anyone is interested), and neither Firefox, or Thunderbird are connecting with the print device.

Generally I would consider hardware or driver issues before looking at a specific application, but the printer responds to test pages, Konqueror, OpenOffice, and all other applications just fine.

Is this a common issue? Am I missing something in the configuration of the browser? Should I post this question in the Thunderbird forum too?

TIA

Warren
 
Old 04-27-2005, 06:29 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
You havn't found any other messages about this because it is not a common problem at all - firefox/thunderbird and so on should automatically print to whatever is on lp0. (just asking - can you do a print preview OK?)

You could try looking in:
file > print > properties

this should show you the print command that is being used.

Also check the print server/manager or whatever processes the print jobs - what happens when you try to print? The printer itself shouldn't be an issue unless it cannot handle postscript.
 
Old 04-28-2005, 12:47 PM   #3
Sonomatek
LQ Newbie
 
Registered: Jul 2003
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Simon Bridge
[B]You havn't found any other messages about this because it is not a common problem at all - firefox/thunderbird and so on should automatically print to whatever is on lp0. (just asking - can you do a print preview OK?)
Simon, thanks for responding. This has been quite a puzzle for me.

To answer your question, yes. I can print test pages from the print manager (and all other applications on the system) just fine. It seems to be only Firefox and Thunderbird that have the problems.

Quote:
Originally posted by Simon Bridge
You could try looking in:
file > print > properties

this should show you the print command that is being used.
I'm not sure if I should post the scripts or commands here or not, so I chose to err on the side of caution.

I can clearly see the commands being used by the browser, but I am not experienced enough to know if they are correct. Nor am I able to find the command line in the print manager.

Would you mind giving me a little more help on this?

TIA
 
Old 04-28-2005, 07:24 PM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
OK - this is hard to do by remote control ... "caution", BTW, indicates that you should post the scripts etc.

I'll need to know specifically about your printer setup and what firefox thinks it is. Show us what commands firefox is running to print - and tell us about your printer setup... like: make and model of printer, wether it is network or parralell or whatever.

You could try looking at the printer options in apps that print OK, and comparing those with the firefox options -this should provide a clue. If you do this, please tell us what you find (or, if you don't find anything - post the stuff you compared so we can have a look too!)
 
Old 04-29-2005, 09:58 AM   #5
Sonomatek
LQ Newbie
 
Registered: Jul 2003
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for the interest and your offers to help, Simon.

Quote:
Originally posted by Simon Bridge
I'll need to know specifically about your printer setup and what firefox thinks it is. Show us what commands firefox is running to print - and tell us about your printer setup... like: make and model of printer, wether it is network or parralell or whatever.
The printer is HP 5500 series (printer, scanner, fax, copier etc) and is connected to the computer through a 4-port USB hub. Therefore, the printer is not parallel, but USB. I'm also using the CUPS platform.

The command being used by Firefox is:
Code:
lpr ${MOZ_PRINTER_NAME:+'-P'}${MOZ_PRINTER_NAME}
Firefox print dialog box describes the print device as: PostScript/hpoffice (hpoffice is the name I gave the device when I installed it).

Quote:
You could try looking at the printer options in apps that print OK, and comparing those with the firefox options -this should provide a clue. If you do this, please tell us what you find (or, if you don't find anything - post the stuff you compared so we can have a look too!)
The applications that are printing successfully? In a word, everything. The only exceptions I've been able to find so far are Mozilla-based products (i.e. Firefox, Thunderbird, Mozilla Internet Suite), and Adobe Acrobat Reader 5.0.

Unfortunately, I am unable to find the commands that the other apps are using, but they seem to be using the same print device (i.e. hpoffice).

I hope there is enough in the above information to be able to progress.

Warren

Last edited by Sonomatek; 04-29-2005 at 10:01 AM.
 
Old 04-29-2005, 10:04 AM   #6
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692

Rep: Reputation: 45
replace the "lpr ${MOZ_PRINTER_NAME:+'-P'}${MOZ_PRINTER_NAME}

with "kprinter" or "xpp"
 
Old 04-29-2005, 09:43 PM   #7
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
OK: lpr -P <printer name> <file> is the correct command.

the MOZ_PRINTER_NAME:+'-P' is setting other options besides "-P" for print. The next reference is the printer name to print to. Presumably mozilla privides the "file" to the standard input or appends the correct name later (since it is not under user control).

It would appear that the variable MOZ_PRINTER_NAME is looking in the wrong place - I've been having a go trying to extract it but I'm having difficulty there. Striktly speaking you should be able to replace the variable names with the exact printer. Take the name of the printer queue off the print manager and insert it in where the printer name goes. (see man lpr for more) Of course, using another app to do the printing may also work

You may also want to try printing to (ps) file and viewing/printing that ... this will tell you more about where the fault lies.

If you leave off the -P MOZ_PRINTER_NAME (i.e. stick in just lpr) then no printer name will be given to lpr and it will print to the default printer. If your hp5500 is set up as the system default then that is where it should go.

Last edited by Simon Bridge; 04-29-2005 at 09:53 PM.
 
Old 04-30-2005, 09:43 AM   #8
Sonomatek
LQ Newbie
 
Registered: Jul 2003
Posts: 6

Original Poster
Rep: Reputation: 0
Simon:

Thanks again for the input. You're helping me make progress here.

Here's some information that did not occur to me to give you in the beginning.

I have been logged in as my regular user, and not as root. I discovered last night, quite by accident, that when I am logged in as root, I can print with the Mozilla apps. The Mozilla apps that I use with root access use the print command that I pasted earlier. But, when I end the root session and log back in as my regular user, the Mozilla apps no longer are able to print.

When I logged back in as the regular user, I replaced the command as suggested by rshaw, and the print attempts were successful. However, when I restarted the machine, I found the the kdeprinter command had been replaced with the original Mozilla command I pasted to the forum. My guess is that the regular user is not able to make changes that are permanent.

Now, when I check with the print manager, the permissions are "allow all users", so I don't understand why Mozilla apps are prining in root, but not as the regular user.

Warren

P.S. Is Waiheke Island in the north or south?

Last edited by Sonomatek; 04-30-2005 at 09:44 AM.
 
Old 04-30-2005, 06:58 PM   #9
bill_from_tampa
LQ Newbie
 
Registered: Jan 2005
Location: Tampa
Distribution: Debian testing
Posts: 26

Rep: Reputation: 4
I too had problems printing in firefox until I changed the print command to "kprinter".
See this discussion, amongst many:
http://www.granneman.com/webdev/brow...tinginmozilla/
 
Old 05-01-2005, 01:56 AM   #10
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
When using the kprinter --stdin command to print, you'll probably have to remember not to use Mozilla-print's interface for things like multi-copies and so on. You'd also more or less have to be using KDE.

Sonomatek: Yeah - the bit about root would have been helpful. Try looking at the permissions in the lpr command. However, if your are running KDE - the kprint --stdin command should fix everything like the noob says, and give you more flexability than mozprint does.

(Aside: Waiheke Island - pronounced "why-HIKKY" - is in the South Pacific, in the main harbour of Auckland City, New Zealand. It's difficult to know how to reply to such questions tho, when you havn't stuck your own location in your profile. Hint hint. )
 
Old 05-04-2005, 12:31 PM   #11
Sonomatek
LQ Newbie
 
Registered: Jul 2003
Posts: 6

Original Poster
Rep: Reputation: 0
Simon, sorry to take so long to reply. I've been busy as all get out.

Quote:
Originally posted by Simon Bridge
(Aside: Waiheke Island - pronounced "why-HIKKY" - is in the South Pacific, in the main harbour of Auckland City, New Zealand. It's difficult to know how to reply to such questions tho, when you havn't stuck your own location in your profile. Hint hint. ) [/B]
I was born and raised in Sydney; living there for the first 37 years of my life. Nowadays I am a U.S. citizen located in California, U.S.A.

I promise not to make any Kiwi jokes, if you promise not to make any Aussie jokes ;-)

Thanks for all your help, Simon.

Warren
 
Old 05-05-2005, 05:35 AM   #12
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Sure, we'll just make George W jokes ...

Now, at the top of the page is a button marked User CP - you can enter your location and distro in there and it'll show up in the sidebar like mine. It can really help you get good replies around here. Sometimes, if someone is close to you, you can end up with technical assistance at your doorstep - this community thing can be like that.

I have received a motherboard, cpu and a modem this way ... back when I was starting out and managed to appall someone with my archaic system.
 
Old 05-12-2005, 05:58 AM   #13
numro
LQ Newbie
 
Registered: May 2005
Location: Sydney
Distribution: gentoo
Posts: 2

Rep: Reputation: 0
Sonomatek,

It is a good idea to check the stderr file for your login session.
If a mozilla program can not print then it outputs an error to
stderr. You just need to see it. For example with gnome you
look in $HOME/.xsession-errors. This tip applies to much
more than just mozilla based programs.

A common cause could be that /var/tmp is not writeable.
If that is the case then kprint or any other command wont
make any difference.

You know that cups and lpr were working. So it had to be
the mozilla programs. Well done for working out what you
did.

Enjoy.
numro
 
Old 05-21-2005, 04:28 AM   #14
daspooky
LQ Newbie
 
Registered: Nov 2004
Posts: 23

Rep: Reputation: 15
Hello everyone,

I'm postign to say I have the same problem as Sonomatek. I cannot print from firefox (didn't test thunderbird) when I'm logged in as a regular user. When I login as root, pirinting works fine.
I'm using Firefox 1.0.4 on slackware linux, with the printer command: lpr ${MOZ_PRINTER_NAME:+'-P'}${MOZ_PRINTER_NAME}. But I tried with kprinter, and that also doesn't work.

Printing works fine from any other application on my system, even acrobat reader. The only problem seems to be with mozilla products.

I checked, and /var/tmp is writable here.

Greetings,

Raf
 
Old 05-21-2005, 08:41 AM   #15
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Yeah?

I installed firefox just the other day, and I decided to see if I had the same trouble ... you know what, I did. But I just now fixed it.

In printer settings - get rid of all that ${MOZPRINTER+"-P"} etc stuff ... replace with

lpr -P <printer queue name>

that's all there was to it. for eg. I called my locally connected printer "laserjet3p" (cause that's wot it is) so my entry was

lpr -P laserjet3p

and I can print the displayed web pages just fine and dandy.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Firefox and Thunderbird with the same config on Linux and Windows paingrille Linux - Software 6 05-19-2005 12:42 AM
Bad printing from Thunderbird payasam Linux - Software 0 11-03-2004 06:47 AM
Thunderbird and Firefox, Thunderbird doesnt launch firefox? sovietpower Slackware 1 11-01-2004 12:51 PM
dual boot of two linux platforms is it possible? keeknspin Linux - Newbie 1 12-31-2003 06:47 AM
Linux on multiple hardware platforms BobRobertson LinuxQuestions.org Member Success Stories 2 03-18-2003 12:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration