Firefox on SuSe
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.


Hi Mikhail,
When you say ‘the firefox script’, do you mean the installer script?
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’.
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”
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.
OK, I’ll try that. Thanks for your help :-)
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
Great fix, wonder why mozilla didn’t think of that!?
Oooooo my god! thank god for that hax! GREAT
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
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!
Great, thanks man.
Quick easy fix, many thanks. Also SuSE 9.1.
simple yet effective! Thanks!
Thank you for the information. As a newbie to Linux and Suse I had no chance without your help
Hey thanks, Never could have got it otherwise!
Tigre