Solve the problem of xhost: unabletoopendisplay ""
Source: Internet
Author: User
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
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:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service