Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
root cannot start X windows apps
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
jammib
n00b
n00b


Joined: 06 May 2003
Posts: 35
Location: UK

PostPosted: Fri Aug 15, 2003 10:53 am    Post subject: root cannot start X windows apps Reply with quote

Hi there,

I have just almost got my Gentoo install just how I want it, I just have a couple of little bugs. The most annoying of which is:

As a user, if I run ethereal everything works fine, except I cannot capture traffic. If I try and run ethereal as root I get
Quote:

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified


Gtk-WARNING **: cannot open display: :0.0


I have never had a situation where a user can do something which root cannot, does anyone have any ideas?
Back to top
View user's profile Send private message
AlterEgo
Veteran
Veteran


Joined: 25 Apr 2002
Posts: 1619

PostPosted: Fri Aug 15, 2003 11:05 am    Post subject: Reply with quote

As the user who uses X, type : " xhost + "
Then proceed as root.
Back to top
View user's profile Send private message
Celtis
l33t
l33t


Joined: 05 Jul 2003
Posts: 737

PostPosted: Fri Aug 15, 2003 11:12 am    Post subject: Reply with quote

Or
Code:
emerge sux
And use that instead or su
Back to top
View user's profile Send private message
jammib
n00b
n00b


Joined: 06 May 2003
Posts: 35
Location: UK

PostPosted: Fri Aug 15, 2003 11:21 am    Post subject: Thanks Reply with quote

Cheers for the help guys,

I already knew about the xhost +, but working in an office full of Linux techies, I didn't fancy having spurious windows popping up all over the place and have gone down the sux route.

:)
Back to top
View user's profile Send private message
markkuk
Guru
Guru


Joined: 29 Nov 2002
Posts: 446

PostPosted: Fri Aug 15, 2003 12:02 pm    Post subject: Reply with quote

Use "xhost +local:", this will allow connections from any program running on your machine.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum