Check the DISPLAY value of the user who logged in for the first time => echo $DISPLAY Check the xauth value => xauth list Switch to the user to launch X11 (su or sudo) Add the xauth value you checked earlier => xauth add ~~~~~~~~~~~~~~~~ Add the display value checked earlier => setenv DISPLAY or export DISPLAY=