I am using Dreamhost VPS which doesn't provide
sudo
capability . Dreamhost runs on Ubuntu.
My final goal is to be able to use Ruby to run headless web browser. I picked Watir
gem and it requires chromedriver
.
I installed chromedriver
into my home directory ~/chrome/
, and added it to my $PATH.
I get an error
/home/user/.rvm/gems/ruby-2.3.0/gems/selenium-webdriver-3.141.0/lib/selenium/webdriver/remote/response.rb:69:in
`assert_ok': unknown error: Chrome failed to start: exited abnormally
(Selenium::WebDriver::Error::UnknownError)
It seems I need to install Xvfb
and all guides suggest sudo apt-get install
, which I can't do.
Even if I install Xvfb as standalone, it lacks a lot of extra stuff from X11:
[myServer]$ Xvfb :1 -screen 0 1024x768x24
(WW) Could not open RGB file "/usr/X11R6/lib/X11/rgb.txt"; will use built-in copy.
_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/ps554048:1
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6
error opening security policy file /usr/X11R6/lib/X11/xserver/SecurityPolicy
Could not init font path element /usr/X11R6/lib/X11/fonts/misc/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/TTF/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/Speedo/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/Type1/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/75dpi/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/100dpi/, removing from list!
Fatal server error:
could not open default font 'fixed'
**Temporary solution** is to get instance on Amazon Web Services which allows 100% sudo and install all the necessary packages
Asked by aaaaa says reinstate Monica
(139 rep)
Dec 12, 2018, 06:49 PM
Last activity: Jun 15, 2025, 06:06 PM
Last activity: Jun 15, 2025, 06:06 PM