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客户端开启浏览器等

相关文章:

  • 2021-08-02
  • 2021-11-27
  • 2021-12-16
  • 2021-09-08
  • 2021-09-26
  • 2021-09-11
  • 2021-11-14
猜你喜欢
  • 2022-12-23
  • 2021-08-07
  • 2021-11-05
  • 2021-10-30
  • 2022-12-23
  • 2022-12-23
  • 2021-11-09
相关资源
相似解决方案