Products & Services Solutions Academia Support User Community Company

After You Install

Starting the License Manager

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.

At the Command Line

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.

At Boot Time

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.

  1. Log in as root.

  2. 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
    
  3. 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.

    DistributionCommand

    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

  4. 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.

  5. Look in /etc/inittab for the default run level.

  6. 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.

    DistributionCommand

    Debian

    cd /etc/rc5.d;
    ln -s ../init.d/flexnet S90flexnet

    Red Hat or Fedora Core

    cd /etc/rc.d/rc5.d;
    ln -s ../init.d/flexnet S90flexnet

    SUSE

    cd /etc/init.d/rc5.d;
    ln -s ../flexnet S90flexnet

  7. 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.

Starting the MATLAB Program

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.

Specifying Print Options

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.

Specifying MATLAB Startup Options

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.

Updating Your Licenses

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.

  


Recommended Products

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