Installation of TM4 MIDAS 2.21
Additional libraries
Java, already installed.
Procedure
Here is the procedure to install MIDAS:
- MIDAS is distributed as a JAR archive (Midas.jar) and a collection of auxiliary JAR files. Download and decompress the ZIP archive in
/home/bioubuntu
, create alibs
folder in it and move this folder into/opt/bio/sources
.
% mkdir /home/bioubuntu/MIDAS_V2.21/libs % mv /home/bioubuntu/MIDAS_V2.21/*.jar /home/bioubuntu/MIDAS_V2.21/libs % sudo mv /home/bioubuntu/MIDAS_V2.21 /opt/bio/sources
- This folder should belong to
root
and its permissions should be set to755
.
% sudo chown -R root:root /opt/bio/sources/MIDAS_V2.21 % sudo chmod 755 /opt/bio/sources/MIDAS_V2.21
- Once you are in
/opt/bio/sources/MIDAS_V2.21
, you need to edit themidas.sh
script to make it more applicable. Open it and remove its content to put the following lines instead:
#!/bin/sh TM4MIDAS_HOME=/opt/bio/sources/MIDAS_V2.21 for jar in $TM4MIDAS_HOME/lib/*.jar do if [ -z "$CLASSPATH" ] then CLASSPATH=$jar else CLASSPATH=$jar:$CLASSPATH fi done export CLASSPATH java -Xmx768m -Xms256m -cp $CLASSPATH:. org.tigr.midas.display.Midas
- This script needs to be made available to all:
% sudo chmod ugo+x midas.sh % sudo ln -s /opt/bio/sources/MIDAS_V2.21/midas.sh /usr/local/bin/midas
- To add MIDAS to the Impilo application menu, you have to edit the Xfce4 application menu:
% sudo xfce4-menueditor /etc/xdg/xfce4/desktop/menu.xml
- The three items to add are :
- Item: Launcher
- Name: TM4 MIDAS
- Command: midas