Created
November 30, 2011 14:05
-
-
Save jkamenik/1409172 to your computer and use it in GitHub Desktop.
CI server using Firefox
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo apt-get install firefox |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo apt-get install xvfb | |
...Lots of stuff... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ echo $DISPLAY | |
localhost:10.0 | |
$ firefox |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/bin/Xvfb :1 & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment