Fix Matlab network license authorization
Matlab should generally be installed NOT using sudo.
Upon upgrading operating system, or if you installed Matlab on a laptop using a docking station, and then run off the docking station, Matlab may complain about a changed host ID.
If Matlab is already installed, but won’t open the desktop due to a licensing error,reactivate Matlab:
$(dirname $(realpath $(which matlab)))/activate_matlab.shGet the host ID (MAC address) by:
ip alook for the WiFi link/ether hexadecimal value.
If connected to the internet via WiFi, you can confirm the correct device by comparing the value for inet or inet6 vs. https://ident.me
Install to the home directory and do NOT use sudo.
Make a directory for Matlab installs:
mkdir ~/.local/matlabStart the Matlab install NOT as root or sudo
./installInstall to directory like “~/matlab/” Activate via Internet and sign in to select the license key.