Hi I used -X this time and after step 4 echo $DISPLAY shows my lcoal pc ip address:0
Can you please give me the exact steps? Thank you.
Main Topics
Browse All TopicsHi,
I am unable to run a x command on a solaris 10 box from my local workstation. Cygwin X is installed on my local workstation (windows). Here is whaty I am doing.
1) Start X server (cygwin x) on local PC
2) Open SSH client, connect to solaris 10 server, export DISPLAY=<local PC IP ADDRESS>:0
I even tried :0.0 instead of :0
3) Open cygwin bash shell on local PC
4) ssh -Y user@solaris10 and then authenticate
4) export DISPLAY=<local PC IP ADDRESS>:0
5) run gedit (or any other oracle based gui application)
6) It hangs .. I am now expecting an editor window show up on my local PC but it won't
It is instead showing this error on bash shell:
java.lang.NullPointerExcep
at oracle.ewt.lwAWT.BufferedA
at oracle.sysman.emSDK.client
Source)
at oracle.security.admin.wltm
at sun.reflect.NativeConstruc
at sun.reflect.NativeConstruc
orAccessorImpl.java:39)
at sun.reflect.DelegatingCons
onstructorAccessorImpl.jav
at java.lang.reflect.Construc
at java.lang.Class.newInstanc
at java.lang.Class.newInstanc
at oracle.sysman.emSDK.client
ource)
Done.
(gedit:18647): Gtk-WARNING **: cannot open display:
[1] + Done owm &
Is it the right way of doing it? Can someone help me with the exact steps? Thank you.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi, here is what I amdoing from my cygwin shell.
user1@BOWIT-user1 ~
$ export DISPLAY=localhost:0.0
user1@BOWIT-user1 ~
$ xhost +
access control disabled, clients can connect from any host
user1@BOWIT-user1 ~
$ ssh -X oraias@srv2
Password:
Warning: untrusted X11 forwarding setup failed: xauth key data not generated
Warning: No xauth data; using fake authentication data for X11 forwarding.
Last login: Fri Oct 9 17:25:15 2009 from 198.203.237.46
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
You have new mail.
One moment, acquiring system and Oracle environment variables.....
srv2_oraias:/home/oraias> gedit
Xlib: connection to "srv2.dia.state.ma.us:0.0"
Xlib: Invalid MIT-MAGIC-COOKIE-1 key
(gedit:25406): Gtk-WARNING **: cannot open display:
srv2_oraias:/home/oraias>
When you are installing X11 package (a.k.a. startxwin.sh) it doesn't install xhost by default. I ran into the same issue.
step 1: install xhost
1. Run your cygwin setup.exe
2. expand X11
3. scroll down to xhost and install
step 2: startxwin.sh and you know the rest
1. start cygwin
2. startxwin.sh
3. xhost +
4. ssh -g -X [user]@[solaris box]
5. set display back .. in this case I use csh
setenv DISPLAY [my desktop]:0.0
6. /usr/openwin/bin/xcalc (simple x app)
voila
Business Accounts
Answer for Membership
by: bluPosted on 2009-10-09 at 11:13:28ID: 25537381
Maybe there is a difference in ssh versions, but I think you need -X not -Y. What do you get if you run "echo $DISPLAY" on the remote host?