source http://elementalselenium.com/tips/38-headless Option 1 Xvfb :99 & export DISPLAY=:99 ruby headless.rb Option 2 xvfb-run ruby headless.rb