So I'm trying to run some GUI programs with X11 Forwarding. When signing in as a regular user, X11 is good. However when I switch to root interactive mode, I can't get it to work permanently. I can get it to run for the current session using
Code: Select all
xauth add $(xauth -f ~user_name/.Xauthority list|tail -1)
but I have to run the same command during each session. I also tried adding
localuser:root to xhost, but that didn't work either. Is there any way to make it permanent?