vagrant ssh -- -X is not enough to run apt-get installed chromium (installed as snap)

Asked by Astronomy5292

Vagrant init

I have a Vagrantfile that apt-get installs firefox in a "ubuntu/focal64" VM and then I can start firefox using:

```
vagrant ssh -- -X firefox
```

That works.

Then I tried installing in the same VM the chromium browser. It got installed as snap, but would not start:

```
$ vagrant ssh -- -X
$ sudo su
# apt-get install chromium-browser
...
=> Installing the chromium snap
==> Checking connectivity with the snap store
==> Installing the chromium snap
chromium 101.0.4951.64 from Canonical✓ installed
=> Snap installation complete
$ chromium
[7036:7036:0527/100111.908214:ERROR:ozone_platform_x11.cc(247)] Missing X server or $DISPLAY
[7036:7036:0527/100111.909548:ERROR:env.cc(225)] The platform failed to initialize. Exiting.
```

What do I have to do to be able to do X11 forwarding for a snap installed app?
It's not like ubuntu is giving me a choice. There is no pure apt package for chromium (like firefox)...

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu chromium-browser Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

sudo apt install openbox

Should do it

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

If you just want a Web browser then you can set up an SSH tunnel from the client then set that as the proxy in the client's Web browser. Or do you really want/need the browser to run on the remote system

Can you help with this problem?

Provide an answer of your own, or ask Astronomy5292 for more information if necessary.

To post a message you must log in.