Solve the problem of xhost: unabletoopendisplay ""
Developer on Alibaba Coud: Build your first app with APIs, SDKs, and tutorials on the Alibaba Cloud. Read more ＞
Solve the problem of xhost: unabletoopendisplay & quot; In linux, if you want to enable X-Server, you need to set the display position. the simple xhost + command prompts us that the unabletoopendisplay & quot; flag is not set for the DISPLAY environment variable. the DISPLAY variable is used...
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
This article is an English version of an article which is originally in the Chinese language on aliyun.com and is provided for information purposes only. This website makes no representation or warranty of any kind, either expressed or implied, as to the accuracy, completeness ownership or
reliability of the article or any translations thereof. If you have any concerns or complaints relating to the article, please send an email, providing a detailed description of the concern or
complaint, to firstname.lastname@example.org. A staff member will contact you within 5 working days. Once verified, infringing content will be removed immediately.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
and provide relevant evidence. A staff member will contact you within 5 working days.