Current Page: NeXtMidas Training Installing NeXtMidas Installing on Unix Set Environment Variables
- - | Shell Setup: NeXtMidas runs with the C-shell (either csh or tcsh) and Bash shell. Follow the instructions below to set up the environment variables in the shell of your choosing. This follows X-Midas practice. Environment Variables: Set `JAVAHOME` to point to the Java installation directory (this is usually under `/opt/`). For example:
        C-Shell: setenv JAVAHOME /opt/j2sdk1.4.2_04
        Bash:    export JAVAHOME=/opt/j2sdk1.4.2_04
  - Set the `NMROOT` to point to the NeXtMidas install directory. For example:
        C-Shell: setenv NMROOT /home/midas/nxm220
        Bash:    export NMROOT=/home/midas/nxm220
  - Alias `nmstart` to simplify starting NeXtMidas:
        C-Shell: alias nmstart source $NMROOT/os/unix/nmstart
        Bash:    alias nmstart='source $NMROOT/os/unix/nmstart.sh'
  - Use single quotes rather than double quotes when setting this alias so that any change to `NMROOT` will be automatically picked up next time you use `nmstart`. Many users also alias `nms` to `nmstart`:
        C-Shell: alias nms nmstart
        Bash:    alias nms=nmstart
  - To make life easy these can all be set in `.cshrc` for C-Shell and `.bashrc` for Bash. For example:
        C-Shell:
        setenv JAVAHOME /opt/j2sdk1.4.2_04
        setenv NMROOT   /home/midas/nxm220
        alias nmstart   source $NMROOT/os/unix/nmstart
        alias nms       nmstart
        Bash:
        export JAVAHOME=/opt/j2sdk1.4.2_04
        export NMROOT=/home/midas/nxm220
        alias nmstart='source $NMROOT/os/unix/nmstart.sh'
        alias nms=nmstart