On Mon, Apr 19, 2004 at 03:57:30PM +0100, MJ Ray wrote:
On 2004-04-19 15:40:07 +0100 Steve Engledow stechjo@btinternet.com wrote:
an 'xhost +' before su-ing you'll be ok.
xhost +localhost would be better if you're on a network. If you have other users, Xauthority is better.
My preference is to do a
ssh -X root@localhost
(I usually replace localhost with the name of the machine even if it is localhost, oh, and you will need ssh installed and configured to allow root logins)
This sets up an ssh login with the appropriate $DISPLAY variable set and will send X traffic over the encrypted ssh tunnel.
Adam