Xlib: connection to ":0.0" refused by server Xlib: No protocol specified xhost: unable to open display ":0.0"
when running a program, you probably need to add the user to the X server access list.
You can add a user to the X server access list with
# xhost +local:username
This allows "username" to connect to the local running X server.
[@more@]来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/786540/viewspace-1009276/ ,如需转载,请注明出处,否则将追究法律责任。