Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
init 3, startx, ran the installer, installed into /usr/local/mozilla/firefox/ and everything seemed to work fine...
I then init 5, log back in as a normal user and when I try /usr/local/mozilla/firefox/firefox I get the following error:
*** loading the extensions datasource
Xlib: connection to ":0.0" refused by server
Xlib: XDM authorization key matches an existing client!
(firefox-bin:6228): Gtk-WARNING **: cannot open display:
Anyone know why this is? Or I create a soft link to /usr/local/mozilla/firefox/firefox and then when I click on it, the cursor looks like it's working but then nothing.
Distribution: Mainly Slackware, but test run various different distros.
Posts: 77
Rep:
i found this on the justlinux forum.. not sure if it will help you or not... i dont think your issue is with firefox though.
Quote:
Thanks for the replies. I finally fixed the problem by combining all the advice I got from here. Here are the steps I followed:
1. As a normal user do a xhost + to allow anyone to connect to the local display.
2. become root using su -
3. Do an export DISPLAY=:0.0
4. Run the program
5. Grin like an idiot when it finally workes
I added export DISPLAY=:0.0 to root's .bashrc to allow it to always use the current display.
Thanks for the help.
well that fixed the error message, although now I just get an infinite loop of "*** loading the extensions datasource"...and the shortcut doesn't work either. Thanks for the help though! That was some nice knowledge that I can no store away
Just for more information, I can run the shortcut as root, but for obvious reasons, I don't want to always be logged in as root to be able to browse the net with my favorite browser. I really cannot figure out why I can't run it -_-;;
its something with your X Windows server refusing anything but root. when you are on this, are you or someone else logged in as root? cuz it says the auth key for X is in use..... you might want to check your x screen permissions
Distribution: Mainly Slackware, but test run various different distros.
Posts: 77
Rep:
when you installed it, did you install it while you were logged in as root.. have you checked the perms on the firefox folder.. may need to chown it so that your regular users can use it.. (thats a shot in the dark though)
Because of missing registration features in firefox 0.9.x you have
to start firefox as root the first time after installation.
If you get a message like
-----8<------------------snip--------------8<--------------
Xlib: connection to ":0.0" refused by server
Xlib: XDM authorization key matches an existing client!
----->8------------------snap-------------->8--------------
you have to disable the X authorization with command
'xhost +' and startup firefox.
After the initial startup you can close your X session
again by 'xhost -' and you should be able to start firefox
from now on without problems.
I had all the same problems with loading extensions, and no fixes that I found worked. This included the RedHat site.
What I did finally that did work is:
install normally as root
watch it launch firefox the first time.
cp -R /root/.mozilla /home/mydir/
chown -R me.me /home/mydir/.mozilla
then it magically worked.
The problem for me seemed to be that it was trying to create directories and file in the /usr/lib/firefox directory where I had installed the app. However, as a normal non-privileged user, I did not have write permissions there.
I use SuSE 9.1 and installed firefox 0.9.1 without any problems... the directory I installed it to was /usr/local/firefox. Try this and see if it works:
chmod -R a+rx <firefox dir> and see if that helps
Last edited by Corona4456; 07-29-2004 at 03:46 PM.
I had the same error after installing Firefox on my Debian system. I installed as root (using feta install mozilla-firefox). It worked as root, but not as another user.
Anyway, I found a simple solution that worked, after trying a few that didn't:
As the non-root user:
xhost +localhost
then try running firefox... twice. The second time and forever after, it works.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.