• Post Reply Bookmark Topic Watch Topic
  • New Topic

Error for when trying to open xterm from windows platform  RSS feed

 
samantha katam
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

I am supposed to connect to Solaris box from my windows Xp. I have shell scripts to launch xterm from cygwin. When i try to start the xterm by giving the username and machine name i get this below error. By the way I have no monitor set up for my sun box so i have to connect from my local box. So let me know if there is a way to resolve this. This is kinda urgent.

$ Xlib: connection to "10.220.120.243:0.0" refused by server
Xlib: No protocol specified
/usr/openwin/bin/xterm Xt error: Can't open display: 10.220.120.243:0.0

Thanks
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to be running an X server (i.e., XFree86, Hummingbird, eXceed) on your PC. If you're using a display other than display 0, then you need to set the DISPLAY environment variable so the xterm knows which display to use.
 
Tim Holloway
Saloon Keeper
Posts: 18792
74
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, Cygwin is providing the X server. But that's as much as I'll admit to until "bubbly gill" takes a look at our Naming Policy!
 
samantha katam
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ernest,

I did set my display. But i did not set anything in the enviornment variables. Could you be more detail as to why i am getting this



DISPLAY=$(/cygdrive/c/Windows/system32/ping.exe $(hostname) -n 1 | grep "^Reply" | awk '{print $3}' | sed -e 's/://g'):0.0
export DISPLAY
..
Tim thanks for correcting the name i will change it soon
 
samantha katam
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the line in the command from where the the error displays. Should i replace 500 to 0?

SunOS)
XTERM_COMMAND="DISPLAY=${DISPLAY};export DISPLAY;/usr/openwin/bin/xterm -sb -sl 500 -ls -fg \"${FG_COLOR}\" -bg \"${BG_COLOR}\" -cr \"${CR_COLOR}\" -title \"${TGT_HOST}\""
;;
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The most important question is, do you have an X server running on your desktop PC? Tim is right that there's a Cygwin X server (called CygXFree, or something like that) but that doesn't mean you've started it before trying to start an xterm. Have you? If so, can you run local clients with it? I.e., if you install the Cygwin X server, you've got a local copy of xlogo. Can you run xlogo?
 
samantha katam
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim is right i have CygXfree. Actually i tried running the logo.exe and it did not run. It could not find cygwin1.dll.

Thanks for all your help
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!