linux 终端启动图形化程序界面时报错:No protocol specified

来源:互联网 发布:收购淘宝买家资料 编辑:程序博客网 时间:2024/06/16 06:50

这是因为Xserver默认情况下不允许别的用户的图形程序的图形显示在当前屏幕上. 如果需要别的用户的图形显示在当前屏幕上, 则应以当前登陆的用户, 也就是切换身份前的用户执行如下命令

xhost +

 

 

远程访问时也会出现类似问题:

 第一步:用root登陆linux

 第三步:执行xhost +,并且提示“access control disabled, clients can connect from any host”才正确。

原创粉丝点击