Firefox can't open display
Hi: I tried installing Firefox 1.0 on two Suse 9.1 machines. They have different updates applied. One machine complained while installing, the other complains when the user tries to run. # Xlib: connection to ":0.0" refused by server Xlib: XDM authorization key matches an existing client! (firefox-bin:5441): Gtk-WARNING **: cannot open display: Any suggestions? Thanks. -- _____________________ Christopher R. Carlen crobc@sbcglobal.net SuSE 9.1 Linux 2.6.5
* Chris Carlen <crobc@sbcglobal.net> [02-19-05 21:17]:
I tried installing Firefox 1.0 on two Suse 9.1 machines. They have different updates applied. One machine complained while installing, the other complains when the user tries to run.
# Xlib: connection to ":0.0" refused by server Xlib: XDM authorization key matches an existing client!
(firefox-bin:5441): Gtk-WARNING **: cannot open display:
You are trying to start an X app as root. Try to start it as <user>. -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery
Patrick Shanahan wrote:
* Chris Carlen <crobc@sbcglobal.net> [02-19-05 21:17]:
I tried installing Firefox 1.0 on two Suse 9.1 machines. They have different updates applied. One machine complained while installing, the other complains when the user tries to run.
# Xlib: connection to ":0.0" refused by server Xlib: XDM authorization key matches an existing client!
(firefox-bin:5441): Gtk-WARNING **: cannot open display:
You are trying to start an X app as root. Try to start it as <user>.
First, to install the program into a system path, one must be root. The installer is a GUI program, thus must be run as root. Furthermore, Firefox demands to be started as root the first time, so it can set up some files in its install path. Then you can run it as a user. I have had incidences of the *installer* giving the above error, and the application giving the error under the three conditions: 1. root starts installer 2. root starts app 3. user starts app Which one happens when is inconsistent and irreproducable. One one machine, the user can never start the app, though root was able to install. On another machine the results were different. Some errors installing, user entered xhost +localhost Then it worked. But this doesn't work on the other machine. -- _____________________ Christopher R. Carlen crobc@sbcglobal.net SuSE 9.1 Linux 2.6.5
On Saturday 19 February 2005 21:06, Chris Carlen wrote:
Patrick Shanahan wrote:
* Chris Carlen <crobc@sbcglobal.net> [02-19-05 21:17]:
I tried installing Firefox 1.0 on two Suse 9.1 machines. They have different updates applied. One machine complained while installing, the other complains when the user tries to run.
# Xlib: connection to ":0.0" refused by server Xlib: XDM authorization key matches an existing client!
(firefox-bin:5441): Gtk-WARNING **: cannot open display:
You are trying to start an X app as root. Try to start it as <user>.
First, to install the program into a system path, one must be root. The installer is a GUI program, thus must be run as root.
Furthermore, Firefox demands to be started as root the first time, so it can set up some files in its install path. Then you can run it as a user.
I have had incidences of the *installer* giving the above error, and the application giving the error under the three conditions:
1. root starts installer 2. root starts app 3. user starts app
Which one happens when is inconsistent and irreproducable. One one machine, the user can never start the app, though root was able to install. On another machine the results were different. Some errors installing, user entered
xhost +localhost
Then it worked. But this doesn't work on the other machine.
-- _____________________ Christopher R. Carlen crobc@sbcglobal.net SuSE 9.1 Linux 2.6.5
The error you report in your first post happens when you are logged in kde as a mortal user, and then either from xterm you give su, or log in as root from another console. Close the current KDE session and login as root. Sunny -- Get Firefox http://www.spreadfirefox.com/?q=affiliates&id=10745&t=85
* Chris Carlen <crobc@sbcglobal.net> [02-19-05 22:08]:
xhost +localhost
Then it worked. But this doesn't work on the other machine.
did you try 'kdesu firefox' or 'sudo firefox' or 'sux firefox' or logging into an X session as root? -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery
Patrick Shanahan wrote:
* Chris Carlen <crobc@sbcglobal.net> [02-19-05 22:08]:
xhost +localhost
Then it worked. But this doesn't work on the other machine.
did you try 'kdesu firefox' or 'sudo firefox' or 'sux firefox' or logging into an X session as root?
1. I never run X sessions as root. 2. I use sux at a Konsole prompt to become root with the ability to run X programs, to install systemwide any applications that have GUI installers such as OOo, Mozilla, and Fx. 3. Then I run those programs as user. Thanks for input. -- _____________________ Christopher R. Carlen crobc@sbcglobal.net SuSE 9.1 Linux 2.6.5
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Chris Carlen wrote: <snip>
First, to install the program into a system path, one must be root. The installer is a GUI program, thus must be run as root. <snip>
Why aren't you just installing the rpm version with YaST? There's one available here: http://linux01.gwdg.de/~pbleser/index.php HTH & regards, - - Carl - -- ____________________________________________________________________ C. E. Hartung Business Development & Support Services http://www.cehartung.com/ carlh@cehartung.com Dover Foxcroft, Maine, USA Public Key #0x68396713 Reg. Linux User #350527 http://counter.li.org/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCGAsYusxgymg5ZxMRAg0bAJ4hpufEh5Sqhq5U26swJmTkVi+HCwCfZm37 tHW7NAfIAOfCXuMGj1+Pjro= =9v0u -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Carl E. Hartung wrote:
There's one available here: http://linux01.gwdg.de/~pbleser/index.php
Oops! <blush> I forgot where the rpms actually came from! I'm on 9.2, but there are rpms for SuSE 9.1 available, as well. The original MozillaFirefox ver. 1.0-2.1 rpm can be downloaded from this link: ftp://mirrors.mathematik.uni-bielefeld.de/pub/linux/suse/apt/SuSE/9.1-i386/RPMS.mozilla/MozillaFirefox-1.0-2.1.i586.rpm There's a delta (uptate) rpm bringing the version up to 1.0-4.3 (must be installed on top of the original): ftp://mirrors.mathematik.uni-bielefeld.de/pub/linux/suse/apt/SuSE/9.1-i386/RPMS.update/MozillaFirefox-1.0-4.3.i586.rpm regards, - - Carl - -- ____________________________________________________________________ C. E. Hartung Business Development & Support Services http://www.cehartung.com/ carlh@cehartung.com Dover Foxcroft, Maine, USA Public Key #0x68396713 Reg. Linux User #350527 http://counter.li.org/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCGBO3usxgymg5ZxMRAr7TAJ0cDwqWpYcsw7pIb1UDUrsXyB+zxACeNKiu YTX3H4HmySZ0Up2DJRSifHU= =pa+6 -----END PGP SIGNATURE-----
Chris Carlen wrote:
First, to install the program into a system path, one must be root. The installer is a GUI program, thus must be run as root.
OK, so you start the installer using kdesu from a user session, right?
Furthermore, Firefox demands to be started as root the first time, so it can set up some files in its install path. Then you can run it as a user.
I wasn't aware of that - I don't believe I went through that step. /Per Jessen, Zürich -- http://www.spamchek.com/freetrial - sign up for your free 30-day trial now!
participants (5)
-
Carl E. Hartung
-
Chris Carlen
-
Patrick Shanahan
-
Per Jessen
-
Sunny