Xlib error

Lennart Sorensen lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Thu Jan 27 16:09:02 UTC 2005


On Wed, Jan 26, 2005 at 06:31:00PM -0500, Matt Cahill wrote:
>   As a follow-up, it seems that I have to run 'xhost +' each time I reboot 
> (when I intend to run apps like synaptic or the Libranet Xadminmenu).  It 
> would probably be simple enough to add 'xhost +' to my startup routine, but 
> it doesn't really address why I now need to do this.  Would you have any clue 
> why it seems to reset itself?

Because it is a setting in your current X session.  It isn't saved
anywhere (why should it be?)

If you want a permanent solution, look into adding your Xauthentication
token to root's xauth collection.  Man xauth should have enough info on
using that.

Even doing this as root works although only for the current shell of
course:

export XAUTHORITY=~loggedinuser/.Xauthority
export DISPLAY=:0.0

then run programs.

xauth is the permanent solution.

Lennart Sorensen
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list