Let’s start the discussion about How to check if x11 working on Linux in following methods. To check if the x11 working on Linux correctly run :
Examine the value of the DISPLAY environment variable to see if X11 forwarding is enabled: $DISPLAY is echoed. You should see something like localhost:10. It’s worth noting that if DISPLAY isn’t set, it’s pointless to try to set it manually: the environment variable is always set appropriately if forwarding is enabled.
I hope the strategies listed above work for you. Happy coding and come back again.
Similar Post : How to check if you are using wayland or Xorg