LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-13-2009, 05:26 AM   #1
dunric
Member
 
Registered: Jul 2004
Distribution: Void Linux, former Slackware
Posts: 498

Rep: Reputation: 100Reputation: 100
Unable to print from Firefox


Hi fellow Slackers,

can anybody else confirm issue with printing from Firefox in Slackware 13.0 (32bit branch) ?
Firefox is able to create a print preview, even properly print to a file (both PostScript and PDF) but if I select to print to a CUPS printer, printing "silently" fails - no error message, no error or any other record in CUPS logs

Whereas CUPS printer is configured properly, printing works from any other print dialogs in any other application. I even checked printing with lpr and it works too. I've found firefox uses as print command print.postscript.print_command and print.print_command set to lpr ${MOZ_PRINTER_NAME:+-P"$MOZ_PRINTER_NAME"} .
Is there any way how to make Firefox "verbose" so I'd get better chance to figure out what's wrong ?

Thx

David

p.s. Printing from Seamonkey works but I'd like to use Firefox anyway.

Last edited by dunric; 10-13-2009 at 06:40 AM.
 
Old 10-13-2009, 06:52 AM   #2
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
Try setting your printer as the default printer in CUPS if you have not already done that.
 
Old 10-13-2009, 08:32 AM   #3
dunric
Member
 
Registered: Jul 2004
Distribution: Void Linux, former Slackware
Posts: 498

Original Poster
Rep: Reputation: 100Reputation: 100
Quote:
Originally Posted by tronayne View Post
Try setting your printer as the default printer in CUPS if you have not already done that.
Yep, I've already did it - without an effect.
 
Old 10-13-2009, 08:48 AM   #4
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
Generally, Firefox "just works" if, say, you can
Code:
echo "the quick brown fox jumped over the lazy dog." | lp
and you will see something like
Code:
request id is InkJet-32 (1 file(s))
"InkJet" is the name of the printer in CUPS. If you execute lpstat you should see something like this
Code:
lpstat -t
scheduler is running
system default destination: InkJet
device for InkJet: socket://192.168.1.15
InkJet accepting requests since Tue 13 Oct 2009 09:38:36 AM EDT
printer InkJet is idle.  enabled since Tue 13 Oct 2009 09:38:36 AM EDT
Of course, your settings may vary but your should see something similar -- if you don't, Firefox won't either and it might be worth a
Code:
/etc/rc.d/rc.cups stop
/etc/rc.d/rc.cups start

then

lpstat -t
[EDIT]
You can also open the error console (in the tools drop down or CTRL-SHIFT-J).

Hope this helps some.

Last edited by tronayne; 10-13-2009 at 08:53 AM.
 
Old 10-13-2009, 02:00 PM   #5
dunric
Member
 
Registered: Jul 2004
Distribution: Void Linux, former Slackware
Posts: 498

Original Poster
Rep: Reputation: 100Reputation: 100
tronayne> I did everything you suggested, lpstat outputs
Code:
scheduler is running
system default destination: hplj1010
device for hplj1010: ipp://orbit/printers/hplj1010
hplj1010 accepting requests since Tue Oct 13 20:38:31 2009
printer hplj1010 is idle.  enabled since Tue Oct 13 20:38:31 2009
printing through lp to default printer also works
Code:
request id is hplj1010-11 (1 file(s))
.

Unfortunately Firefox error console does not show anything after an unsuccessful print attempt.

But thank you for trying though.

I'd like to try replace firefox default printing dialog with Xfce's xfprint4 or KDE's kprinter helper. Does anybody know how to set it up in current Firefox version ? I did googled instructions about changing mentioned print.postscript.print_command and print.print_command options with printing helper like /usr/bin/xfprint4 but Firefox completely ignores these settings now. At least from the Slackware's stock build.
 
Old 10-14-2009, 05:34 AM   #6
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
Something you might want to try -- shut down Firefox, cd ~/.mozilla, mv firefox firefox.bak then start Firefox. That will create a new ~/.mozilla/firefox directory (if you look at the prefs.js file in that directory, there won't be anything about the printer yet). Then just print the page you're on -- that should pop up the printing window and you should see your printer, select it and see if it'll print (and, if it does, who knows what evil lurks in the dark of the night). If that works, you can copy your bookmarks and the like from the back up direcotry; if it doesn't work, well, then I dunno.
 
Old 10-14-2009, 08:54 AM   #7
dunric
Member
 
Registered: Jul 2004
Distribution: Void Linux, former Slackware
Posts: 498

Original Poster
Rep: Reputation: 100Reputation: 100
I've finally discovered the issue was caused by bug in CUPS ipp backend configuration. See STR #2750: auth-info-required not set on browsed printer for details.
Besides updating to current CUPS version 1.4.1 or backporting patch to Slackware stock version 1.3.11, you may also edit /etc/cups/printers.conf and comment in AuthInfoRequired option in IPP printer definition as a workaround.

 
Old 10-15-2009, 09:42 AM   #8
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
Glad to know you got it going.
 
  


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
unable to print kpachopoulos Debian 2 06-23-2006 04:44 PM
Unable to Print from Gimp mykrob Linux - Software 2 07-11-2005 10:50 AM
unable to print through Samba beowulf405 Linux - Newbie 4 07-03-2004 07:45 PM
hp720c unable to print ekdya Linux - Hardware 9 10-06-2003 08:06 AM
Unable to print Bouddha Linux - General 1 09-03-2002 06:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:48 AM.

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