X11 转发不工作从腻子和 XMing 到 centos 6.4

Jus*_*ing 8 ssh putty x11 xming

我在 VirtualBox 上运行了 centos 6.4。我可以通过腻子连接到它就好了。但是 X11 转发不起作用。我有 Xming 6.9.0.31 正在运行,并且为 X11 转发设置了 Putty 0.62:

腻子和Xming

但是,当我连接 DISPLAY 时未设置:

[jdearing@njlt0151 ~]$ echo $DISPLAY

[jdearing@njlt0151 ~]$
Run Code Online (Sandbox Code Playgroud)

并且启动终结者失败

[jdearing@njlt0151 ~]$ terminator
Traceback (most recent call last):
  File "/usr/bin/terminator", line 30, in <module>
    import gtk, pango, gobject
  File "/usr/lib64/python2.6/site-packages/gtk-2.0/gtk/__init__.py", line 64, in <module>
    _init()
  File "/usr/lib64/python2.6/site-packages/gtk-2.0/gtk/__init__.py", line 52, in _init
    _gtk.init_check()
RuntimeError: could not open display
[jdearing@njlt0151 ~]$
Run Code Online (Sandbox Code Playgroud)

我究竟做错了什么?

Jus*_*ing 14

为了让 X11 转发工作,我需要执行yum install xauth. 那时终结者没有正确渲染控制台字体。我并不特别关心拥有最少的字体集,所以我做了yum -y groupinstall fonts并重新启动了终结者。字体正确呈现。