Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save textarcana/5855427 to your computer and use it in GitHub Desktop.

Select an option

Save textarcana/5855427 to your computer and use it in GitHub Desktop.

Revisions

  1. Noah Sussman revised this gist Jun 12, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion mac_xwindows_x11_xvfb_headless_firefox_howto.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    # XWindows for Headless Selenium

    <a href="http://rampagedreality.com/post/904335189/paul-harckham-has-his-x-wing-fine-art-print-up"><img src="http://img.ffffound.com/static-data/assets/6/8fd1971a81b10820047220a3fea982c4bccea6fe_m.jpg" alt="X Wing art by Paul Harckham"></a>
    <a href="http://rampagedreality.com/post/904335189/paul-harckham-has-his-x-wing-fine-art-print-up"><img src="http://68.media.tumblr.com/tumblr_l6n9suWu6L1qzhtqwo1_500.jpg" alt="X Wing art by Paul Harckham"></a>

    How to set up a Headless Selenium Testing environment for CentOS 6.3.

  2. textarcana revised this gist Nov 18, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion mac_xwindows_x11_xvfb_headless_firefox_howto.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    # XWindows for Headless Selenium

    !['X Wing'](http://img.ffffound.com/static-data/assets/6/8fd1971a81b10820047220a3fea982c4bccea6fe_m.jpg)
    <a href="http://rampagedreality.com/post/904335189/paul-harckham-has-his-x-wing-fine-art-print-up"><img src="http://img.ffffound.com/static-data/assets/6/8fd1971a81b10820047220a3fea982c4bccea6fe_m.jpg" alt="X Wing art by Paul Harckham"></a>

    How to set up a Headless Selenium Testing environment for CentOS 6.3.

  3. textarcana revised this gist Nov 18, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion mac_xwindows_x11_xvfb_headless_firefox_howto.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    # XWindows for Headless Selenium

    !['X Wing'](http://rampagedreality.com/post/904335189/paul-harckham-has-his-x-wing-fine-art-print-up "X-Wing art by Paul Harckham")
    !['X Wing'](http://img.ffffound.com/static-data/assets/6/8fd1971a81b10820047220a3fea982c4bccea6fe_m.jpg)

    How to set up a Headless Selenium Testing environment for CentOS 6.3.

  4. textarcana revised this gist Nov 18, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion mac_xwindows_x11_xvfb_headless_firefox_howto.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    # XWindows for Headless Selenium

    !['X Wing'](http://img.ffffound.com/static-data/assets/6/8fd1971a81b10820047220a3fea982c4bccea6fe_m.jpg)
    !['X Wing'](http://rampagedreality.com/post/904335189/paul-harckham-has-his-x-wing-fine-art-print-up "X-Wing art by Paul Harckham")

    How to set up a Headless Selenium Testing environment for CentOS 6.3.

  5. Noah Sussman revised this gist Jun 25, 2013. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions mac_xwindows_x11_xvfb_headless_firefox_howto.md
    Original file line number Diff line number Diff line change
    @@ -45,11 +45,11 @@ Note that it's *much* slower to execute the tests under XWindows vs. Xvfb.

    ## Further Reading

    0. [Xvfb + Firefox by Jordan Sissel](http://www.semicomplete.com/blog/geekery/xvfb-firefox.html)
    1. [Centos: Installing graphical X Window System](http://alexbischof.blogspot.com/2012/11/centos-installing-graphical-x-window.html)
    0. [Xvfb + Firefox](http://www.semicomplete.com/blog/geekery/xvfb-firefox.html)
    4. [How to connect to remote X11 hosts from a Mac](http://www.infoworld.com/t/platforms/how-connect-remote-x11-hosts-mac-616)
    1. [Headless Cucumbers And Capybaras With Selenium And Hudson](http://blog.kabisa.nl/2010/05/24/headless-cucumbers-and-capybaras-with-selenium-and-hudson/)
    1. [Centos: Installing graphical X Window System](http://alexbischof.blogspot.com/2012/11/centos-installing-graphical-x-window.html)
    2. [Problems With Bundling Xvfb Into Application on StackOverflow](http://stackoverflow.com/questions/8817196/problems-with-bundling-xvfb-into-application)
    3. [XQuartz Users FAQ](http://xquartz.macosforge.org/trac/wiki/X11-UsersFAQ)
    4. [How to connect to remote X11 hosts from a Mac](http://www.infoworld.com/t/platforms/how-connect-remote-x11-hosts-mac-616)
    5. [Xvfb Wikipedia entry](http://en.wikipedia.org/wiki/Xvfb)
    5. [X-Wing art by Paul Harckham](http://rampagedreality.com/post/904335189/paul-harckham-has-his-x-wing-fine-art-print-up)
  6. Noah Sussman revised this gist Jun 25, 2013. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions mac_xwindows_x11_xvfb_headless_firefox_howto.md
    Original file line number Diff line number Diff line change
    @@ -45,11 +45,11 @@ Note that it's *much* slower to execute the tests under XWindows vs. Xvfb.

    ## Further Reading

    0. [Xvfb Firefox: Semicomplete.com](http://www.semicomplete.com/blog/geekery/xvfb-firefox.html)
    1. [Centos Installing Graphical X Window](http://alexbischof.blogspot.com/2012/11/centos-installing-graphical-x-window.html)
    0. [Xvfb + Firefox by Jordan Sissel](http://www.semicomplete.com/blog/geekery/xvfb-firefox.html)
    1. [Centos: Installing graphical X Window System](http://alexbischof.blogspot.com/2012/11/centos-installing-graphical-x-window.html)
    1. [Headless Cucumbers And Capybaras With Selenium And Hudson](http://blog.kabisa.nl/2010/05/24/headless-cucumbers-and-capybaras-with-selenium-and-hudson/)
    2. [Problems With Bundling Xvfb Into Application on StackOverflow](http://stackoverflow.com/questions/8817196/problems-with-bundling-xvfb-into-application)
    3. [XQuartz Users FAQ](http://xquartz.macosforge.org/trac/wiki/X11-UsersFAQ)
    4. [How Connect Remote X11 Hosts Mac](http://www.infoworld.com/t/platforms/how-connect-remote-x11-hosts-mac-616)
    4. [How to connect to remote X11 hosts from a Mac](http://www.infoworld.com/t/platforms/how-connect-remote-x11-hosts-mac-616)
    5. [Xvfb Wikipedia entry](http://en.wikipedia.org/wiki/Xvfb)
    5. [X-Wing art by Paul Harckham](http://rampagedreality.com/post/904335189/paul-harckham-has-his-x-wing-fine-art-print-up)
  7. Noah Sussman revised this gist Jun 25, 2013. 1 changed file with 8 additions and 8 deletions.
    16 changes: 8 additions & 8 deletions mac_xwindows_x11_xvfb_headless_firefox_howto.md
    Original file line number Diff line number Diff line change
    @@ -45,11 +45,11 @@ Note that it's *much* slower to execute the tests under XWindows vs. Xvfb.

    ## Further Reading

    0. http://www.semicomplete.com/blog/geekery/xvfb-firefox.html
    1. http://alexbischof.blogspot.com/2012/11/centos-installing-graphical-x-window.html
    1. http://blog.kabisa.nl/2010/05/24/headless-cucumbers-and-capybaras-with-selenium-and-hudson/
    2. http://stackoverflow.com/questions/8817196/problems-with-bundling-xvfb-into-application
    3. http://xquartz.macosforge.org/trac/wiki/X11-UsersFAQ
    4. http://www.infoworld.com/t/platforms/how-connect-remote-x11-hosts-mac-616
    5. http://en.wikipedia.org/wiki/Xvfb
    5. http://rampagedreality.com/post/904335189/paul-harckham-has-his-x-wing-fine-art-print-up
    0. [Xvfb Firefox: Semicomplete.com](http://www.semicomplete.com/blog/geekery/xvfb-firefox.html)
    1. [Centos Installing Graphical X Window](http://alexbischof.blogspot.com/2012/11/centos-installing-graphical-x-window.html)
    1. [Headless Cucumbers And Capybaras With Selenium And Hudson](http://blog.kabisa.nl/2010/05/24/headless-cucumbers-and-capybaras-with-selenium-and-hudson/)
    2. [Problems With Bundling Xvfb Into Application on StackOverflow](http://stackoverflow.com/questions/8817196/problems-with-bundling-xvfb-into-application)
    3. [XQuartz Users FAQ](http://xquartz.macosforge.org/trac/wiki/X11-UsersFAQ)
    4. [How Connect Remote X11 Hosts Mac](http://www.infoworld.com/t/platforms/how-connect-remote-x11-hosts-mac-616)
    5. [Xvfb Wikipedia entry](http://en.wikipedia.org/wiki/Xvfb)
    5. [X-Wing art by Paul Harckham](http://rampagedreality.com/post/904335189/paul-harckham-has-his-x-wing-fine-art-print-up)
  8. Noah Sussman revised this gist Jun 25, 2013. 1 changed file with 5 additions and 3 deletions.
    8 changes: 5 additions & 3 deletions mac_xwindows_x11_xvfb_headless_firefox_howto.md
    Original file line number Diff line number Diff line change
    @@ -36,10 +36,12 @@ Note that it's *much* slower to execute the tests under XWindows vs. Xvfb.

    ### Installing XQuartz

    *XQuartz replaces the old X11 terminal that was part of Mac OS up until Mountain Lion.*
    *XQuartz replaces the old X11 terminal that was part of Mac OS up until Mountain Lion.* If you have an older version of Mac OS X then X11 should already be installed, and you can mentally replace "XQuartz" with "X11" throughout these instructions.

    0. First you need X11 or XQuartz. If you have an older version of Mac OS X then X11 should already be installed.
    0. If you are running Mountain Lion (OS X 10.8) or newer, then you can download XQuartz here: http://xquartz.macosforge.org/landing/
    0. Get XQuartz here. http://xquartz.macosforge.org/landing/ (The download will take a few minutes.)
    1. Run the installer.
    2. Log out and log back in.
    3. That's it! XQuartz should now be installed.

    ## Further Reading

  9. Noah Sussman revised this gist Jun 25, 2013. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions mac_xwindows_x11_xvfb_headless_firefox_howto.md
    Original file line number Diff line number Diff line change
    @@ -21,7 +21,7 @@ How to install an XWindows terminal so that you can connect to your CentOS 6.3 h

    ### Running Selenium tests in the GUI via XWindows

    4. SSH to the remot host as described above.
    4. Open XQuartz and ssh to your CentOS host using the `-X` option, eg: `ssh -X user@example.com`
    5. On the remote host, type `export DISPLAY=localhost:10.0`
    6. Start the Selenium server in the same terminal session, eg: `java -jar /opt/selenium-server-standalone.jar &`
    7. Now simply run your tests and you will see Firefox start up and run in the GUI, just like on the destkop!
    @@ -34,7 +34,9 @@ Note that it's *much* slower to execute the tests under XWindows vs. Xvfb.
    2. On the remote host, type `export DISPLAY=localhost:10.0`
    3. On the remote host, type `firefox &` and after a long pause you should see Firefox start up in a GUI window.

    ### Installation
    ### Installing XQuartz

    *XQuartz replaces the old X11 terminal that was part of Mac OS up until Mountain Lion.*

    0. First you need X11 or XQuartz. If you have an older version of Mac OS X then X11 should already be installed.
    0. If you are running Mountain Lion (OS X 10.8) or newer, then you can download XQuartz here: http://xquartz.macosforge.org/landing/
  10. Noah Sussman revised this gist Jun 25, 2013. 1 changed file with 10 additions and 10 deletions.
    20 changes: 10 additions & 10 deletions mac_xwindows_x11_xvfb_headless_firefox_howto.md
    Original file line number Diff line number Diff line change
    @@ -19,25 +19,25 @@ Follow these steps to set up a CentOS 6.3 host to run headless Selenium tests wi

    How to install an XWindows terminal so that you can connect to your CentOS 6.3 host and run your Selenium tests in a graphical Web browser. *This capability will be invaluable whenever you need to debug Selenium tests on one of your remote hosts.*

    ### Installation
    ### Running Selenium tests in the GUI via XWindows

    0. First you need X11 or XQuartz. If you have an older version of Mac OS X then X11 should already be installed.
    0. If you are running Mountain Lion (OS X 10.8) or newer, then you can download XQuartz here: http://xquartz.macosforge.org/landing/
    4. SSH to the remot host as described above.
    5. On the remote host, type `export DISPLAY=localhost:10.0`
    6. Start the Selenium server in the same terminal session, eg: `java -jar /opt/selenium-server-standalone.jar &`
    7. Now simply run your tests and you will see Firefox start up and run in the GUI, just like on the destkop!

    Note that it's *much* slower to execute the tests under XWindows vs. Xvfb.

    ### Connecting to a remote XWindows host

    1. Open XQuartz and ssh to your CentOS host using the `-X` option, eg: `ssh -X user@example.com`
    2. On the remote host, type `export DISPLAY=localhost:10.0`
    3. On the remote host, type `firefox &` and after a long pause you should see Firefox start up in a GUI window.

    ### Running Selenium tests in the GUI via XWindows

    4. SSH to the remot host as described above.
    5. On the remote host, type `export DISPLAY=localhost:10.0`
    6. Start the Selenium server in the same terminal session, eg: `java -jar /opt/selenium-server-standalone.jar &`
    7. Now simply run your tests and you will see Firefox start up and run in the GUI, just like on the destkop!
    ### Installation

    Note that it's *much* slower to execute the tests under XWindows.
    0. First you need X11 or XQuartz. If you have an older version of Mac OS X then X11 should already be installed.
    0. If you are running Mountain Lion (OS X 10.8) or newer, then you can download XQuartz here: http://xquartz.macosforge.org/landing/

    ## Further Reading

  11. Noah Sussman revised this gist Jun 25, 2013. 1 changed file with 13 additions and 2 deletions.
    15 changes: 13 additions & 2 deletions mac_xwindows_x11_xvfb_headless_firefox_howto.md
    Original file line number Diff line number Diff line change
    @@ -19,12 +19,23 @@ Follow these steps to set up a CentOS 6.3 host to run headless Selenium tests wi

    How to install an XWindows terminal so that you can connect to your CentOS 6.3 host and run your Selenium tests in a graphical Web browser. *This capability will be invaluable whenever you need to debug Selenium tests on one of your remote hosts.*

    ### Installation

    0. First you need X11 or XQuartz. If you have an older version of Mac OS X then X11 should already be installed.
    0. If you are running Mountain Lion (OS X 10.8) or newer, then you can download XQuartz here: http://xquartz.macosforge.org/landing/

    ### Connecting to a remote XWindows host

    1. Open XQuartz and ssh to your CentOS host using the `-X` option, eg: `ssh -X user@example.com`
    2. On the remote host, type `export DISPLAY=localhost:10.0`
    3. Type `firefox` and after a long pause you should see Firefox start up.
    4. Now if you start the selenium server in this terminal session, you will see Firefox start up when you run your tests.
    3. On the remote host, type `firefox &` and after a long pause you should see Firefox start up in a GUI window.

    ### Running Selenium tests in the GUI via XWindows

    4. SSH to the remot host as described above.
    5. On the remote host, type `export DISPLAY=localhost:10.0`
    6. Start the Selenium server in the same terminal session, eg: `java -jar /opt/selenium-server-standalone.jar &`
    7. Now simply run your tests and you will see Firefox start up and run in the GUI, just like on the destkop!

    Note that it's *much* slower to execute the tests under XWindows.

  12. Noah Sussman revised this gist Jun 25, 2013. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion mac_xwindows_x11_xvfb_headless_firefox_howto.md
    Original file line number Diff line number Diff line change
    @@ -30,9 +30,11 @@ Note that it's *much* slower to execute the tests under XWindows.

    ## Further Reading

    0. http://alexbischof.blogspot.com/2012/11/centos-installing-graphical-x-window.html
    0. http://www.semicomplete.com/blog/geekery/xvfb-firefox.html
    1. http://alexbischof.blogspot.com/2012/11/centos-installing-graphical-x-window.html
    1. http://blog.kabisa.nl/2010/05/24/headless-cucumbers-and-capybaras-with-selenium-and-hudson/
    2. http://stackoverflow.com/questions/8817196/problems-with-bundling-xvfb-into-application
    3. http://xquartz.macosforge.org/trac/wiki/X11-UsersFAQ
    4. http://www.infoworld.com/t/platforms/how-connect-remote-x11-hosts-mac-616
    5. http://en.wikipedia.org/wiki/Xvfb
    5. http://rampagedreality.com/post/904335189/paul-harckham-has-his-x-wing-fine-art-print-up
  13. Noah Sussman revised this gist Jun 25, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion mac_xwindows_x11_xvfb_headless_firefox_howto.md
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,7 @@ How to set up a Headless Selenium Testing environment for CentOS 6.3.
    Follow these steps to set up a CentOS 6.3 host to run headless Selenium tests with Firefox.

    0. `sudo yum -y install firefox Xvfb libXfont Xorg`
    0. `yum -y groupinstall "X Window System" "Desktop" "Fonts" "General Purpose Desktop"`
    0. `sudo yum -y groupinstall "X Window System" "Desktop" "Fonts" "General Purpose Desktop"` (installation takes a few minutes)
    1. Launch an XWindows Virtual Frame Buffer(XVFB) session on display port 99: `Xvfb :99 -ac -screen 0 1280x1024x24 &`
    2. Tell all XWindows applications in this terminal session to use the new Xvfb display port: `export DISPLAY=:99`
    3. Start the Selenium server, eg: `java -jar /opt/selenium-server-standalone.jar &`
  14. Noah Sussman revised this gist Jun 25, 2013. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions mac_xwindows_x11_xvfb_headless_firefox_howto.md
    Original file line number Diff line number Diff line change
    @@ -12,6 +12,8 @@ Follow these steps to set up a CentOS 6.3 host to run headless Selenium tests wi
    0. `yum -y groupinstall "X Window System" "Desktop" "Fonts" "General Purpose Desktop"`
    1. Launch an XWindows Virtual Frame Buffer(XVFB) session on display port 99: `Xvfb :99 -ac -screen 0 1280x1024x24 &`
    2. Tell all XWindows applications in this terminal session to use the new Xvfb display port: `export DISPLAY=:99`
    3. Start the Selenium server, eg: `java -jar /opt/selenium-server-standalone.jar &`
    4. Now start your Selenium tests. The Selenium server should spawn a headless Firefox instance and your tests should run successfully.

    ## On your Mac

  15. Noah Sussman revised this gist Jun 25, 2013. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions mac_xwindows_x11_xvfb_headless_firefox_howto.md
    Original file line number Diff line number Diff line change
    @@ -6,13 +6,17 @@ How to set up a Headless Selenium Testing environment for CentOS 6.3.

    ## On your CentOS 6.3 host

    Follow these steps to set up a CentOS 6.3 host to run headless Selenium tests with Firefox.

    0. `sudo yum -y install firefox Xvfb libXfont Xorg`
    0. `yum -y groupinstall "X Window System" "Desktop" "Fonts" "General Purpose Desktop"`
    1. Launch an XWindows Virtual Frame Buffer(XVFB) session on display port 99: `Xvfb :99 -ac -screen 0 1280x1024x24 &`
    2. Tell all XWindows applications in this terminal session to use the new Xvfb display port: `export DISPLAY=:99`

    ## On your Mac

    How to install an XWindows terminal so that you can connect to your CentOS 6.3 host and run your Selenium tests in a graphical Web browser. *This capability will be invaluable whenever you need to debug Selenium tests on one of your remote hosts.*

    0. First you need X11 or XQuartz. If you have an older version of Mac OS X then X11 should already be installed.
    0. If you are running Mountain Lion (OS X 10.8) or newer, then you can download XQuartz here: http://xquartz.macosforge.org/landing/
    1. Open XQuartz and ssh to your CentOS host using the `-X` option, eg: `ssh -X user@example.com`
  16. Noah Sussman revised this gist Jun 25, 2013. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions mac_xwindows_x11_xvfb_headless_firefox_howto.md
    Original file line number Diff line number Diff line change
    @@ -29,3 +29,4 @@ Note that it's *much* slower to execute the tests under XWindows.
    2. http://stackoverflow.com/questions/8817196/problems-with-bundling-xvfb-into-application
    3. http://xquartz.macosforge.org/trac/wiki/X11-UsersFAQ
    4. http://www.infoworld.com/t/platforms/how-connect-remote-x11-hosts-mac-616
    5. http://rampagedreality.com/post/904335189/paul-harckham-has-his-x-wing-fine-art-print-up
  17. Noah Sussman revised this gist Jun 25, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion mac_xwindows_x11_xvfb_headless_firefox_howto.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # XWindows for Headless Selenium testing
    # XWindows for Headless Selenium

    !['X Wing'](http://img.ffffound.com/static-data/assets/6/8fd1971a81b10820047220a3fea982c4bccea6fe_m.jpg)

  18. Noah Sussman revised this gist Jun 25, 2013. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion mac_xwindows_x11_xvfb_headless_firefox_howto.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,8 @@
    # How to set up a Headless Selenium Testing environment for CentOS 6.3
    # XWindows for Headless Selenium testing

    !['X Wing'](http://img.ffffound.com/static-data/assets/6/8fd1971a81b10820047220a3fea982c4bccea6fe_m.jpg)

    How to set up a Headless Selenium Testing environment for CentOS 6.3.

    ## On your CentOS 6.3 host

  19. Noah Sussman revised this gist Jun 25, 2013. 1 changed file with 8 additions and 1 deletion.
    9 changes: 8 additions & 1 deletion mac_xwindows_x11_xvfb_headless_firefox_howto.md
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@
    ## On your CentOS 6.3 host

    0. `sudo yum -y install firefox Xvfb libXfont Xorg`
    0. `yum -y groupinstall "X Window System" "Desktop" "Fonts" "General Purpose Desktop"` cf http://alexbischof.blogspot.com/2012/11/centos-installing-graphical-x-window.html
    0. `yum -y groupinstall "X Window System" "Desktop" "Fonts" "General Purpose Desktop"`
    1. Launch an XWindows Virtual Frame Buffer(XVFB) session on display port 99: `Xvfb :99 -ac -screen 0 1280x1024x24 &`
    2. Tell all XWindows applications in this terminal session to use the new Xvfb display port: `export DISPLAY=:99`

    @@ -18,3 +18,10 @@

    Note that it's *much* slower to execute the tests under XWindows.

    ## Further Reading

    0. http://alexbischof.blogspot.com/2012/11/centos-installing-graphical-x-window.html
    1. http://blog.kabisa.nl/2010/05/24/headless-cucumbers-and-capybaras-with-selenium-and-hudson/
    2. http://stackoverflow.com/questions/8817196/problems-with-bundling-xvfb-into-application
    3. http://xquartz.macosforge.org/trac/wiki/X11-UsersFAQ
    4. http://www.infoworld.com/t/platforms/how-connect-remote-x11-hosts-mac-616
  20. Noah Sussman revised this gist Jun 25, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion mac_xwindows_x11_xvfb_headless_firefox_howto.md
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@

    ## On your CentOS 6.3 host

    0. `sudo yum -y install firefox Xvfb Xorg`
    0. `sudo yum -y install firefox Xvfb libXfont Xorg`
    0. `yum -y groupinstall "X Window System" "Desktop" "Fonts" "General Purpose Desktop"` cf http://alexbischof.blogspot.com/2012/11/centos-installing-graphical-x-window.html
    1. Launch an XWindows Virtual Frame Buffer(XVFB) session on display port 99: `Xvfb :99 -ac -screen 0 1280x1024x24 &`
    2. Tell all XWindows applications in this terminal session to use the new Xvfb display port: `export DISPLAY=:99`
  21. Noah Sussman revised this gist Jun 25, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion mac_xwindows_x11_xvfb_headless_firefox_howto.md
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@

    ## On your CentOS 6.3 host

    0. `sudo yum -y install firefox Xvfb Xorg xorg-x11-fonts-misc`
    0. `sudo yum -y install firefox Xvfb Xorg`
    0. `yum -y groupinstall "X Window System" "Desktop" "Fonts" "General Purpose Desktop"` cf http://alexbischof.blogspot.com/2012/11/centos-installing-graphical-x-window.html
    1. Launch an XWindows Virtual Frame Buffer(XVFB) session on display port 99: `Xvfb :99 -ac -screen 0 1280x1024x24 &`
    2. Tell all XWindows applications in this terminal session to use the new Xvfb display port: `export DISPLAY=:99`
  22. Noah Sussman revised this gist Jun 25, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion mac_xwindows_x11_xvfb_headless_firefox_howto.md
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@

    ## On your CentOS 6.3 host

    0. `sudo yum -y install firefox Xvfb Xorg`
    0. `sudo yum -y install firefox Xvfb Xorg xorg-x11-fonts-misc`
    0. `yum -y groupinstall "X Window System" "Desktop" "Fonts" "General Purpose Desktop"` cf http://alexbischof.blogspot.com/2012/11/centos-installing-graphical-x-window.html
    1. Launch an XWindows Virtual Frame Buffer(XVFB) session on display port 99: `Xvfb :99 -ac -screen 0 1280x1024x24 &`
    2. Tell all XWindows applications in this terminal session to use the new Xvfb display port: `export DISPLAY=:99`
  23. Noah Sussman revised this gist Jun 25, 2013. 1 changed file with 0 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions mac_xwindows_x11_xvfb_headless_firefox_howto.md
    Original file line number Diff line number Diff line change
    @@ -7,8 +7,6 @@
    1. Launch an XWindows Virtual Frame Buffer(XVFB) session on display port 99: `Xvfb :99 -ac -screen 0 1280x1024x24 &`
    2. Tell all XWindows applications in this terminal session to use the new Xvfb display port: `export DISPLAY=:99`

    Note: If you intend to take screenshots, you can start Xvfb with 24 bit color enabled: `Xvfb :99 -ac -screen 0 1280x1024x24 &`

    ## On your Mac

    0. First you need X11 or XQuartz. If you have an older version of Mac OS X then X11 should already be installed.
  24. Noah Sussman revised this gist Jun 25, 2013. 1 changed file with 16 additions and 4 deletions.
    20 changes: 16 additions & 4 deletions mac_xwindows_x11_xvfb_headless_firefox_howto.md
    Original file line number Diff line number Diff line change
    @@ -1,10 +1,22 @@
    # How to set up a Headless Selenium Testing environment for CentOS 6.3

    ## On your CentOS 6.3 host

    0. `sudo yum -y install firefox Xvfb Xorg`
    0. `yum -y groupinstall "X Window System" "Desktop" "Fonts" "General Purpose Desktop"` cf http://alexbischof.blogspot.com/2012/11/centos-installing-graphical-x-window.html
    1. Launch an XWindows Virtual Frame Buffer(XVFB) session on display port 99: `Xvfb :99 -ac -screen 0 1280x1024x24 &`
    2. Tell all XWindows applications in this terminal session to use the new Xvfb display port: `export DISPLAY=:99`

    Note: If you intend to take screenshots, you can start Xvfb with 24 bit color enabled: `Xvfb :99 -ac -screen 0 1280x1024x24 &`

    ## On your Mac

    0. First you need X11 or XQuartz. If you have an older version of Mac OS X then X11 should already be installed.
    0. If you are running Mountain Lion (OS X 10.8) or newer, then you can download XQuartz here: http://xquartz.macosforge.org/landing/
    1. Open XQuartz and ssh to your CentOS host using the `-X` option, eg: `ssh -X user@example.com`
    2. On the remote host, type `export DISPLAY=localhost:10.0`
    3. Type `firefox` and after a long pause you should see Firefox start up.
    4. Now if you start the selenium server in this terminal session, you will see Firefox start up when you run your tests.

    ## On your CI slave
    Note that it's *much* slower to execute the tests under XWindows.

    0. `sudo yum -y install firefox Xvfb Xorg`
    0. `yum -y groupinstall "X Window System" "Desktop" "Fonts" "General Purpose Desktop"` cf http://alexbischof.blogspot.com/2012/11/centos-installing-graphical-x-window.html
    1. If you intend to take screenshots, you can start Xvfb with 24 bit color enabled: `Xvfb :99 -ac -screen 0 1280x1024x24 &`
  25. Noah Sussman revised this gist Jun 25, 2013. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion mac_xwindows_x11_xvfb_headless_firefox_howto.md
    Original file line number Diff line number Diff line change
    @@ -6,4 +6,5 @@
    ## On your CI slave

    0. `sudo yum -y install firefox Xvfb Xorg`
    0. `yum -y groupinstall "X Window System" "Desktop" "Fonts" "General Purpose Desktop"` cf http://alexbischof.blogspot.com/2012/11/centos-installing-graphical-x-window.html
    0. `yum -y groupinstall "X Window System" "Desktop" "Fonts" "General Purpose Desktop"` cf http://alexbischof.blogspot.com/2012/11/centos-installing-graphical-x-window.html
    1. If you intend to take screenshots, you can start Xvfb with 24 bit color enabled: `Xvfb :99 -ac -screen 0 1280x1024x24 &`
  26. Noah Sussman revised this gist Jun 25, 2013. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions mac_xwindows_x11_xvfb_headless_firefox_howto.md
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    ## On your Mac

    0. First you need X11. If you have an older version of Mac OS X then X11 should already be installed.
    0. If you are running Mountain Lion (OS X 10.8) or newer, then you can download X11 here: http://xquartz.macosforge.org/landing/
    0. First you need X11 or XQuartz. If you have an older version of Mac OS X then X11 should already be installed.
    0. If you are running Mountain Lion (OS X 10.8) or newer, then you can download XQuartz here: http://xquartz.macosforge.org/landing/

    ## On your CI slave

  27. Noah Sussman revised this gist Jun 25, 2013. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion mac_xwindows_x11_xvfb_headless_firefox_howto.md
    Original file line number Diff line number Diff line change
    @@ -5,4 +5,5 @@

    ## On your CI slave

    0. `sudo yum -y install firefox Xorg`
    0. `sudo yum -y install firefox Xvfb Xorg`
    0. `yum -y groupinstall "X Window System" "Desktop" "Fonts" "General Purpose Desktop"` cf http://alexbischof.blogspot.com/2012/11/centos-installing-graphical-x-window.html
  28. Noah Sussman revised this gist Jun 25, 2013. 1 changed file with 7 additions and 1 deletion.
    8 changes: 7 additions & 1 deletion mac_xwindows_x11_xvfb_headless_firefox_howto.md
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,8 @@
    ## On your Mac

    0. First you need X11. If you have an older version of Mac OS X then X11 should already be installed.
    0. If you are running Mountain Lion (OS X 10.8) or newer, then you can download X11 here: http://xquartz.macosforge.org/landing/
    0. If you are running Mountain Lion (OS X 10.8) or newer, then you can download X11 here: http://xquartz.macosforge.org/landing/

    ## On your CI slave

    0. `sudo yum -y install firefox Xorg`
  29. Noah Sussman revised this gist Jun 25, 2013. 1 changed file with 2 additions and 5 deletions.
    7 changes: 2 additions & 5 deletions mac_xwindows_x11_xvfb_headless_firefox_howto.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,2 @@
    First you need X11. If you have an older version of Mac OS X then X11 should already be installed.

    If you are running Mountain Lion (OS X 10.8) or newer, then you can download X11 here:

    http://xquartz.macosforge.org/landing/
    0. First you need X11. If you have an older version of Mac OS X then X11 should already be installed.
    0. If you are running Mountain Lion (OS X 10.8) or newer, then you can download X11 here: http://xquartz.macosforge.org/landing/
  30. Noah Sussman renamed this gist Jun 25, 2013. 1 changed file with 0 additions and 0 deletions.