LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-04-2004, 11:24 AM   #1
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203

Rep: Reputation: 45
xterm problems


Hi.... i want to start the firefox but i have some problems with the X ...

I open a xterm

i run
xhost + localhost
and then i execute the command for the firefox


Xlib:connection to ":0.0: refused by server
Xlib: XDM authorization key matches an existing client


(firefox-bin:5404) : Gtk-Warning **:cannot open display:


If i ran the xterm as root everything works fine...
Any suggestion??
Thx
 
Old 10-04-2004, 01:18 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
More input?

Who is the user running the x-session, as which user
are you trying to invoke firefox?


Cheers,
Tink
 
Old 10-04-2004, 03:10 PM   #3
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203

Original Poster
Rep: Reputation: 45
I am running the xterm and the command as a normal user..
If i ran them as root (xterm+firefox) evrythiing workks fine
 
Old 10-04-2004, 03:25 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
You still didn't say who's running X ...


Cheers,
Tink
 
Old 10-04-2004, 06:41 PM   #5
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203

Original Poster
Rep: Reputation: 45
the suse's normal user
 
Old 10-04-2004, 06:52 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Is your firefox run suid to root or something silly
like that?
ls -l `which firefox`


Cheers,
Tink
 
Old 10-04-2004, 07:08 PM   #7
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
Run 'xhost +local:'.
 
Old 10-05-2004, 02:11 PM   #8
pjfasi
LQ Newbie
 
Registered: Aug 2004
Posts: 13

Rep: Reputation: 0
I have the same problem, but it only happens when I'm at runlevel 5. It works fine in runlevel 3.

what does this command do ? Run 'xhost +local:'.
 
Old 10-05-2004, 09:25 PM   #9
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
'xhost +local:' allows all local users to connect to the X server.
 
Old 10-09-2004, 02:39 PM   #10
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203

Original Poster
Rep: Reputation: 45
xm....

Okey i have done what u have told me so far.....

alaios@akroneiro:~> ls -l `which firefox`
lrwxrwxrwx 1 root root 26 2004-10-04 19:07 /usr/local/bin/firefox -> /usr/share
/firefox/firefox
alaios@akroneiro:~> ls -l /usr/share/firefox/firefox
-rwxr-xr-x 1 root root 6694 2004-09-14 10:00 /usr/share/firefox/firefox
alaios@akroneiro:~> xhost +local:
non-network local connections being added to access control list
alaios@akroneiro:~> firefox
alaios@akroneiro:~> (The firefox don't start)

Any suggestion?
 
Old 10-09-2004, 03:49 PM   #11
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
That's because firefox requires libraries which it
can't find because you're using a symlink to the
executable? Make a script that cd's into /usr/share/firefox
and THEN start firefox from there.


Cheers,
Tink
 
Old 10-10-2004, 01:41 AM   #12
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203

Original Poster
Rep: Reputation: 45
Unhappy thx...but

I have tried the following in xterm
/usr/share/firefox/firefox

but still nothing
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
xterm - howto lauch an xterm into a specific directory jobano Linux - Software 11 01-30-2023 04:45 AM
Xterm gary.chan Linux - Software 2 09-20-2007 11:51 PM
how is black xterm background in IceWM when issue a xterm command? BRAHmS Linux - Software 1 02-14-2005 03:51 AM
Problems opening xterm on linux from windows using xvision remote program starter c.santosh Linux - General 0 09-12-2004 12:46 PM
xterm wogga Linux - Software 7 06-02-2004 07:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration