Linux Ubuntu terminal command line open firefox error

1. Error

$ 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

Reason: You did not add sudo


2. Error

$ 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

Reason: You should not log in as root user to open

 

3. The correct opening posture:

$ sudo firefox

 

Published 202 original articles · 80 praised · 300,000 views +

Guess you like

Origin blog.csdn.net/qxqxqzzz/article/details/105262814