On Wed, 2003-04-30 at 15:41, Yaron wrote:
> On Wed, 30 Apr 2003, Justin Haaheim wrote:
> 
> > Xlib: connection to ":0.0" refused by server
> > Xlib: No protocol specified
> 
> Before you su, try 'xhost localhost'.

Note that xhost allows *all* connections from the specified host, which
can be unsafe sometimes.  If you're on a machine with multiple user
accounts, for instance, bad things can happen.  These days, it's
generally safer to use xauth cookies.  It's kind of complicated to get
right, though..

One thing to try is looking at what the $XAUTHORITY environment variable
is set to in your normal user account.  If the variable isn't set at
all, see what file the `xauth' program says it is using, and set the
environment variable to the same file after you su.

Another thing I often do is to run `xauth list' and then cut and paste
the appropriate cookie entry onto a command-line starting with `xauth
add' in the su'ed window.

-- 
 _  _  _  _ _  ___    _ _  _  ___ _ _  __   Hors d'oeuvres--a ham
/ \/ \(_)| ' // ._\  / - \(_)/ ./| ' /(__   sandwich cut into forty
\_||_/|_||_|_\\___/  \_-_/|_|\__\|_|_\ __)  pieces.
[ Mike Hicks | http://umn.edu/~hick0088/ | mailto:hick0088 at tc.umn.edu ]
-------------- 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://shadowknight.real-time.com/pipermail/tclug-list/attachments/20030501/d703e529/attachment.pgp