In my case i need to deploy FitNesse standalone jar on CentOs server for use by testers and run selenium tests. Below are the steps that will help to quickly do this.

Environment: CentOS 7.4, Java 1.8, Firefox 59.0.2 x64 (latest version at the time of writing the post)

  1. Install Java
  2. Move FitNesse stanalone jar to  /opt/fitnesse/
  3. Install firefox:
    1. You can install firefox through
      Copy to Clipboard
      , firefox will not install the latest version, but all necessary libraries will be downloaded and installed for normal operation.
    2. Download the latest version from https://www.mozilla.org/en/firefox/all/, at the moment it’s https://download-installer.cdn.mozilla.net/pub/firefox/releases/59.0.2/linux-x86_64/en-US/firefox-59.0.2.tar.bz2 firefox-59.0.2.tar.bz2 and unzip to /opt/firefox/
    3. Create links: 
      Copy to Clipboard
  4. Install X windows virtual framebuffer:
    1. Install:
      Copy to Clipboard
       
      Copy to Clipboard
    2. Run:
      1. Run  XWindows Virtual Frame Buffer(XVFB) on Display Port 99: 
        Copy to Clipboard
      2. Redirect all XWindows applications to the Xvfb display port  (you can add this to .bash_profile): 
        Copy to Clipboard
  5. Run FitNesse. I wrote a simple bash script for run FitNesse with a check, does the variable DISPLAY exist and xvfb is run. 
    Copy to Clipboard