Unix Technical Forum

CUPS, Mozilla and Firefox

This is a discussion on CUPS, Mozilla and Firefox within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hi, I just setup my printer (HP PSC 750) with CUPS and it prints OK, except for Mozilla and ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 04:00 PM
Kiki Novak
 
Posts: n/a
Default CUPS, Mozilla and Firefox

Hi,

I just setup my printer (HP PSC 750) with CUPS and it prints OK, except for
Mozilla and Firefox. I've searched the docs and, like all too often alas,
found a babylonian mess of HOWTO's, hints and various do's and don't's.

Question: is there a *simple* way to tell Mozilla and/or Firefox to use
CUPS? I understand some folks use a daemon called xprint, but looks like
this thing is pretty much bug-infested.

Suggestions?

Niki Kovacs
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 04:00 PM
Jacek =?ISO-8859-2?Q?K=2E_B=B3aszkowski?=
 
Posts: n/a
Default Re: CUPS, Mozilla and Firefox

Et circa horam Thursday 30 of September 2004 12:18, clamavit Kiki Novak:

> Hi,
>
> I just setup my printer (HP PSC 750) with CUPS and it prints OK, except
> for Mozilla and Firefox. I've searched the docs and, like all too often
> alas, found a babylonian mess of HOWTO's, hints and various do's and
> don't's.
>
> Question: is there a *simple* way to tell Mozilla and/or Firefox to use
> CUPS? I understand some folks use a daemon called xprint, but looks like
> this thing is pretty much bug-infested.
>
> Suggestions?


Hello,
since you seem to be using KDE, I recommend setting print command to
"kprinter" in Mozilla. Then, if your KDE print system is properly
configured to work with CUPS, you will be able to use it (and its nice
features) with Mozilla.

Regards, jkb

--
Jacek K. Błaszkowski
GAT/L/MU d+ s+:+ a-- C++$ UL++$ US+> P L++ E--- W+ N++ o+ K- w+$ O?
M> V? PS+ PE++ Y-- PGP++ t 5? X R tv b++++ DI++ D+ G e h-- r++ y++
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 04:00 PM
Kiki Novak
 
Posts: n/a
Default Re: CUPS, Mozilla and Firefox

Jacek K. B?aszkowski wrote:

> Hello,
> since you seem to be using KDE, I recommend setting print command to
> "kprinter" in Mozilla. Then, if your KDE print system is properly
> configured to work with CUPS, you will be able to use it (and its nice
> features) with Mozilla.


Gratias ago maximas, fratre.

NK

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-19-2008, 04:00 PM
Thomas Ronayne
 
Posts: n/a
Default Re: CUPS, Mozilla and Firefox

Kiki Novak wrote:

>Hi,
>
>I just setup my printer (HP PSC 750) with CUPS and it prints OK, except for
>Mozilla and Firefox. I've searched the docs and, like all too often alas,
>found a babylonian mess of HOWTO's, hints and various do's and don't's.
>
>Question: is there a *simple* way to tell Mozilla and/or Firefox to use
>CUPS? I understand some folks use a daemon called xprint, but looks like
>this thing is pretty much bug-infested.
>
>Suggestions?
>
>Niki Kovacs
>
>

Assuming Slackware 10 installed completely? Did you remove LPRng and
CUPS and reinstall CUPS? Can you print from the command line?

If all that's true, and you CAN print from the command line with "lp
file" (or "lpr file"), then click the printer icon in either Mozilla or
Firefox and a window should open that defines the printer as "print to
printer" and "Printer PostScript/default." Click the "Properties"
button, your should see "Letter (8.5x11 inch)" (or whatever size you use
by default), "lpr ${MOZ_PRINTER_NAME:+'-P'}${MOZ_PRINTER_NAME}" and some
stuff about color and margins. You can change "lpr" to "lp" (either is
fine). If that window looks like that, you're good to go.

If the above is true if (and only if so) and you CAN print from the
command line (forget about KDE or GNOME, it ain't gonna work if it
doesn't work from the command line first).

As a last resort, log in as root and run the following shell program
(which relinks everything for CUPS if you didn't remove LPRng):

#!/bin/ksh
#
# set up a Slackware Linux system to
# use CUPS if LPRng was installed
#
# must be executed by root
#
cd /usr/bin
rm lp lp-lprng lpq lpr lprm lpstat
ln -s lpstat-cups lpstat
ln -s lprm-cups lprm
ln -s lpr-cups lpr
ln -s lpq-cups lpq
ln -s lp-cups lp
cd /usr/sbin
rm lpc
ln -s lpc-cups lpc

You can also, although this generally isn't necessary, define the
environment variable LPDEST as your printer's name; e.g.,

export LPDEST=whatever

where "whatever" is the name you gave your printer when you set up CUPS.
Both lp and lpr will use this environment variable as the default
printer for a given user (if you only have one printer, put LPDEST in
/etc/profile) and some printing problems might just go away.

Hope this helps.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-19-2008, 04:07 PM
Jim Diamond
 
Posts: n/a
Default Re: CUPS, Mozilla and Firefox

On 2004-09-30, Thomas Ronayne <trona@REMOVETHISameritech.net> wrote:

> As a last resort,

Why is this a last resort? It seems quicker (except for your
omission) than removepkg'ing (a very slow operation) and installpkg'ing.

> log in as root and run the following shell program (which relinks
> everything for CUPS if you didn't remove LPRng):

Not quite everything.
>
> #!/bin/ksh
> #
> # set up a Slackware Linux system to
> # use CUPS if LPRng was installed
> #
> # must be executed by root
> #
> cd /usr/bin
> rm lp lp-lprng lpq lpr lprm lpstat

No need to rm lp-lprng
rm lp lpq lpr lprm lpstat cancel
> ln -s lpstat-cups lpstat
> ln -s lprm-cups lprm
> ln -s lpr-cups lpr
> ln -s lpq-cups lpq
> ln -s lp-cups lp

ln -s cancel-cups cancel
> cd /usr/sbin
> rm lpc
> ln -s lpc-cups lpc


Cheers

Jim
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:09 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com