Permanent solution for X connection to localhost:10.0 broken
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
As far as I understood, you need xlock to show all the time for a particular user.. right?
Then you can put the xclock command in user's shell initialization file i.e. in .bashrc or in .cshrc or .tcshrc. Add following 2 lines in it -
setenv DISPLAY <display-variable-value>
xclock
If it's killing the xclock command, then there's possibility that you've not added user's system in safe hosts using xhost command as:
xhost +<user's-machine-hostname>
I mean I do not want to do the same exercise every time.
This is what my issue to run my installer
[oracle@...]$./runIntaller
Checking monitor: must be configured to display at least 256 colors
>>> Could not execute auto check for display colors using command /usr/bin/xdpyinfo. Check if the DISPLAY variable is set. Failed <<<<
So if I execute the steps which I specified in my previous reply then I am able to run the installer. xclock command is for just testing.
First check whether display variable is set properly or not using cmd:
printenv | grep -i display
Or find it using:
echo $DISPLAY
For local host it's value should be set as "hostname:0.0", so if it's not set properly, set using:
setenv DISPLAY hostname:0.0
Then invoke your installer again. Let me know the result.
[testora@...... bin]$ echo $DISPLAY
localhost:10.0
[testora@...... bin]$ xclock
X connection to localhost:10.0 broken (explicit kill or server shutdown).
[testora@...... bin]$export DISPLAY=localhost:0.0
[testora@...... bin]$ xclock
Error: Can't open display: localhost:0.0
As I already specified I am able run the installer if I export the XAUTHORITY to the user. but this is the exercise which i have to do repeatedly if I reboot the machine. So want to have some permanent solution.
So I start the machine and go to the installation user and run the installer it should show the installation wizard. this is my requirement.
Please provide inputs.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.