Skip to content

Instantly share code, notes, and snippets.

@miebach
Created July 9, 2012 09:17
Show Gist options
  • Save miebach/3075297 to your computer and use it in GitHub Desktop.
Save miebach/3075297 to your computer and use it in GitHub Desktop.
Start google chrome in headless mode
http://stackoverflow.com/questions/9210765/any-way-to-start-google-chrome-in-headless-mode
http://e-method.blogspot.co.uk/2010/11/google-chrome-with-xvfb-headless-server.html
Install xvfb:
sudo aptitude install xvfb
Normal start:
xvfb-run --server-args='-screen 0, 1024x768x16' google-chrome -start-maximized > /dev/null &
Start and opem a page:
xvfb-run --server-args='-screen 0, 1024x768x16' google-chrome -start-maximized http://www.example.com > /dev/null &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment