xclock not opening in rehat linux 64-bit
Hi All,
I am very new to linux environment learning basics in redhat linux I tried to open xclock utility in redhat its givivng me the error: Cant Open DISPLAY for linux:0.0 I tried this: $xhost +linux $export DISPLAY=linux:0.0 $xclock Cant Open DISPLAY for linux:0.0 I logged in as root user clock is not opening,please help me how to resolve this issue.. |
sorry not to mention this:
linux is my hostname $xhost +linux------>linux has been added to access list I treid the Env. variable setting with IP Address also but no luck. please help |
Quote:
Code:
#xhost local:linux is it mentioned in your hosts file? try this commnd Code:
#export DISPLAY=localhost:0.0 Code:
#xclock |
HI deepak,
I will try it and get back to you ,Thanks |
update
In one of my test nodes this is the command which works
Code:
#xhost local:linux Code:
$export DISPLAY=:0 |
I tried this #xhost local:linux as root user..
giving me an error xhost: unknown address family "localhost" xhost: bad hostname "localhost:linux" If I open a terminal as root and enter xclock its opening correctly but when i login as oracle user,set the DISPLAY Env variable and tried then Cant Open DISPLAY for linux:0.0 I followed this: #xhost +linux #su - oracle $export DISPLAY=linux:0.0; $xclock error:Cant Open DISLPAY.. i dont know what i am missing here.. |
what is the output you get as root user with this command
Code:
#echo $DISPLAY Code:
$export DISPLAY=(output of above) as in my machine when I try (RHEL 5) Code:
#xhost +deepak |
Quote:
OP, you don't tell us what version/distro of Linux you're using, so it's hard to give you a specific way to do this. First thing to do is a "ps -ef | grep nolisten". If you find something, chances are it's your X server, and the "-nolisten" tells you it's not accepting incoming connections. Go into your systems administrator software, and enable it...again, we don't know what version/distro, so we can't say how. In openSUSE, it's YAST. Once it's enabled, you have to reboot...after it's back up, look for the "-nolisten" again, and you shouldn't see it. THEN, as root, do "xhost <ip address of remote system>". That will allow the system you're running xclock FROM, access to the local X server. Then, log into the remote system, and run whatever you want. |
Quote:
The OP says subani123 is able to connect as root but unable as user? Even I checked few blogs and websites on the same, on the conclusion of which I had replied with my solution. and the error says Cant Open DISPLAY for linux:0.0 so I believe it is syntax error but I will still look forward for the solution to gain something new. Thanks for your notification. |
Quote:
|
All times are GMT -5. The time now is 02:51 PM. |