Solve the Problem of xhost: unable to open display "". In linux, If You Want to Enable X-Server, you need to set the display position. the simple xhost + command prompts us unable to open display ""; this identifier is not set for the DISPLAY environment variable. the display variable is used to set where the image is displayed. for example, if CENTOS is used, you can log on to it through the graphical interface. The value of DISPLAY is automatically set to DISPLAY =: 0.0, indicating that the DISPLAY is displayed to the local monitor. you can use a terminal tool (such as putty) to run the graphic interface program. If no setting is set, the program cannot be started. www.2cto.com if you don't want to explicitly DISPLAY images in other places, just run some background service programs, you need to perform the following operations: export DISPLAY =: 0.0 to set the explicit mode. for example, after the preceding xhost + is set to DISPLAY, the output will be: [root @ localhost lib] # xhost + access control disabled, clients can connect from any host. In addition: use the xdpyinfo command to view the details of the explicit system. author stupid