The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Local Monitoring on Solaris 10 jess_t03 SUN Solaris 6 04-23-2008 11:52 PM
Solaris 10 Kerberos with local account locking rmaavnii SUN Solaris 0 03-20-2008 03:44 PM
How do I establish a remote CDE or JDS session on Solaris 10? ultra0384 SUN Solaris 11 10-05-2006 02:23 PM
solaris remote console stancwong UNIX for Dummies Questions & Answers 1 03-27-2006 08:50 AM
Solaris- print to a remote queue dangral High Level Programming 3 02-18-2003 12:46 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-19-2007
Registered User
 

Join Date: Aug 2007
Location: Australia
Posts: 107
Stumble this Post!
run xclock from local solaris to remote solaris

Hello - I am trying to connect to a remote solaris box from a solaris box i have locally present with me using 'ssh login@IP' ... Its connecting fine but... when I run xclock - it says 'Can't open display'

Whereas, IF I connect to same remote solaris IP from my windows desktop locally via putty and running xming. xclock works fine.

Please let me know how to run xclock as I can not have xming on local solaris certainly.

Thank you!
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 12-19-2007
Moderator
 

Join Date: Dec 2003
Location: /dev/florida
Posts: 946
Stumble this Post!
Check that the DISPLAY environmental variable on the remote system is set correctly to your local system and run xhost on your local system to enable/permit the remote system to display xclock on your local system.
Reply With Quote
  #3 (permalink)  
Old 12-19-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Stumble this Post!
Try using the ssh "-X" option to do X forwarding.

Code:
ssh -X remote xclock
Reply With Quote
  #4 (permalink)  
Old 12-19-2007
Registered User
 

Join Date: Aug 2007
Location: Australia
Posts: 107
Stumble this Post!
When I connect from putty i.e. local windows to remote solaris - DISPLAY=localhost:10.0 is already set. When I connect from local solaris to remote solaris via ssh oracle@IP - DISPLAY isnt set. Then I gave export DISPLAY=localhost:10.0

No results. I tried #ssh -X remote xclock ... Nothing is coming and no errors.
Reply With Quote
  #5 (permalink)  
Old 12-19-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Stumble this Post!
Check in the remote server's

/etc/ssh/sshd_config

to see if X forwarding has been disabled.
Reply With Quote
  #6 (permalink)  
Old 12-19-2007
Registered User
 

Join Date: Aug 2007
Location: Australia
Posts: 107
Stumble this Post!
I see that X11 forwarding is set to 'yes' what else could be the cause?
Reply With Quote
  #7 (permalink)  
Old 12-19-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Stumble this Post!
use "-v" to see what SSH thinks it's doing....
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
export display, solaris

Thread Tools
Display Modes




All times are GMT -7. The time now is 10:01 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0