How To Create a Mirth Connect Server On Ubuntu 20.04

  1. Create an Ubuntu Desktop VM
  2. Change IP address to desired address either through DHCP or statically on the machine
  3. Update Linux
    1. apt-get update
    2. apt-get upgrade
  4. Install Java and SQL
    1. Open the terminal
      1. sudo apt install default-jre
    2. Install sql
      1. sudo apt install mysql-server
  5. Make sure java installed
    1. Open terminal
      1. Java -version
  6. Go to https://www.nextgen.com/products-and-services/mirth-connect-downloads 
    1. Download the Linux.tar.gz file for the Linux installation
    2. Install the Administrator version as well
  7. Extract the 2 downloads and move them to the /opt/ directory 
    1. tar -xvzf /path/to/filename.tar.gz
  8. Open New terminal
    1. Move downloads from desktop to /opt/ directory
      1. Cd Desktop/
      2. Sudo mv /DOWNLOAD ONE NAME/ /opt/
      3. Sudo mv /DOWNLOAD TWO NAME/ /opt/
  9. Confirm that the files are in the /opt/ directory
    1. cd /opt/
    2. ls
      1. There should be 2 files in the /opt/ directory (the two you downloaded and moved)
  10. Enter the mirth file to find the configuration file
    1. cd Mirth\ Connect/
    2. ls
    3. cd /conf
    4. ONLY DO THIS IF YOU WISH TO EDIT CONFIG FILE
      1. nano mirth.properties
      2. You will not be free to edit the configuration files.
    5. Cat mirth.properties
      1. You should now be in the server properties of mirth. Edit these files if you wish to (username, password, port numbers)
  11. Lave the configuration file
    1. Cd ..
  12. Launch the server
    1. ./mcserver
  13. Connect to the server via web browser

IF YOU DECIDE TO USE THE ADMIN PROGRAM

  1. Open a new terminal window
  2. Navigate to /opt/ directory
    1. Cd /opt/
  3. Go into the mirth admin program
    1. cd mirth-administrator-launcher/
  4. Run the launcher
    1. ./launcher
    2. You should not be loading into the admin panel where you can enter your server credentials.

Leave a Reply

Your email address will not be published. Required fields are marked *