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 UNIX system. These boot script files are in the matlabroot/etc folder. Each file has the name flexnet.boot.system, where system identifies the system type.

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

Editing the Boot Script on Solaris 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. Copy the boot script code from matlabroot/etc/flexnet.boot.sol2 and paste it at the beginning of the file /etc/init.d/lmgrd.

    If /etc/init.d/lmgrd does not exist, create it, using these commands.

    cd matlabroot/etc
    cp flexnet.boot.sol2 /etc/init.d/lmgrd
    chmod 555 /etc/init.d/lmgrd
    
  4. Edit the copy you made of the boot script file, /etc/init.d/lmgrd, replacing the username argument to the lmboot_TMW script in the code with a valid user name, other than root.

  5. Create the file (link) /etc/rc3.d/S17lmgrd, if it does not exist, using this code.

    cd /etc/rc3.d 
    ln -s ../init.d/lmgrd S17lmgrd
    

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 Documentation Viewing Options

You can specify the Web browser to use with MATLAB software by editing the docopt.m M-file, located in the matlabroot/toolbox/local folder. The MATLAB web function uses the docopt.m file when you specify the -Browser option. It also specifies the browser to use for links to external Web sites from the MATLAB Help browser and from Web menu items.

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

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-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS