After doing a sudo, I get this error:
X11 connection rejected because of wrong authentication.
xterm.xauth list as the non-root user. You should see something like:machinename/unix:14 MIT-MAGIC-COOKIE-1 058aexd13d0436b3463abd79acd312
echo $DISPLAY to see which number is used for this host. (eg localhost:14.0 means 14)sudo -iauth add machinename/unix:14 MIT-MAGIC-COOKIE-1 058aexd13d0436b3463abd79acd312 34