run xclock from local solaris to remote solaris


 
Thread Tools Search this Thread
Operating Systems Solaris run xclock from local solaris to remote solaris
# 1  
Old 12-20-2007
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!
# 2  
Old 12-20-2007
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.
# 3  
Old 12-20-2007
Try using the ssh "-X" option to do X forwarding.

Code:
ssh -X remote xclock

# 4  
Old 12-20-2007
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.
# 5  
Old 12-20-2007
Check in the remote server's

/etc/ssh/sshd_config

to see if X forwarding has been disabled.
# 6  
Old 12-20-2007
I see that X11 forwarding is set to 'yes' what else could be the cause?
# 7  
Old 12-20-2007
use "-v" to see what SSH thinks it's doing....
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Except script to run a local shell script on remote server using root access

local script: cat > first.sh cd /tmp echo $PWD echo `whoami` cd /tmp/123 tar -cvf 789.tar 456 sleep 10 except script: cat > first #!/usr/bin/expect set ip 10.5.15.20 set user "xyz123" set password "123456" set script first.sh spawn sh -c "ssh $user@$ip bash < $script" (1 Reply)
Discussion started by: Aditya Avanth
1 Replies

2. Shell Programming and Scripting

To run a local shell script in a remote machine by passing arguments to the local shell script

I need to run a local shell script on a remote machine. I am able to achieve that by executing the command > ssh -qtt user@host < test.sh However, when I try to pass arguments to test.sh it fails. Any pointers would be appreciated. (7 Replies)
Discussion started by: Sree10
7 Replies

3. Solaris

No local disk in format in Solaris

I have Solaris-10 server. During troubleshooting of some storage issue, I removed disk entries from /dev/dsk and /dev/rdsk rm /dev/vx/dmp/* rm /dev/vx/rdmp/* rm /dev/dsk/* rm /dev/rdsk/ And rebooted the box. That recreated device tree for SAN disks, but I do not see c1t0d0s0 and c1t1d0s0... (7 Replies)
Discussion started by: solaris_1977
7 Replies

4. Solaris

Solaris 10 local zone on Solaris 11 global zone

Hi, A quick question: Can Solaris 10 local zones be moved to a Solaris 11 global zone and work well? Thank you in advance! (5 Replies)
Discussion started by: aixlover
5 Replies

5. Shell Programming and Scripting

how to run an already made script run against a list of ip addresses solaris 8 question

how to run an already developed script run against a list of ip addresses solaris 8 question. the script goes away and check traffic information, for example check_GE-VLANStats-P3 1.1.1.1 and returns the results ok. how do I run this against an ip list? i.e a list of 30 ip addresses (26 Replies)
Discussion started by: llcooljatt
26 Replies

6. UNIX for Dummies Questions & Answers

can I emulate solaris/sparc on virtualbox? Or other emulator to run solaris for sparc in my win7 PC?

Hi Gurus can I emulate solaris/sparc on virtualbox? Or other emulator to run solaris for sparc in my win7 PC? regards, Israel. (9 Replies)
Discussion started by: iga3725
9 Replies

7. UNIX for Dummies Questions & Answers

Equivalent of /etc/rc.local in Solaris 10

What is the equivalent of /etc/rc.local in Solaris 10? (4 Replies)
Discussion started by: proactiveaditya
4 Replies

8. Solaris

Unable to run xclock

Hello. I am trying to run xclock on newly built solaris box - These are the steps I followed: # DISPLAY=localhost:0.0 # export DISPLAY # xclock xclock: not found # cd /usr/openwin/bin # ./xclock Error: Can't open display: localhost:0.0 # Please suggest, what am i doing wrong? Thank... (27 Replies)
Discussion started by: panchpan
27 Replies

9. Solaris

Local Monitoring on Solaris 10

Hello people =) I need software that can gather statistics for the system. I/O-disc systems, load memory, processors, networks, etc.. Looking for analog utilities nmon, which is run on the server and gather such statistics. Moreover, it creates a detailed report in the file format Excel. There... (6 Replies)
Discussion started by: jess_t03
6 Replies
Login or Register to Ask a Question