vncserver错误

ubuntu下vncserver环境设置参考博文:https://blog.csdn.net/longbinliu/article/details/78315640

在设好环境后,在Ubuntu中连接vncserver时,发现一直打不开终端,但是可以显示图形界面,查看日志,发现提示错误:

(nautilus:2246): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
//bin/dbus-launch terminated abnormally with the following error: Autolaunch requested, but X11 support not compiled in.
Cannot continue.

GConf Error: No D-BUS daemon running

最后解决方案是让命令以root权限运行:

一种是su - root,将用户环境也切换到root用户下,然后执行命令sudo vncserver连接vncserver,发现可以正常打开终端和其他界面. 

另一种解决方法是su root,让当前普通用户环境具有root权限,这样D-BUS 才能正常打开,以开启终端

注意,如果在两个用户下都开启了vncserver服务,那连接vncserver客户端时就要输入root用户设置的命令。还发现在以上设置后以sudo vncserver方式开启的服务,才可以在vncserver客户端开启浏览器等

posted @ 2018-11-24 22:13  jianglin_liu  阅读(1248)  评论(0编辑  收藏  举报