D
D
DigiBeach2020-08-23 19:11:05
Google Chrome
DigiBeach, 2020-08-23 19:11:05

How to run Google Chrome on Ubuntu 18.04 server?

How to run Google Chrome on Ubuntu 18.04 server?

The browser does not want to start. Here is the error if from under root

[23452:23452:0821/084712.250401: ERROR:zygote_host_impl_linux.cc(89) ] Running as root without --no-sandbox is not supported. See https://crbug.com/638180 .
11:47

If from user

[23555:23555:0821/084903.125336:ERROR:browser_main_loop.cc(1469)] Unable to open X display.
[0821/084903.135190:ERROR:nacl_helper_linux.cc(308)] NaCl helper process running without a sandbox!
Most likely you need to configure your SUID sandbox correctly
11:49

I need to run the code on selenium, but my chrome doesn't even run on the server just like that. What to do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Karbivnichy, 2020-08-23
@hottabxp

Run selenium in headless mode. And Chrome won't start without X. Since selenium runs in headless mode on a non-X server, you can take screenshots from it to see what's happening on the page.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question