![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
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...
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...
no subject
Date: 2023-02-17 12:11 am (UTC)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.
no subject
Date: 2023-02-17 07:49 am (UTC)Yeah and it does. I also removed access as soon as firefox started.
And this is called "progress"? :(