Install Support Packages for MATLAB on MATLAB Online Server
A support package is a type of add-on that enables MATLAB® users to use a MathWorks® product with specific third-party hardware and software. This topic describes how to install support packages in MATLAB Online™ so that they are accessible by all users.
Prerequisites
Before you begin, make sure you have done the following tasks:
Installed the Linux® version of MATLAB to the
/MATLAB
folder.Installed and configured MATLAB Online Server™.
Change Support Package Root
Create a folder inside
/MATLAB
namedSupportPackages
:mkdir /MATLAB/SupportPackages
Open MATLAB.
/MATLAB/bin/matlab
In MATLAB, change the support package root to the
SupportPackages
folder.matlabshared.supportpkg.setSupportPackageRoot('/MATLAB/SupportPackages')
Restart MATLAB.
Install Support Packages
From within the restarted MATLAB, sign in to your MathWorks Account.
Install any required support packages using the instructions in Get and Manage Add-Ons on the MathWorks website.
Support packages that install third party applications on the machine are not supported.
To verify that the support packages are installed successfully, launch MATLAB and then execute the following command:
supportPackages = matlabshared.supportpkg.getInstalled
To verify that the support packages are available in MATLAB Online, launch MATLAB in the browser and then execute the following command:
addons = matlab.addons.installedAddons
Exit MATLAB.
From the Linux command line, delete the licenses folder under
/MATLAB
.sudo rm -rf /MATLAB/licenses
Build MATLAB Image
From the installation you just performed, build the MATLAB image using the following command:
sudo ./mosadm build-matlab-image /MATLAB
If you have a multi-node installation, you can retag the Docker® images and then push them to a remote Docker registry using the
mosadm push-docker-images
command. Replace<registry-name>
with the name of your Docker registry and<repository-name>
with the name of your repository.mosadm push-docker-images --deployment-image-registry <registry-name> --deployment-image-repository <repo-name>
Use
mosadm
to redeploy the MATLAB pool service using the following commands:./mosadm undeploy matlab-pool ./mosadm deploy matlab-pool