MATLAB 2020b and later

Installation Guide for Department Desktop / Lab Desktop / Network based License Inside the IISc Network

Before You Install

Make sure you have filled the TAH Desktop Computer Form  for Network based license online and have obtained a Mathworks account.   If you have not done this then, please go to the following link and follow the instructions there.

https://www.serc.iisc.ac.in/software/matlab-tah-model-total-academic-headcount-license-tah

Then you can continue with the procedure given below.

Before you run the installer:

  • Windows Systems
    Get the name and password of the administrator account on your computer. The installer modifies the system registry during installation.

  • Linux Systems
    Get the root password. You can install MATLAB software without superuser privileges, however, it limits certain installation options. For example, if you want to setup symbolic links to the matlab command, install product files in a protected folder, or edit the system boot script, you must have superuser status.

  • Macintosh Systems
    Get the name and password of the administrator account on your computer. The administrator account is the user account you set up when you configured your Macintosh system; this is not your MathWorks Account. During installation, you must enter this name and password in the Authenticate dialog box, shown below.

 
Consider disabling virus-checking software and Internet security applications on your system for the duration of the installation process. These applications can slow down the installation process or cause it to appear unresponsive (or to hang).

Step 1: To Start the Installation

To install through network from SERC

For Windows

Installation of Matlab through network

  • Go to Start -> Run

  • type \\10.16.4.96\shares and click on OK
  • A window will open. All the versions of matlab have been dumped and shared for network access here.

  • Click on “Matlab-R2020b” folder. Inside this folder you will find the following.
    • From here copy the ” Matlab-R2020b_Win64″ folder and the file “license.dat” to your machine and then open the Matlab folder. (You can also directly install from the network directory also.)
    • [Once you copy the “license” file you need not download the file again as given in “Step 7 “. You can skip that part.]
    • Double click on “setup.exe” and the installation will start.

The next steps are as given below in the installation section.

For Mac
  • Installation of Matlab through network
    Follow either of the methods below, Terminal or GUIThrough Terminal:
    Login as superuser into your Mac system and make a directory where you can mount the files. For example

      • # mkdir /opt/matlab9.9

      • Now open a terminal. At the prompt type
      • # mount -t smbfs //guest@10.16.4.96/shares /opt/matlab9.9 (or)# mount -t cifs //guest@10.16.4.96/shares /opt/matlab9.9

    OR

      • Through GUI:Go to finder and press (command + k) or click the option “connect to server”
      • Type the following”cifs://10.16.4.96/shares” or “smbfs://10.16.4.96/shares” and press enterIn the pop up box, enter “guest” as username as registered user and press enter, password not required.
    • After successfully mounting, change to Matlab-R2020b directory. You will see four directories, one for linux, one for Mac, one for windows32 and one for windows 64. You will also find a file “license.dat” which you can copy to some other directory (/usr/local maybe) on your machine.

      In the terminal mode at the hash prompt

    • # cp license.dat /usr/local/ (please give path to the directory where you want to store this file.)

    • [Once you copy the “license.dat” file you need not download the file again as given in “Step 7”. You can skip that part.]

    • Now change directory to “\\10.16.4.96\shares\Matlab-R2020b\Matlab-R2020b_Mac\InstallForMacOSX.app\Contents\MacOS”. Double click on InstallForMacOSX.The installation starts.

    The next steps are as given below in the installation section.

For Linux
Installation of Matlab through network

Please Note: Linux users will have to copy the installation setup files to their PC, so its recommended that your system has a minimum of 15 GB at least to complete the Installation successfully.

  • Log in as superuser into your Linux system or use sudo and make a directory where you can mount the files.
  • # mkdir /opt/matlab9.9
  • # mount -t cifs //10.16.4.96/shares /opt/matlab9.9 -o guest
  • Change directory to the mounted path, i.e “/opt/matlab9.9 “, You will see four directories, one for linux, one for Mac, one for windows32 and one for windows 64. You will also find a file “license.dat” which you can copy to some other directory (/usr/local maybe) on your machine.
  • # cp license.dat /usr/local/
    (please give path to the directory where you want to store this file.)
  • [Once you copy the “license.dat” file you need not download the file again as given in “Step 7”. You can skip that part.]
  • Copying the Software package to your PC: Here “~/Desktop/” can be any path in your System where you would like to copy the software package.
  • # cp -vr /opt/matlab9.9/Matlab-R2020b/Matlab-R2020b_Linux64/ ~/Desktop/

    Now change to the directory where you copied the software package.
    For Matlab-R2022a version, if you are using sudo, run the command xhost +SI:localuser:root

  • cd ~/Desktop/Matlab-R2020b_Linux64/” and at the prompt type ./install and press enter.
  • #[Matlab-R2020b_Linux]# ./install
  • The installation starts.

The next steps are as given below in the installation section.

Step 1: To Start the Installation

Run the exe file.

You get following page. Login with the IISc email id as username and the password which is re-setted  after confirming the email which is received from “service.mathworks”


Step 2 : Accept the Agreement


Step 3 : You get the following page


Step 4 : The following License Selection screen with the default selected as “Concurrent”.


Step 5:

After making your selection, click Next.


Step 6:

Specify the location of your License File and click Next.

SERC NOTE:
Please do not modify the license file in any way.
Users are required to update local DNS setting as indicated in
http://nitss.serc.iisc.ernet.in/docs/configuration/dns_settings/HowToChangeDNS.html


Step 7: Specify Products to Install

You can specify which products you want to install in the Product Selection dialog box. This dialog box lists all the products associated with the license you selected or with the File Activation Key you specified. In the dialog box, all the products are preselected for installation. If you do not want to install a particular product, clear the check box next to its name. After selecting the products you want to install, click Next to continue with the installation.


 


Step 8: Confirm Your Choices and Begin Installation

Click on “Next” Button.

 
You get following page with the license information and the destination directory. Click on “Begin Install”
 

As it copies files to your hard drive, the installer displays a status dialog box to show the progress of the installation.


Step 9: Complete the Installation

When the installation successfully completes, the installer displays the Installation Complete dialog box. Click on Finish.

 

 

SERC NOTE: For Network Concurrent License Activation of Matlab

Make sure you are able to resolve matlab-tah.serc.iisc.ernet.in

Command at the prompt is

#nslookup matlab-tah.serc.iisc.ernet.in

Response you must get is

#Server: 10.16.25.15

Address: 10.16.25.15#53

matlab-tah.serc.iisc.ernet.in.

Name: matlab-tah.serc.iisc.ernet.in

Address: 10.16.4.41

Use following url for setting DNS.

http://nitss.serc.iisc.ernet.in/docs/configuration/dns_settings/HowToChangeDNS.html


Note : If you get license fetch error, please make the following entry in /etc/hosts

10.16.4.41 matlab-tah matlab-tah.serc.iisc.ernet.inFor windows path is: C:\Windows\System32\drivers\etc\hosts
For Linux path is: /etc/hosts