Possibly you need Xvfb. https://en.wikipedia.org/wiki/Xvfb
See also:
Headless execution
Xvfb failed to start in Jenkins for katalon automation test suite
https://stackoverflow.com/questions/7023942/running-chrome-webdriver-on-a-linux-server-with-no-display