Installing Mathworks Matlab on Ubuntu

Installing Mathworks Matlab on Ubuntu

The "normal" matlab install doesn't work on the current anDREa Ubuntu image because the home folder uses special characters (@), unzip is not installed and mathworks.com is blocked:

This is a workaround:

 

Requirements:

  • Advanced Member in anDREa
  • A Mathworks account with an active personal license
    • i.e. this doesn't work for installing matlab for Standard Members in anDREa, You would need to distribute a license file or connect to your license server which results in a very different installation procedure.
  • (Temporarily) whitelisted domains in anDREa
    • mathworks.com
    • archive.ubuntu.com
  • Unzip installed:
    • Install unzip with
      • sudo apt install unzip
  • root added to the xhost server:
    • sudo xhost +SI:localuser:root

 

Installation:

  • Open www.mathworks.com in the browser of the anDREa ubuntu machine
  • Open the matlab option in the tile button (top right)
  • Click Install Matlab and download for Linux
  • The zip file is downloaded in your Downloads folder
  • Unzip the zip file
  • And run
    • sudo ./install
  • This workaround (with sudo) doesn't create the "normal" Matlab icon. Run matlab (without sudo) from terminal.