This tutorial will explain how to install Matlab2016b on Ubuntu 16.04 LTS.

The instaling files are usually divided into three packages, that is

R2016b_glnxa64_dvd1.iso
R2016b_glnxa64_dvd2.iso
Matlab 2016b Linux64 Crack.rar

Table of Contents

Step 0: Before installing

Unrar crack files and Read the readme.txt file.

$ sudo apt install unrar-free
$ mkdir crack && unrar *Crack.rar crack

Step 1: Mount the directory

$ sudo mkdir /media/[YOUR-USERNAME]/Matlab_R2016b
$ sudo mount -t auto -o loop [YOUR-PATH]/*dvd1.iso /media/[YOUR-USERNAME]/Matlab_R2016b

Step 2: Start to install

sudo /media/[YOUR-USERNAME]/Matlab_R2016b/install

After a while, the GUI of MathWorks Installer appeared.

Step 3: Continue to install

  • While the GUIT is presented, select Use a File Installation key and press Next;
  • Choose Yes to accept the terms of the license agreement and press Next;
  • Select I have the File Installation Key for my license, and type the key from readme.txt (In Step 0). Once finished, then press Next to continue installing;
  • Choose installation folder (default, /usr/local/MATLAB/R2016b), and press Next;
  • Select products to install (default, select all) and press Next;
  • Confirmation and press Install.

Step 4: Mount the second dvd file

When completed about 80% of the installation, it prompts you to “eject DVD 1 and insert DVD 2 to continue”.

Open a new terminal (such as, press CTRL+ALT+T), and type command in the following.

$ sudo mount -t auto -o loop [YOUR-PATH]/*dvd2.iso /media/[YOUR-USERNAME]/Matlab_R2016b

After mounted the DVD 2 successfully, press OK to continue.

Step 5: Complete the installation

Finally. “Product Configuration Notes” come out and press Next and then Finish to complete the installation.

Once finished the installing in the GUI, then umount the dvd2 from /media/[YOUR-USERNAME]/Matlab_R2016b.

$ sudo umount /media/[YOUR-USERNAME]/Matlab_R2016b
$ sudo rmdir /media/[YOUR-USERNAME]/Matlab_R2016b

Then try to activate Matlab.

$ sudo mkdir /usr/local/MATLAB/R2016b/bin/licenses
$ sudo chmod 777 /usr/local/MATLAB/R2016b/bin/licenses
$ sudo cp -a [YOUR_PATH]/crack/license_standalone.lic /usr/local/MATLAB/R2016b/bin/licenses
$ sudo cp -a [YOUR_PATH]/crack/R2016b/bin/glnxa64 /usr/local/MATLAB/R2016b/bin/glnxa64
$ sudo chmod 777 /usr/local/MATLAB/R2016b/bin/licenses/license_standalone.lic
$ sudo chmod -R 777 /usr/local/MATLAB/R2016b

Note: When first start the Matlab, try to destinate the license file to activate Matlab permanently without internet. (default, /usr/local/MATLAB/R2016b/bin/licenses/license_standalone.lic)

Step 6: Obtain support

Get support from Mathworks, such as shortcut, rename the gcc library, and so on.

$ sudo apt-get install matlab-support

Tip: Default directory: /usr/local/MATLAB/R2016b.