Matlab ≥ R2015b on Linux has an issue writing
network.lic, even when running as sudo.
This results in an license authorization loop every time you start Matlab, which becomes unusable.
Fix Matlab network license authorization
In short, install Matlab to an
/opt subdirectory owned by your non-root, non-sudo user.
Yes, other users will be able to run Matlab too.
Make a directory that will be owned by any user other than
root. Assume your username is
mkdir /opt/matlab chown joe:joe /opt/matlab
Start the Matlab install NOT as root or sudo
- Choose to install to a directory under
- Activate via Internet and sign in, selecting the network license key
- select the
license.datfile from your institution
Now you can start Matlab as any user on that machine.