LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 10-15-2012, 02:50 AM   #1
cdhar
Member
 
Registered: Jul 2012
Posts: 41

Rep: Reputation: Disabled
Permanent solution for X connection to localhost:10.0 broken


Hi,

I need to run the installer wizard.

[oracle@.... ~]$ xclock
X connection to localhost:10.0 broken (explicit kill or server shutdown).

I am able to run the wizard after executing the following steps but every time I am executing these steps when ever I reboot the machine.

$ls -l .Xauthority
-rw-----+ 1 cdhar dba 642 Oct 10 22:30 .Xauthority

$ chmod 644 .Xauthority

$ls -l .Xauthority
-rw-r--r--+ 1 cdhar dba 642 Oct 10 22:35 .Xauthority

$ sudo su - oracle

[oracle@....]$export XAUTHORITY=/home/cdhar/.Xauthority

Could you please provide me the permanent solution for this to execute the xclock for required user.

thanks in advance.
cdhar

Last edited by cdhar; 10-15-2012 at 04:38 AM.
 
Old 10-15-2012, 03:02 AM   #2
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
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>

So try it, if it can help you.

Last edited by shivaa; 10-15-2012 at 03:04 AM.
 
Old 10-15-2012, 04:14 AM   #3
cdhar
Member
 
Registered: Jul 2012
Posts: 41

Original Poster
Rep: Reputation: Disabled
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.

Please suggest
 
Old 10-15-2012, 04:45 AM   #4
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
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.

Last edited by shivaa; 10-15-2012 at 04:47 AM.
 
Old 10-15-2012, 05:08 AM   #5
cdhar
Member
 
Registered: Jul 2012
Posts: 41

Original Poster
Rep: Reputation: Disabled
thanks for the reply.

this is the vm box which I am accessing.

[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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
xclock golestani Linux - Software 7 02-04-2010 12:20 AM
xclock autophil Slackware 14 05-26-2007 01:50 AM
Searching 4 Permanent solution for the mp3 loudness erickFis Linux - Software 5 07-04-2006 09:19 PM
Permanent modprobe solution. But is it messy? SchadeBoy SUSE / openSUSE 5 09-27-2005 12:57 AM
Permanent solution for the mp3 loudness erickFis LinuxQuestions.org Member Success Stories 0 02-02-2005 06:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration