Install and License Matlab on Offline Lehigh Workstations

Install and License Matlab on Offline Lehigh Workstations

Most Lehigh-owned computers running Matlab do so by contacting a license server over the LAN to obtain a concurrent user license while they’re using the software. Sometimes, however, it’s necessary to install the software onto a system which is not connected to the LAN. This can be done by accessing the Mathworks licensing center and obtaining a license file for each specific machine to be so licensed. It’s cumbersome, because these license files need to be regenerated each year, but it is possible. This document describes that procedure.

This procedure is exactly that outlined on Mathworks' website on the following pages:

The example below uses a Windows-based system.

  1. Find the ‘Host ID’ for the computer you’re installing the software onto.

    1. In Windows, the easiest way to do this is to open a command prompt on the machine by typing ‘cmd’ in the Start menu’s search box.

    2. Type ‘ipconfig /all'. This will list the network interfaces on the computer. One will be the primary ethernet interface, and will list a 'Physical Address’ that consists of 12 characters.

    3. That’s your HostID.

    4. In Linux, go to ‘Settings’ and ‘Network’ and click the ‘gear’ icon next to the entry for ‘Wired’ and copy the number next to ‘Hardware Address’

cmd window - Host ID - Screenshot 2024-09-06 102646.png
  1. Log into the Mathworks License Center, and select a Designated Computer License.

    1. In a web browser on an internet-connected computer, go to https://login.mathworks.com.

    2. Log in by entering your Lehigh email address, and if prompted, enter your Lehigh username and password at the Lehigh login prompt.

    3. Once back at the Mathworks home page, click on your account icon in the upper right (most often labelled with your initials). This option might be under a ‘menu’ icon.

    4. In the pull-down menu that appears, select ‘My Account’

 

Mathworks Website Menu Icon.png
Mathworks Website Account button.png
  1. Under ‘My Software,' click on the ‘Manage’ icon in the ‘Designated Computer’ row.

    1. Select the ‘Install and Activate’ tab, and

    2. click ‘Activate to Retrieve License’.

    3. In the ‘Activated Computers’ window, click ‘Activate Computer’

 

Matlab Website Designated Computer License Management button.png
2 - Mathworks License Center - Install and Activate Tab - Activate to Retrieve License File - Screenshot 2024-09-05 092204.png
Matlab Website Activate Computer button.png
  1. ‘Manually Activate Software’ window, specify:

    1. The MATLAB version you have installed (or will have)

    2. The computer’s operating system type

    3. Your system’s Host ID, and

    4. An indicative ‘Computer Label’ to describe the computer,

and click ‘Continue’.

 

3 - Mathworks License Center - Manually Activate a Computer - Brienne - Screenshot 2024-09-05 092707.png
  1. Specify whether the software is already installed or not.

    1. If not, you get an opportunity to download the installer here.

    2. The website will offer to let you download the license file or have it emailed.

    3. It will also show you Lehigh’s File Installation key for that license.

    4. A screenshot might be a good idea.

 

4- Software installed - Screenshot 2024-09-05 092819.png
2 Mathworks Website License File Download Button and File Inst Key copy.jpg
  1. Save the generated license file, and name it descriptively.

    1. It may be handy to keep these license files in case the software needs to be re-installed during the year.

5 - Save License file - Screenshot 2024-09-05 092929.png

 

  1. Next, copy the license file and, if needed, the software installation files to the offline workstation, (using a flash drive, or other means)

 

  1. If the software is not yet installed, run the setup program, and install MATLAB.

    1. After the installation is done, the setup program will automatically start the licensing wizard.

    2. You can then specify the file installation key and open the license file.

 

  1. If the software is already installed, you can simply run the license activation wizard.

    1. On Windows systems with MATLAB 2022a, that program is located at C:\Program Files\MATLAB\R2022a\bin\win64\activate_matlab.exe

    2. In that wizard, indicate that you have a license file, and direct it to the one acquired in step 6.