Install Script: Difference between revisions

From MidasWiki
Jump to navigation Jump to search
(Created page with "== MIDAS installation via script == Paste following command in a terminal or shell prompt: <code>/bin/bash -c "$(curl -sS https://bitbucket.org/tmidas/midas/raw/HEAD/install.sh)"</code> <br /> 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 u...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
== MIDAS installation via script ==
== MIDAS installation via script ==


Paste following command in a terminal or shell prompt:
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:


<code>/bin/bash -c "$(curl -sS https://bitbucket.org/tmidas/midas/raw/HEAD/install.sh)"</code>
<code>/bin/bash -c "$(curl -sS https://bitbucket.org/tmidas/midas/raw/HEAD/install.sh)"</code>
Line 21: Line 28:


After a successful installation, you should be able to connect to mhttpd via http://localhost:8081 and see your experiment
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.

Latest revision as of 06:56, 19 January 2026

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.