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
might be an interesting command to try (update the version of selenium obviously.