| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Installation |
| Contents | Index |
| On this page… |
|---|
Note For more information about setting up network configurations, see the License Administration Guide. |
The license manager must be running to start MATLAB software. This section describes how to start the license manager at the command line and automatically at boot time.
If the license manager daemons are not running, you can start them by executing the lmstart script (located in the matlabroot/etc folder). The lmstart script stops any currently running daemons and starts new ones.
Note A user other than root should run the lmstart script because it is a security risk to run any program as root that does not require root permissions. The license manager (lmgrd) does not require root permissions. If you must start the license manager as root, use the su command to start lmgrd as a nonprivileged user: su username -c "lmgrd -c license_file -l /var/tmp/LM_TMW.log" where username is a nonprivileged user. |
You can start the license manager automatically at boot time by editing the system boot script. The MathWorks provides the set of Bourne shell commands required to start the license manager on each supported Linux system. These boot script files are in the matlabroot/etc folder. Each file has the name flexnet.boot.$ARCH, where $ARCH identifies the system architecture.
For example, the following is the contents of the file flexnet.boot.linux, which contains the boot script commands required to start the license manager on Linux systems. When you add these commands to a boot script, you must replace the word username that is used as an argument to the /etc/lmboot_TMW command in the script (highlighted below) with an actual user name (login name). Do not specify the name associated with superuser. For security reasons the license manager daemons cannot be owned by superuser.

The following sections describe how to insert these Bourne shell code fragments for all supported platforms:
Editing the Boot Script on Linux Systems. To create the boot script on Linux systems, make a copy of the flexnet.boot.linux file and edit the copy as described in the following procedure. You can use the same procedure to create the boot script on both 32-bit and 64-bit Linux systems.
Create the following links, if they do not already exist.
ln -s matlabroot/etc/lmboot /etc/lmboot_TMW ln -s matlabroot/etc/lmdown /etc/lmdown_TMW
Make a copy of the appropriate boot script file.
The following table lists the appropriate commands for supported Linux distributions for both 32-bit and 64-bit systems.
| Distribution | Command |
|---|---|
Debian or SUSE | cp matlabroot/etc/flexnet.boot.linux /etc/init.d/flexnet |
Red Hat or Fedora Core | cp matlabroot/etc/flexnet.boot.linux /etc/rc.d/init.d/flexnet |
Edit the copy you made of the boot script file, flexnet, replacing the username argument to the lmboot_TMW script in the code with a valid user name, other than root. For security reasons the license manager daemons cannot be owned by superuser.
Create a link in the rc folder associated with the default run level. The following table lists the appropriate commands for supported Linux distributions for both 32-bit and 64-bit systems, using run level 5 to illustrate.
| Distribution | Command |
|---|---|
Debian | cd /etc/rc5.d; |
Red Hat or Fedora Core | cd /etc/rc.d/rc5.d; |
SUSE | cd /etc/init.d/rc5.d; |
Make sure that the license manager boot scripts start at the very end of the boot sequence. For the license manager to start correctly, the network must already be running. Use whatever mechanism your version of Linux provides to ensure the boot sequence.
For example, on systems running SUSE version 10, you can specify the boot sequence in the .depend.start file in the /etc/init.d folder. To ensure that the license manager is started after networking, append the following to the end of /etc/init.d/.depend.start file:
flexnet: network
On some systems, simply renaming the S90flexnet symlink, created in step 6, to a higher number, such as S99flexnet, will ensure that the license manager starts after networking is running.
Start the MATLAB program by entering the matlab command at the system prompt.
If you did not set up symbolic links during the installation procedure (Step 9: Specify the Location of Symbolic Links), you must enter the full pathname, matlabroot/bin/matlab, where matlabroot is the name of your MATLAB installation folder.
If you have trouble starting the software, see Problems Starting the MATLAB Program After an Installation for some troubleshooting tips.
MATLAB software includes default settings for the various options to the print command. If you want to change the site-wide default settings for printing device type and location, you can edit the M-file printopt.m, located in the folder matlabroot/toolbox/local. This file contains options used by the MATLAB print command.
To specify startup welcome messages, default definitions, or any MATLAB expressions that you want executed each time a user starts MATLAB software, edit the matlabrc.m M-file in matlabroot/toolbox/local. The MATLAB software executes this file automatically each time it starts.
If you do not have write access to matlabrc.m, you can include startup messages, definitions, and MATLAB expressions in a file called startup.m and store this file in the top-level MATLAB installation folder. Use this file to specify the startup behavior of your own MATLAB installation.
If you purchased one of the individual license options, throughout the term of your license, your MATLAB installation periodically contacts The MathWorks to verify that your license is up-to-date.
If your license is up-to-date, the validation process is transparent. If it determines that you need to update your license, the validation process displays a dialog box giving you the option to update your license. Validation updates expiring licenses and License Files with product configuration changes. (You can also check for License File updates at any time by selecting Help > Update Current Licenses from the MATLAB desktop.)
The administrator contact on a license can modify validation settings for the license at the License Center at the MathWorks Web site. See the License Center Help for more information.
![]() | Installing MathWorks Network License Options | Deactivating and Removing a MATLAB Installation | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2010- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |