|
|
|
|
 请教一个Xwindows + xhost的问题! - worship [ 2005-10-28 23:59 | 756 byte(s)]
 Re: 请教一个Xwindows + xhost的问题! - passworld [ 2005-10-29 11:29 | 285 byte(s)]
 Re: 请教一个Xwindows + xhost的问题! - worship [ 2005-10-30 21:33 | 26 byte(s)]
|
|
|
|
[Original]
[Print]
[Top]
|
我安装两台RehHat RHEL4,一台server(computerS),一台桌面(computerD)。平时都用ssh到server,今天需要用Xwindows 远程图形的方式工作。结果是一直有问题。
我在computerD上用xhost +,放开所有连接,然后ssh到computerS上,运行 xclock -display D:0.0,始终报错:
Cannot open dispaly computerD:00。
后来怀疑是防火墙的原因,干脆将防火墙关闭,依然不行。安全日志中也没有相关纪录。
在computerD上运行:xclock -display unix:0.0,正常,运行:
xclock -dispaly localhost:0.0 或则 xclock -display computerD:0.0,均报相应的错误:Cannot open display...!
顺便提一句,将两台机器的c-s顺序换过来,则使用正常。
遇到这个怪问题,真郁闷,希望哪位朋友指点一二,不胜感激!
|
|
|
[Original]
[Print]
[Top]
|
|
[Original]
[Print]
[Top]
|
现在的系统一般为安全起见,Xserver 预设是不会接听 tcp 的连接的,你需要可以自己重新设定,xinit 里启动 X 用了 -nolisten tcp , gdm kdm 有自己的类似设定。既然你使用 ssh ,用 sssh 的 forward 更安全而且有基本的数据压缩。
man 1x xserver
man ssh
|
|
|
----
|
|
[Original]
[Print]
[Top]
|
|
|