/matlab_installer

Bash script to automate the installation of MATLAB in GNU/Linux, and macOS. Open to members of the NYU research community.

Primary LanguageShellMIT LicenseMIT

MATLAB Installer

Codacy Badge Maintenance made-with-bash MIT licensed Open Source Love svg3

Bash script to retrieve, install, and symlink various versions of MATLAB:

Version Release Name
MATLAB 9.0 R2016a
MATLAB 9.1 R2016b
MATLAB 9.2 R2017a
MATLAB 9.3 R2017b
MATLAB 9.4 R2018a
MATLAB 9.5 R2018b
MATLAB 9.6 R2019a
MATLAB 9.7 R2019b
MATLAB 9.9 R2020b
MATLAB 9.11 R2021b
MATLAB 9.13 R2022b

Also included: script to update stale network license strings.

Open to members of New York University's Center for Brain Imaging, Center for Neural Science, and Department of Psychology on the Meyer network.

Tested to run on GNU/Linux (Debian-based OSs) and currently-supported versions of macOS.

EZ Install

macOS: curl https://raw.githubusercontent.com/marshki/matlab_installer/master/src/macOS/macOS_installer.sh | caffeinate sudo bash

GNU/LINUX (Debian-based distros): wget https://raw.githubusercontent.com/marshki/matlab_installer/master/src/linux/linux_installer.sh && sudo bash linux_installer.sh

Getting Started

For sysadmins who want to replicate this process, we assume the following of you:

  • are affiliated with an institution that has a valid Total Academic Headcount License agreement with Math Works

  • may access a network license server to validate local MATLAB installs

  • can access a networked file server

  • deployed MATLAB locally on a macOS and/or GNU/Linux client

On your local client, tar up the MATLAB install with, e.g.:

tar czf matlab9.5.tgz matlab9.5

and place the file on your web server for distribution.

If needed, modify the installer script(s) to reflect your institution's environment.

For sysadmins AND end users:

Pre-flight checklist (the script will check for the following conditions):

  • root privileges

  • adequate free disk space (30 GBs)

  • curl or wget

  • access to the the appropriate local network

NOTE: If you want the TUI version, you'll need to add the dialog package via Apt with:

apt-get install --yes dialog prior to executing the script.

Liftoff:

Grab the script for your OS from /src in this repository, then, with elevated privileges, call the script (caffeinate will prevent macOS from going to sleep during the installation):

  • sudo bash linux_installer.sh (Linux), or: caffeinate -i sudo bash macOS_installer.sh (macOS) to auto-install the most recent version of Matlab.

  • caffeinate -i sudo bash macOS_multi_installer.sh (macOS) will launch a text-based menu. From there, follow on-screen prompts:

Alt text

  • bash linux_installer_tui.sh (Linux) will launch a text-based user interface and do the driving for you:

Alt text|Alt text

History

v.0.4 04-SEPT-2021

License

LICENSE.

Acknowledgments

wget + dialog progress bar built off of gist from here.