I've installed Debian 8 since a week, but I can not run any graphical application from console with the root user. Infact, when I run xampp (or any other program) I get the following error
root# /opt/lampp/manager-linux-x64.run
No protocol specified
No protocol specified
Unknown Error couldn't connect to display ":0"
I've googled the error and tried any suggestion, but haven't solved the problem.
This is my Xauthority
root# echo $XAUTHORITY
/root/.Xauthority
This is my DISPLAY variable
root# echo $DISPLAY
:0
The strange fact is that with my user (not the root one) I don't have any problem and I can run any graphical application. The DISPLAY variable is the same of the root one:
user# echo $DISPLAY
:0
I also tried the suggestions here --> Why can't I run GUI apps from 'root': “No protocol specified”?:
root# xauth + root
xauth: (argv):1: unknown command "+"
and the command
export XAUTHORITY=~/.Xauthority
doesn't have any effects
xhost +
instead ofxauth +
? Note that~
is expanded in the home directory... so it depends on how you gain root. – Hastur Mar 01 '17 at 21:59xhost +
does work as a temporary measure before going in assudo
. Try this: open a terminal, writexhost +
, gain the root accesssu -
, try to run a graphic program (e.g.xlogo
)... Sorry I've to go. – Hastur Mar 01 '17 at 22:13