【问题标题】:xhost: man page exists but the command does not workxhost:手册页存在,但命令不起作用
【发布时间】:2018-07-10 19:24:17
【问题描述】:

为了解决与 Xming 的一个连接问题,我试图将 xhost 值设置为xhost +<ip>,但它给出了错误ksh: xhost: not found. 但是存在相同命令的手册页。 AIX 版本是 7.1 Technology level 4, service pack 01。出现这种异常的原因是什么?

【问题讨论】:

  • 您似乎在 Windows 计算机上运行 X 服务器,而在 AIX 端运行客户端。所以在 AIX 上运行 xhost 不会改变任何东西。 en.wikipedia.org/wiki/X_Window_System 可能您的 DISPLAY 环境变量未设置(AIX!telnetd 忽略 XDISPLOC 和 NEWENV)
  • @LorinczyZsigmond 能否指导一下如何设置显示环境变量?
  • 试试echo $DISPLAY;如果没有打印,请尝试export DISPLAY="$(who am i | awk 'print $NF' | tr -d '()'):0"

标签: aix xming


【解决方案1】:

发现问题,首先我的腻子窗口中没有启用“X-Forwarding”。可以从 Putty Window - Sessions - Check X11 forwarding 完成。

之后我看到我的 Xming 拒绝了连接请求。为了解决这个问题,在Xming安装目录,在“X0.hosts”文件中添加UNIX服务器的ip。

这应该可以解决问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-09-29
    • 1970-01-01
    • 2018-10-17
    • 2018-11-14
    • 1970-01-01
    • 1970-01-01
    • 2014-04-01
    • 1970-01-01
    相关资源
    最近更新 更多