In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how to solve the error unable to open display of xhost command under linux". In the daily operation, I believe that many people have doubts about how to solve the problem of xhost command error report unable to open display under linux. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubt of "how to solve the error report unable to open display of xhost command under linux". Next, please follow the editor to study!
Execute xhost command under linux to report error: unable to open display, solution. When entering the graphical interface through xhost under linux, error "unable to open display" is often reported.
The steps under linux are as follows:
1 、:
Copy the contents to the clipboard
[root@localhost ~] # vncserver
New 'localhost:1 (root)' desktop is localhost:1
Starting applications specified in / root/.vnc/xstartupLog file is / root/.vnc/localhost:1.log
[root@localhost ~] # export DISPLAY=localhost:1
[root@localhost ~] # xhost +
Access control disabled, clients can connect from any host
When setting up xhost, the problems with unable to open display can generally be solved by the above methods.
2. Log in as root user
Enter the command xdpyinfo and record the string after name of display:, such as name of display:127.0.0.1:1.0
Executing the xhost + command (making it accessible to all customers)
The returned information is: access control disabled,clients can connect from any host
If xhost + cannot be executed, you can execute it by typing the command export DISPLAY=:0
Execute xhost + again
Xhost + ip (name indicates that the ip machine can use the service)
Log in as oracle user
If the string after name of display: is 127.0.0.1 after performing xdpyinfo under root login, the string is 127.0.0.1
Then execute export DISPLAY=:1.0 under the oracle user
Then execute the xdpyinfo command. If a message appears, you have succeeded.
It is estimated that the xhost problem of installing oracle under linux can be solved.
3. Download and install Xshell 5 on your computer
4. Choose which Linux system to connect to
5. Enter the user name and password for the connection
6. Enter the password for the connection
Click OK here to start the connection
8. Connect successfully
9. Command startx prompt message
At this point, the study on "how to solve the error report of xhost command under linux" is over. I hope to be able to solve everyone's doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.