1,报错
$ firefox
(firefox:2673): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Failed to connect to socket /tmp/dbus-80Eq35bHIz: Connection refused
(firefox:2673): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Failed to connect to socket /tmp/dbus-Hc5ktVWgCD: Connection refused
(firefox:2673): LIBDBUSMENU-GLIB-WARNING **: Unable to get session bus: Could not connect: Connection refused
(firefox:2673): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Failed to connect to socket /tmp/dbus-awpAoJ2BYb: Connection refused
原因:你没有加sudo
2,报错
$ sudo su
root@pc1:/home/user1# firefox
MoTTY X11 proxy: Authorisation not recognised
Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Unable to init server: Broadway display type not supported: localhost:10.0
Error: cannot open display: localhost:10.0
原因:你不该登录root用户去打开
3,正确的打开姿势:
$ sudo firefox