Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the correct setting of the xhost tool and the DISPLAY environment variable when installing Oracle under Linux

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

What is the method of correctly setting the xhost tool and the DISPLAY environment variable when installing Oracle under Linux? aiming at this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible method.

When installing Oracle under Linux, if the xhost tool and DISPLAY environment variable are not set correctly, the graphical interface cannot be started, and errors such as "unable to open display" will occur when executing "xhost +". How to set it correctly is the key to starting the graphical interface, you can follow these steps:

1. Use root users to enter the Linux system and open a terminal window

2. Execute the "xdpyinfo" command and remember the value of "name of display" (the key point is: the following number). For example, the result of my execution is as follows:

[root@xxxxx ~] # xdpyinfo

Name of display: localhost:10.0

Version number: 11.0

Vendor string: NetSarang Computer, Inc.

Vendor release number: 4004

...

3. Set the DISPLAY environment variable to the value of "name of display", such as

# export DISPLAY=localhost:10.0

# echo $DISPLAY

Localhost:10.0

4. Execute "xhost +" and the message "access control disabled, clients can connect from any host" will be displayed.

5. Switch to Oracle user (Oracle installation user)

6. Set DISPLAY to the ip address of the login machine again, because the DISPLAY environment variable set after switching users will be lost

$export DISPLAY=localhost:10.0

$echo $DISPLAY

Localhost:10.0

At this point, it should be no problem to start the graphical interface again.

This is the answer to the question about how to correctly set the xhost tool and DISPLAY environment variables when installing Oracle under Linux. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel for more related knowledge.

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report