黑帽联盟

标题: hb_gui 启动报错 RuntimeError: could not open display [打印本页]

作者: yun    时间: 2017-4-26 17:26
标题: hb_gui 启动报错 RuntimeError: could not open display
在xshell启动hb_gui出错

[root@node1 ~]# hb_gui   
Traceback (most recent call last):   
  File "/usr/bin/hb_gui", line 41, in ?   
    import gtk, gtk.glade, gobject   
  File "/usr/lib64/python2.4/site-packages/gtk-2.0/gtk/__init__.py", line 76, in ?   
    _init()   
  File "/usr/lib64/python2.4/site-packages/gtk-2.0/gtk/__init__.py", line 64, in _init   
    _gtk.init_check()   
RuntimeError: could not open display

下面我们来说一下,解决方法(按照下面步骤去操作)
51.png

52.png

具体步骤如下:File > Properties > SSH > Tunneling > Forward X11 connections to: Xmanager,然后重新启动一下xshell,再进行测试

效果如下:
53.png





欢迎光临 黑帽联盟 (https://bbs.cnblackhat.com/) Powered by Discuz! X2.5