Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xdpyinfo (can't run command)
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
ealfert
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jul 2002
Posts: 86
Location: Weston, FL, US

PostPosted: Wed Jul 24, 2002 1:36 pm    Post subject: xdpyinfo (can't run command) Reply with quote

I'm trying to get information about my currently running session.
Code:

# /usr/X11R6/bin/xdpyinfo | grep dimensions: | awk '{print $2}'
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

/usr/X11R6/bin/xdpyinfo:  unable to open display ":0.0".

i also tried
Code:

# /usr/X11R6/bin/xdpyinfo -display <everything i could think of>

Any ideas (i did read the SHORT man page...not very helpful)?
_________________
Edward Alfert
RootMode, LLC
http://www.rootmode.com/
Back to top
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Wed Jul 24, 2002 1:54 pm    Post subject: Reply with quote

This means that the client does not have permissions to connect to the X server (running as a user, I guess). You can either:

xhost + localhost

from a user console. This will allow ALL local clients to connect.

If you are a bit paranoid, copy the .Xauthority file from the user to the root home directory and you'll be set (you can chmod og-r this file to prevent others from having read access to it after you copy it over).
Back to top
View user's profile Send private message
ealfert
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jul 2002
Posts: 86
Location: Weston, FL, US

PostPosted: Wed Jul 24, 2002 3:24 pm    Post subject: Reply with quote

thank you... it worked... i followed the non-paranoid option. 8)
_________________
Edward Alfert
RootMode, LLC
http://www.rootmode.com/
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