Install Script: Difference between revisions

From MidasWiki
Jump to navigation Jump to search
(The midas documentation has moved to https://midas.triumf.ca/docs/)
 
Line 1: Line 1:
== MIDAS installation via script ==
The midas documentation has moved. See [https://midas.triumf.ca/docs/develop/getting_started/installation/#install-script Install script] on the Installation and environment page for the new documentation about installing midas with the install 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:
 
<pre>/bin/bash -c "$(curl -sS https://bitbucket.org/tmidas/midas/raw/HEAD/install.sh)"</pre>
 
For an unattended install with default parameters do:
 
<pre>/bin/bash -c "$(curl -sS https://bitbucket.org/tmidas/midas/raw/HEAD/install.sh)" -- -f</pre>
<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 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.

Latest revision as of 22:00, 30 October 2026

The midas documentation has moved. See Install script on the Installation and environment page for the new documentation about installing midas with the install script.