The article explaining how to find my computer login name is disabled. Apparently because it's been 14 days or something. Can someone tell me how to either access the article or find the name?
MATLAB: Computer Login Name for license center
installationlicenselogin name
Related Solutions
When installing or activating an Individual license, the username of the end user is required. There are multiple ways to obtain the username:
- Command Prompt/Terminal
- lmutil Utility
- Activation Client
Command Prompt/Terminal
The fastest way to get the User Name is from a Command Prompt/Terminal:
Windows
To obtain the username via the command prompt:
- Locate the search field. On Windows 7 this is in the Start Menu, and on Windows 10, this is in the Taskbar
- Enter "cmd" into the search field and type enter
- In the Command Prompt, enter the following command:
set username
MacOS
To obtain the username, open a Terminal window:
- Open Finder
- Open the "Applications" folder
- Open the "Utilities" folder
- Start the "Terminal" application
- In the Terminal window, enter the following command:
whoami
Linux
To obtain your username, open Terminal and run the following command:
whoami
lmutil Utility
The username can also be obtained by using the lmutil.exe utility. The lmutil utility is included with the installation of the License Manager via the MathWorks Installer or the License Manager binaries.
You can run the following commands to determine the username needed for activation:
Windows
"C:\Program Files\MATLAB\R20XXx\etc\winXX\lmutil.exe" lmhostid -user
The User Name will be displayed as “USER=<your_login_name>”
MacOS
/Applications/MATLAB_R20XXx.app/etc/maci64/lmutil lmhostid -user
The User Name will be displayed as “USER=<your_login_name>”
Linux
/usr/local/MATLAB/R2018b/etc/glnxa64/lmutil lmhostid -user
The User Name will be displayed as “USER=<your_login_name>”
Activation Client
If access to the above is not available, you may use the MATLAB activation client to determine what your username is. To do this, you will need to first open the MATLAB activation client. The activation client can be found in the following locations:
Windows
C:\Program Files\MATLAB\R20XXX\bin\win64\activate_matlab.exe.
MacOS
- Use Finder to go to /Applications .
- From there, control-click (right click) on the icon for your MATLAB version, such as MATLAB_R2015b.app .
- In the menu, choose "Show package contents".
In that directory, you will find an Activate.app.
Linux
/usr/local/MATLAB/R2018a/bin/activate_matlab.sh
Once the activation client is open:
- Click on “Activate Manually without the Internet” and click next.
- Click on “I do not have a license file. Help me with the next steps”
On this screen you will see your Login Name: “Computer Login Name:<your_login_name>”
By default, Login Named User is enabled for use on Academic licenses. However, in order to set up an installation of MATLAB to prompt users for a login, an XML file (attached to this article) must be placed within the licenses directory of the installation.
Windows:
C:\Program Files\MATLAB\R20XXx\licenses
Linux:
/usr/local/MATLAB/R20XXx/licenses
macOS:
/Applications/MATLAB_R20XXx.app/licenses
Right click on the MATLAB application and click show package contents to open the MATLAB_R20XXx.app folder.)
Alternatively, the "-licmode online" startup flag can be used to start MATLAB in LNU mode without the need for an xml file.
To launch MATLAB with a startup flag:
- Open a command prompt/terminal window
- Enter the path to the MATLAB executable and the “-licmode online” flag.
- *Windows: *"$MATLAB\bin\win64\MATLAB.exe" -licmode online
- *Mac and Linux: *./matlab -licmode online
After one of these has been done, launching MATLAB should prompt the user to log in.
Best Answer