Unable to open X display when trying to run google-chrome on Centos (Rhel 7.5)

You can try with Xvfb. it does not require additional hardware. Install Xvfb if you didn’t install it yet and do the following steps. sudo apt-get install -y xvfb Dependencies to make “headless” chrome/selenium work: sudo apt-get -y install xorg xvfb gtk2-engines-pixbuf sudo apt-get -y install dbus-x11 xfonts-base xfonts-100dpi xfonts-75dpi xfonts-cyrillic xfonts-scalable Optional but nifty: … Read more

Run X application in a Docker container reliably on a server connected via SSH without “–net host”

I figured it out. When you are connecting to a computer with SSH and using X11 forwarding, /tmp/.X11-unix is not used for the X communication and the part related to $XSOCK is unnecessary. Any X application rather uses the hostname in $DISPLAY, typically “localhost” and connects using TCP. This is then tunneled back to the … Read more

How to set up working X11 forwarding on WSL2 [closed]

TL;DR: Add the following to your ~/.bashrc: export DISPLAY=$(ip route list default | awk ‘{print $3}’):0 export LIBGL_ALWAYS_INDIRECT=1 Enable Public Access on your X11 server for Windows.* Add a separate inbound rule for TCP port 6000 to the windows firewall in order to allow WSL access to the X server, as described by the wsl-windows-toolbar-launcher … Read more