This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== 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 a ''libs'' folder in it and move this folder into ''/opt/bio/sources''. <code bash> % 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 </code> * This folder should belong to ''root'' and its permissions should be set to ''755''. <code bash> % sudo chown -R root:root /opt/bio/sources/MIDAS_V2.21 % sudo chmod 755 /opt/bio/sources/MIDAS_V2.21 </code> * Once you are in ''/opt/bio/sources/MIDAS_V2.21'', you need to edit the ''midas.sh'' script to make it more applicable. Open it and remove its content to put the following lines instead: <code bash> #!/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 </code> * This script needs to be made available to all: <code bash> % sudo chmod ugo+x midas.sh % sudo ln -s /opt/bio/sources/MIDAS_V2.21/midas.sh /usr/local/bin/midas </code> * To add MIDAS to the Impilo application menu, you have to edit the Xfce4 application menu: <code bash> % sudo xfce4-menueditor /etc/xdg/xfce4/desktop/menu.xml </code> * The three items to add are : * Item: Launcher * Name: TM4 MIDAS * Command: midas