w*y 发帖数: 74 | 1 Thanks suan for solve my last problem.
Now,I can telnet to UNIX server with cygwin. But I got another problem.
Here is my operation:
1.ipconfig
(get my ip address)
2.telnet UNIXServerName
3.bash
4.export DISPLAY=myIP:0.0
5.echo $DISPLAY
(echo myIP:0.0,it is right)
6.a.out (it is an file under my UNIX current directory and need to open x
window. It runs great on UNIX workstation,but I want to do the project at
home)
the response is:
GLUT:Fatat error in a.out:can not open display:myIP:0.0
Did I do |
a*******x 发帖数: 47 | 2 Try run
$ xhost +UNIXServername
on your local cyswin shell.
【在 w*y 的大作中提到】 : Thanks suan for solve my last problem. : Now,I can telnet to UNIX server with cygwin. But I got another problem. : Here is my operation: : 1.ipconfig : (get my ip address) : 2.telnet UNIXServerName : 3.bash : 4.export DISPLAY=myIP:0.0 : 5.echo $DISPLAY : (echo myIP:0.0,it is right)
|
s**n 发帖数: 449 | 3 or you can use ssh. telnet sucks anyway.
just do:
ssh -X UNIXServerName
then you don't even need to set DISPLAY.
【在 a*******x 的大作中提到】 : Try run : $ xhost +UNIXServername : on your local cyswin shell.
|
w*y 发帖数: 74 | 4 I tried, it said:
unable to open display:"IPaddress:0.0"
I typed xterm,it also said:
xterm Xt error:can't open display:IPaddress:0.0
I think there must be sth I forgot to set up,but what's it? Thanks for the
help.
【在 a*******x 的大作中提到】 : Try run : $ xhost +UNIXServername : on your local cyswin shell.
|
w*y 发帖数: 74 | 5 I typed ssh -l userName -x UNIXServerName
after login, I tried the a.out file and got the same result. Jesus!
I noticed that,when I login,there was a line of words at the end of
anouncement:
type cygwin unkown
what's that mean? Is that all right?
【在 s**n 的大作中提到】 : or you can use ssh. telnet sucks anyway. : just do: : ssh -X UNIXServerName : then you don't even need to set DISPLAY.
|
s**n 发帖数: 449 | 6 faint. -X not -x.
kick u!
-x Disables X11 forwarding.
-X Enables X11 forwarding.
【在 w*y 的大作中提到】 : I typed ssh -l userName -x UNIXServerName : after login, I tried the a.out file and got the same result. Jesus! : I noticed that,when I login,there was a line of words at the end of : anouncement: : type cygwin unkown : what's that mean? Is that all right?
|