avatar
can't open display in cygwin# Unix - 噫吁兮,危乎高哉
w*y
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
avatar
a*x
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)

avatar
s*n
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.

avatar
w*y
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.

avatar
w*y
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.

avatar
s*n
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?

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。