When installing or activating an Individual license, your user name is required. There are multiple ways to obtain your user name:
- Command Prompt/Terminal
- lmutil Utility
- Activation Client
Command Prompt/Terminal
The easiest way to get your user name is from a command prompt or terminal:
Windows
To get your user name 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
- At the command prompt, enter the following command:
>set username
USERNAME=myusername
MacOS
To get your user name, open a Terminal window:
- OpenFinder.
- Open theApplicationsfolder.
- Open theUtilitiesfolder.
- Start the Terminal application.
- In the Terminal window, enter the following command:
Linux
To get your user name, open terminal and run the following command:
lmutil Utility
You can also get your user name by using the lmutil.exe utility. The lmutil utility is included when you install the network license manager using the MathWorks installer orthe network license manager binaries.
You can run any of the following commands to determine your user name.
Windows
"C:\Program Files\MATLAB\R20XXx\etc\winXX\lmutil.exe" lmhostid -user
Your user name is displayed as “USER=”
MacOS
/Applications/MATLAB_R20XXx.app/etc/maci64/lmutil lmhostid -user
Your user name is displayed as “USER=”
Linux
/usr/local/MATLAB/R2018b/etc/glnxa64/lmutil lmhostid -user
Your user name is displayed as “USER=”
Activation Client
If access to any of the other methods is not available, you can use the MATLAB activation client to determine what your user name is.
1. 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.
Mac OS
- Use Finder to go to /Applications.
- Control-click (right click) on the icon for your MATLAB version, such as MATLAB_R2020a.app .
- In the menu, chooseShow package contents.
- In that directory, start the Activate.app.
Linux
- /usr/local/MATLAB/R2018a/bin/activate_matlab.sh
2. When the activation client is open:
- ClickActivate Manually without the Internetand then clickNext.
- ClickI do not have a license file. Help me with the next steps.
- 您将会看到您的用户名是“计算机罗技n Name: