I just installed Matlab 2020a on Ubuntu 18.04 with my student license. I activated it with my username which is the result of command whoami. But I still encountered a license error when running sudo matlab like:
MATLAB is selecting SOFTWARE OPENGL rendering.
License checkout failed.
License Manager Error -9
This error may occur when:
-The hostid of this computer does not match the hostid in the license file.
-A Designated Computer installation is in use by another user.
If no other user is currently running this program, you may need to activate.
And if I run matlab without sudo, the splash screen will show but soon get stuck. Then I try running matlab as root and it can run normally. Why this happens? And how can I run it as a normal user?