24 November 2004

Firefox on SuSe

Posted by Mikhail Esteves under: LAMP; Tips .

I just installed SuSe 9.1, downloaded Mozilla Firefox and happily ran the installer. I was immediately greeted with:

Xlib: connection to “:0.0” refused by server
Xlib: No protocol specified

(firefox-installer-bin:10674): Gtk-WARNING **: cannot open display:


The simplest way to fix it is to open the ‘firefox’ script and add “xhost +” to the top of the file (just before the script starts), and add “xhost -” just before the EOF at the bottom of the file. This solved the problem for me. I installed firefox as root into the /opt/firefox directory.



15 Comments so far...

Frank Says:

1 December 2004 at 7:07 pm.

Hi Mikhail,

When you say ‘the firefox script’, do you mean the installer script?

Mikhail Says:

2 December 2004 at 6:54 pm.

Hi Frank: I mean the actual script that runs the ‘firefox-bin’ executable. It’s available in your installation directory and is simply named ‘firefox’.

frank Says:

3 December 2004 at 3:35 am.

No such file. There IS a script called ‘firefox-installer’, but if I add those lines to this file I get:

Xlib: connection to “:0.0” refused by server
Xlib: No protocol specified

xhost: unable to open display “:0.0”
Xlib: connection to “:0.0” refused by server
Xlib: No protocol specified

(firefox-installer-bin:4911): Gtk-WARNING **: cannot open display:
Xlib: connection to “:0.0” refused by server
Xlib: No protocol specified

xhost: unable to open display “:0.0”

Mikhail Says:

3 December 2004 at 2:50 pm.

Frank: You’re trying to edit the installer. You need to install Firefox first. If you’re using SuSe, I suggest installing to /opt/firefox. Once you do that, you’ll find the ‘firefox’ script at /opt/firefox/. This is the file you need to add those lines to.

Secondly, if the installer itself is a problem, run it as ‘root’. Login to GNOME/KDE as root and then run it. This should solve your problem. If you login as yourself, first do a ‘xhost +’ in the command line before doing a ‘su’ or ‘sudo’ for installation.

frank Says:

3 December 2004 at 4:16 pm.

OK, I’ll try that. Thanks for your help :-)

frank Says:

5 December 2004 at 12:14 am.

That worked: I had to install firefox as root FROM THE GUI, then edit the script, and only then can FF be used by non-root users. At least on Suse 9.1

Carit Benike Says:

14 January 2005 at 9:03 pm.

Great fix, wonder why mozilla didn’t think of that!?

dennis Says:

10 March 2005 at 5:52 am.

Oooooo my god! thank god for that hax! GREAT

Mohammed Says:

16 May 2005 at 10:52 pm.

Thanks very much, your directives worked fine for me.
I had same problem, was NOT able to run firefox after installed it, just added the little commands into the firfox file and —> IT WORKED
THANKS

Paul Says:

21 May 2005 at 5:56 pm.

Just wanted to add my thanks to the list. I was completely baffled. For that matter, I still am, but at least firefox is working!

wea Says:

30 May 2005 at 3:19 pm.

Great, thanks man.

CB Says:

7 July 2005 at 6:47 am.

Quick easy fix, many thanks. Also SuSE 9.1.

Vipul Says:

8 July 2005 at 6:54 am.

simple yet effective! Thanks!

Robert Cassidy Says:

23 August 2005 at 8:43 pm.

Thank you for the information. As a newbie to Linux and Suse I had no chance without your help

Tigre(Gary Blessing) Says:

21 September 2005 at 10:49 pm.

Hey thanks, Never could have got it otherwise!

Tigre

Leave a Reply

Browse

Photography

Projects

Pages

Calendar

November 2004
M T W T F S S
« Oct   Dec »
1234567
891011121314
15161718192021
22232425262728
2930  

Categories

www.flickr.com

Use OpenDNS