Skip to content

Instantly share code, notes, and snippets.

@jkamenik
Created November 30, 2011 14:05
Show Gist options
  • Save jkamenik/1409172 to your computer and use it in GitHub Desktop.
Save jkamenik/1409172 to your computer and use it in GitHub Desktop.
CI server using Firefox
$ sudo apt-get install firefox
$ sudo apt-get install xvfb
...Lots of stuff...
$ echo $DISPLAY
localhost:10.0
$ firefox
$ sudo apt-get install imagemagick
$ Xvfb :1 &
$ export DISPLAY=:1
$ firefox http://google.com
...from another terminal...
$ export DISPLAY=:1
$ import -window root example.png
...from another terminal...
$ killall firefox
$ firefox example.png
/usr/bin/Xvfb :1 &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment