首页 > 微波/射频 > 射频学习交流 > No protocol specified Cannot initialize GUI. The connection to X-server

No protocol specified Cannot initialize GUI. The connection to X-server

录入:edatop.com    阅读:
最近在服务器上安装synopsys的软件时,使用vnc远程登录的时候输入启动命令软件界面总是显示在服务器的桌面上,
No protocol specified
Cannot initialize GUI.
The connection to X-server 'unix:0' is broken or refused.
Please check the value of the DISPLAY environment variable.
For this session, the tcl command 'setenv' can be used to set the value of the DISPLAY variable,
then the command 'gui_start' is used to start the GUI.
使用xhost +命令出错
[kaile001@kaile Desktop]$ xhost +
No protocol specified
xhost:  unable to open display ":0.0"
困惑了好几天,再往上找到好多资料都没用。偶尔发现了一个解决方法,试了一下发现有用,希望给需要的人带来帮助。
1.用root登陆linux,启动vnc服务;记下远程用户的桌面号
2.在用户账户下输入命令:export DISPLAY=localhost:1(1指用户自己的vnc桌面号)
3.在用户账户下输入命令:xhost +,并且提示“access control disabled, clients can connect from any host”
[kaile001@kaile Desktop]$ export DISPLAY=kaile.huaxin:1
[kaile001@kaile Desktop]$ xhost +
access control disabled, clients can connect from any host
再输入dc pt 就可以在远程桌面上开启软件界面了

申明:网友回复良莠不齐,仅供参考。如需专业解答,请学习本站推出的微波射频专业培训课程

上一篇:2.4G无线射频芯片首选哪个品牌? 当然是NORDIC,NRF24LE1F16Q24 NRF24LEAO17Q24
下一篇:深度拆解iphone6和iphone6plus,teardown

射频和天线工程师培训课程详情>>

  网站地图