Install Script

From MidasWiki
Jump to navigation Jump to search

MIDAS installation via script

To install MIDAS vis the install script, make sure that following packets are installed:

  • git
  • cmake
  • g++ / c++
  • zlib1g-dev

Then paste following command in a terminal or shell prompt:

/bin/bash -c "$(curl -sS https://bitbucket.org/tmidas/midas/raw/HEAD/install.sh)"

The script will:

  • Check if all necessary tools and libraries are installed and break if not
  • Ask for the installation directory, the midas experiment directory and the experiment name
  • Download midas via git clone
  • Compile midas via cmake
  • Install midas under the user $MIDASSYS/bin directory where $MIDASSYS is the midas installation directory
  • Add the above directory to the path and put the environment variables MIDASSYS, MIDAS_DIR and MIDAS_EXPT_NAME in your environment
  • Add $MIDASSYS/python to PYTHONPATH
  • Create your experiment directory
  • Load an initial ODB file which configures mhttpd to accept insecure connections through port 8081. Change that later to secure your connections.
  • Install the MIDAS web server mhttpd as a system daemon via systemctl and start it
  • Start a midas example frontend and the logger

After a successful installation, you should be able to connect to mhttpd via http://localhost:8081 and see your experiment

Non-interactive installations

It is also possible to first download the install.sh file using the curl command and then executing it directly with ./install.sh. Add the flag "-f" to force the installation at the default directories without asking for any user input. This can be useful for automated installations such as in a Docker.