Skip to content

Instantly share code, notes, and snippets.

@Quilted
Last active January 3, 2016 15:09
Show Gist options
  • Save Quilted/8480580 to your computer and use it in GitHub Desktop.
Save Quilted/8480580 to your computer and use it in GitHub Desktop.
Turn on Jenkins and Selenium
Xvfb -fp /usr/share/fonts/X11/misc/ :99 -screen 0 1024x768x16 >/dev/null &
export DISPLAY=:99
nohup java -Djava.security.egd=file:/dev/./urandom -jar /var/lib/selenium/selenium-server-standalone-2.43.1.jar >/dev/null &
service jenkins start

Only when you first install: Edit the /etc/mysql/my.cnf file to have the proper bind address See http://unix.stackexchange.com/questions/32766/xvfb-or-firefox-throwing-errors-gratuitously-logging if Selenium is being chatty

Info about Xvfb and selenium issues http://www.x.org/wiki/FAQErrorMessages/ http://stackoverflow.com/questions/14058111/selenium-server-doesnt-bind-to-socket-after-being-killed-with-sigterm

@Quilted
Copy link
Author

Quilted commented Oct 22, 2014

DISPLAY=:1 xvfb-run java -jar selenium-server-standalone-2.0b3.jar

might be an interesting command to try (update the version of selenium obviously.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment