pvaneynd: (Default)
pvaneynd ([personal profile] pvaneynd) wrote2023-02-15 02:00 pm

Firefox and Chrome refusing to run on ubuntu

For once I can write about something at $work.

I had to download a new image, but I didn't want to download the 14G image from the USA to my laptop and then again over the VPN and the ocean to the lab in the USA. So I used a stepstone Ubuntu machine, installed a VNC server and wanted to use that to download the image.

Turns out that this is harder then I thought. On Ubuntu you now install Chromium or Firefox in a snap and you cannot simply run these. xclock works, but the dynamic duo gives:


Authorization required, but no authorization protocol specified
Error: cannot open display: :1.0


After a lot of search this is more or less by design. In the mozilla bugtracker a found a solution: use:


xhost +
env DBUS_SESSION_BUS_ADDRESS=unix:path=$XDG_RUNTIME_DIR/bus firefox


This was probably caused by the fact that the stepstone machine had no UI at all. Now to download the image and apply it...
rbarclay: (Default)

[personal profile] rbarclay 2023-02-17 12:11 am (UTC)(link)
xhost +?! Just turning any access control for the X server off?

And I actually had to look it up to be sure, since I only remembered it dimly from around 25 years ago - when this was thought to be very bad practice... I hope your X server only listens on localhost.