Error: Can't open display

简介:

当你运行xterm出现错误如下:

xterm Xt error: Can't open display:
xterm: DISPLAY is not set

我的系统centos6.2

解决办法:

1、首先确定你安装了x11:yum -y install xorg-x11-xauth

2、其次修改配置文件:/etc/ssh/sshd_config, 

AllowTcpForwarding yes

X11Forwarding yes

ForwardX11 yes 或者(ForwardX11Trusted 

3、重启

本文转自不要超过24个字符博客51CTO博客,原文链接http://blog.51cto.com/cstsncv/1891590如需转载请自行联系原作者

cstsncv


相关文章
|
Shell
xhost: unable to open display ":0.0"
-bash: xhost: 未找到命令 原因是因未没有安装相关的包(其他类似command not found命令没有可以用这种方式解决) yum whatprovides "*/xhost" 安装对应版本
1705 0
|
6月前
|
安全
qt.qpa.xcb: could not connect to display 问题解决
【5月更文挑战第16天】qt.qpa.xcb: could not connect to display qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. 问题解决
2984 0
|
缓存 Windows
【cmd报错:Error :could not open】
【cmd报错:Error :could not open】
234 0
|
11月前
|
前端开发
display:contents
display:contents
52 1
|
6月前
|
JavaScript
window.open的使用
window.open的使用
111 0
|
JavaScript
Error Unknown option ‘--inline‘
Error Unknown option ‘--inline‘
357 0
成功解决OSError: cannot open resource self.font = core.getfont(font, size, index, encoding, layout_engin
成功解决OSError: cannot open resource self.font = core.getfont(font, size, index, encoding, layout_engin
|
API
Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible. <class &#39;sqlalchemy.exc.Operat
Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
2069 0