LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 12-26-2010, 11:23 PM   #1
fareast87
LQ Newbie
 
Registered: Dec 2010
Posts: 2

Rep: Reputation: 0
xclock Error: Can't open display: <unknown ip>:0.0


Hi Guys,

I have this problem. Whenever I issue command below,

Code:
ssh -X user@hostA
xclock
The result is as below
Code:
Error: Can't open display: <ip address of unknown host>:0.0
What is the problem? Please advice. Thanks!
 
Old 12-27-2010, 12:27 AM   #2
prodev05
Member
 
Registered: Jul 2009
Location: Earth
Distribution: Unix & Linux Variants
Posts: 304

Rep: Reputation: 20
After logging in to the remote machine, you are trying to start a graphical window, possibly it a command (xclock). The issue is you have to export the variable from localhost to the remote machine. Follow the below steps.

1.) Login to you local machine and get the output for the command " echo $DISPLAY "
2.) Login to the remote machine and ensure the graphical display manager is running.
3.) Open a terminal from the remote machine and export the display of your localhost.
4.) then you try to issue the command " xclock ".
 
Old 12-27-2010, 12:27 AM   #3
prodev05
Member
 
Registered: Jul 2009
Location: Earth
Distribution: Unix & Linux Variants
Posts: 304

Rep: Reputation: 20
try and let me know.

Last edited by prodev05; 12-27-2010 at 12:29 AM.
 
Old 12-27-2010, 01:08 AM   #4
fareast87
LQ Newbie
 
Registered: Dec 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by prodev05 View Post
After logging in to the remote machine, you are trying to start a graphical window, possibly it a command (xclock). The issue is you have to export the variable from localhost to the remote machine. Follow the below steps.

1.) Login to you local machine and get the output for the command " echo $DISPLAY "
2.) Login to the remote machine and ensure the graphical display manager is running.
3.) Open a terminal from the remote machine and export the display of your localhost.
4.) then you try to issue the command " xclock ".
Thanks for your reply. #echo $DISPLAY was showing the IP address of the unknown IP. I wonder who in the world edit the config file. I finally figure out myself how to change the value for this $DISPLAY by command

Code:
export DISPLAY=localhost:10.0
But then, after reboot, this export return to its normal condition which is showing unknown IP. So, in order to make the changes permanent edit this file ~/.bash_profile and add the line export DISPLAY=localhost:10.0 in it. So next time if you reboot the machine the $DISPLAY will still localhost:10.0 !

Anyway prodev05, thanks.
 
Old 12-30-2010, 10:51 AM   #5
bitterfz
LQ Newbie
 
Registered: Feb 2008
Location: South central PS
Distribution: ubuntu solaris
Posts: 1

Rep: Reputation: 0
I have a SUN U10 in which I've installed Debian 5.0.Works great but no Xdisplay.I've tried all th sun drivers, constructed an xorg.conf, but get back ==screens found but unusable.What am I missing?
 
  


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
"Error: Can't open display" for xclock or gvim on kubuntu root shell konsole 1.6.6 TsanChung Linux - General 3 05-12-2012 01:48 AM
How to get Apache running on Open Suse- unknown 403 error mrukjames Linux - Server 4 10-02-2008 06:42 PM
cannot display xclock Kitana AIX 5 04-07-2008 08:03 AM
After ssh'ing to self machine, unable to display xclock??? Passions Linux - Software 4 02-25-2008 04:12 PM


All times are GMT -5. The time now is 05:22 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration