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.

    • Related Articles

    • MATLAB / MathWorks installation and activation

      Introduction  This article links to knowledge base of MathWorks on how to install their products using network license and on offline machines.  See also: myDRE and Software Licenses If you have a working step-by-step procedure for yourself, please ...
    • Installing docker on Ubuntu 22

      First version: 2023-11-24 Last version: 2024-01-12 Last change: Small corrections to reflect that domain allowlisting is now a self-service feature. This is a community effort. The article was created through collaboration of the anDREa Support Team ...
    • Domains to be whitelisted/allowlisted for known applications

      First version: 2022-11-01 Last updated: 2024-04-08 Last change: Added domains for installing Visual Studio Code extensions. Introduction This is a community effort, if you experience issues, see mistakes/updates, or have other applications that you ...
    • Software support

      For all AUMC, EMC and UMCU workspaces: access to software using the Radboudumc license servers (e.g. Stata, Matlab, SPSS, Atlas.ti or anything that needs a license and is installed from the Install DRE applications manager) has been revoked from ...
    • Linux VMs

      On the myDRE platform different types of Linux virtual machines (VMs) are available. CentOS 7.5 (is reaching its end of life) Ubuntu 20 (for GPU usage) Ubuntu 22 By default, Linux VMs have no connection to the outside world, so cannot be directly ...