[NTLUG:Discuss] Slackware and Ximian Gnome

Patrick Parks patrick at patrickparks.com
Mon Sep 9 22:35:20 CDT 2002


bash-2.05a$ su
Password:
bash-2.05a# /usr/X11R6/bin/xhost
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

/usr/X11R6/bin/xhost:  unable to open display ":0.0"
bash-2.05a#



On Mon, 2002-09-09 at 21:11, MadHat wrote:
> On Mon, 2002-09-09 at 15:36, Patrick Parks wrote:
> > I ran the command as a user. it is definately weird, and I am no closer
> > to fixing it than when I started :) fun fun
> 
> su to root then run 'xhost' (with no parameters) and look at the output.
> What does that say?
> 
> > 
> > On Mon, 2002-09-09 at 13:30, MadHat wrote:
> > 
> > > This is what concerns me.
> > > 
> > > here is where it is dieing in the script
> > > "if [ -z "$DISPLAY" ]
> > > then
> > >     bail_display
> > > fi
> > > 
> > > xhost &> /dev/null
> > > if [ $? -ne 0 ]
> > > then
> > >     bail_display
> > > fi"
> > > 
> > > The first one just checks to make sure thet $DISPLAY has anything (-z
> > > means if the string is zero length).
> > > you said $DISPLAY is set to :0.0 right?
> > > 
> > > The second one is where I think it is dieing.  This is running the
> > > command 'xhost &> /dev/null' and checking for a non-zero exit status,
> > > indicating an error.  when you ran xhost, was it as root or as your
> > > user?
> > > 
> > > -- 
> > > MadHat at Unspecific.com
> > > "Anyone who understands Linux/Unix, really understands the universe.
> > >  Anyone who understands Windows, really understands Windows."
> > >           - Richard Thieme, DefCon 10, 2002 
> > > 
> > > _______________________________________________
> > > https://ntlug.org/mailman/listinfo/discuss
> > > 
> > > 
> > -- 
> > Patrick Parks
> > patrick at patrickparks.com
> > (972) 416-9927 Home
> > (469) 939-6460 Mobile
> > "May the SOURCE be with GNU"
> -- 
> MadHat at Unspecific.com
> "Anyone who understands Linux/Unix, really understands the universe.
>  Anyone who understands Windows, really understands Windows."
>           - Richard Thieme, DefCon 10, 2002 
> 
> _______________________________________________
> https://ntlug.org/mailman/listinfo/discuss
> 
> 
-- 
Patrick Parks
patrick at patrickparks.com
(972) 416-9927 Home
(469) 939-6460 Mobile
"May the SOURCE be with GNU"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://ntlug.org/pipermail/discuss/attachments/20020909/a2ec4f25/attachment.bin


More information about the Discuss mailing list