Current Page: NeXtMidas Training Start Here Hosting
- | Hosting: If you will be hosting a session of the NeXtMidas Training Class and wish to provide additional systems (in addition to the instructor-provided ones) the following setup is required. This setup will ensure that your systems are configured similar to the ones provided by the instructor. This setup is more complicated than the basic NeXtMidas installation since it attempts to duplicate the installation used by many NeXtMidas systems operating in the field.
      User Accounts
        - Create two user accounts:
              xmmgr    (Group:midas - No xmmgr group)
              student  (Group:student,midas)

        - Both accounts should have tcsh or bash as the default shell.
        - The student account should have the password "student" and
          the xmmgr account should have the password "xmmgr".

      Midas Disk Partitions & Data Directories
        /midas        --> <disk: ~16MB>
        /midas/data1  --> <disk: ~xxGB>

        After that is done, we need to setup the user data directories:
          chown -R xmmgr:midas /midas
          chmod -R 755 /midas

          mkdir /midas/data1/xmmgr
          chown xmmgr:midas /midas/data1/xmmgr
          chmod 775 /midas/data1/xmmgr

          mkdir /midas/data1/student
          chown student:midas /midas/data1/student
          chmod 775 /midas/data1/student

      Basic Tools (the version that come with RedHat should be fine)
        - nedit
        - emacs
        - vi
        - gcc
        - Mozilla
        - VNC
        - Apache Web Server (Used in the Apache/WebStart section)

      Java / NetBeans
        Install them in this order:

        (1) Java 7 (http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html)
            On the Java web page, click "Java SE" on the right and then choose
            "JDK 7.0 Update 79 or later".
                - Do NOT get the "Java EE" version.
                - Do NOT get the RPM version, always use the binary (.bin).

            When you install Java 7 it will install into a directory named
            "jdk1.7.0_<minor_update>" (ex:  jdk1.7.0_79); move that whole directory to "/opt/jdk1.7.0_79".

            (1B) Create a symbolic link from /opt/java7 to the JDK installation directory.

        (2) Java 8 docs (http://java.oracle.com/)
            On the Java web page, click "Java SE" on the right and then choose
            "Java SE 8 Documentation" under "Additional Resources". The Java Docs will be a zip file. Copy the
            zip file into "/opt/java8docs/" and then unzip it.

        (3) NetBeans 6.5  (http://www.netbeans.org/)
            Install NetBeans under /opt/netbeans-6.5/, this should be the default.

        (4) NetBeans Profiler (this is included in NetBeans 6.5), for prior versions it is a separate download.

        (5) NetBeans C/C++ Pack 6.5 (http://www.netbeans.org/)

      Java Plugin
        - Need to make a link for the Java plugin to work, there are
          instructions at the bottom of the Netscape/Mozilla page in
          the "Third-Party Interoperability" section of the NeXtMidas
          User's Guide.

          You can test this out by going to http://nextmidas.com/ (currently unavailable)
          nextmidas/, you should be able to run the "NeXtMidas"
          WebStart demos just by clicking the links.

      NeXtMidas
        - NeXtMidas 4.0.0 (or later)
        - Available via request, see instructions at:
          http://nextmidas.com/ (currently unavailable)
        - Install in /opt/midas/nxm400
        - Create symbolic link to it from student's home directory as "nxmxxx", e.g.
            ln -s /opt/midas/nxm400 /home/student/nxmxxx

      Fortran Compiler (Used in the X-Midas Interoperability section)
        - Intel Fortran Compiler for Linux (minimum version 11.1)

          (Install under /opt/intel/.../, this should be the default)

      X-Midas (Used in the X-Midas Interoperability section)
        - X-Midas
        - Follow X-Midas installation instructions

      Mozilla Configuration (Student Account Only)
        - Mozilla does not properly handle some of the necessary
          MIME types correctly. It is necessary to manually set
          it to use nedit for all files with a .java, .mm, and
          .tbl extension.

        - Delete the Mozilla "quick links" and make our own:
            (1) NeXtMidas Training
                (file:///home/student/nxmxxx/htdocs/training/index.html)

            (2) NeXtMidas Master Help Index
                (file:///home/student/nxmxxx/htdocs/index.html)

            (3) Java API
                (file:///opt/java8docs/docs/api/index.html)

            (4) NeXtMidas Homepage (website)
                (http://nextmidas.com/)

          The NeXtMidas Training page should also be set as the
          homepage for the browser.

      .cshrc File (Student Account Only)
        - Update the Student's .cshrc file with the following:
            setenv JAVAHOME   /opt/java7/
            setenv PATH       "${JAVAHOME}:${PATH}"

            setenv NMROOT     /home/student/nxmxxx/
            alias  nmstart    'source ${NMROOT}/os/unix/nmstart'
            alias  nms        nmstart

            # This is for use with the Intel Fortran Compiler
            setenv NM_FORTRAN "ifort"
            source /opt/intel/fc/<ver>/bin/ifortvars.csh

            # This is for use with X-Midas
            source /etc/midas.cshrc

      .bashrc File (Student Account Only)
        - Update the Student's .bashrc file with the following:
            export JAVAHOME=/opt/java7/
            export PATH='${JAVAHOME}:${PATH}'

            export NMROOT=/home/student/nxmxxx/
            alias nmstart='source $NMROOT/os/unix/nmstart.sh'
            alias nms=nmstart

            # This is for use with the Intel Fortran Compiler
            export NM_FORTRAN='ifort'
            source='/opt/intel/fc/<ver>/bin/ifortvars.csh'

            # This is for use with X-Midas
            source='/etc/midas.cshrc'