Skip over navigation

R2013b

Network Installation for Unix Computers

Software installation cannot be completed over a wireless connection. Please use an Ethernet connection to run these processes.

INSTALLATION AND ACTIVATION INSTRUCTIONS FOR MATLAB SOFTWARE

  1. su to root.
    % su
  2. Make a directory for mounting the distribution
    # mkdir -p /mnt/licensed.dist
  3.  Mount the distribution with SMB:
    # mount -t cifs -o username=PRINCETON\\<netID> //files.princeton.edu/Licensed /mnt/licensed.dist
    • All one line, no line breaks
    • Replace <netID> with your Princeton netID
    • You will be prompted for a password.  Please enter your Princeton Windows password.
    • If the command does not work, you might not have SMB mount support installed.
  4. cd to /mnt/licensed.dist/Products/Matlab/R2013b/Unix_MacOSX, and open the file Princeton_README using cat or a text editor.  The information in this text file should be available throughout the installation and activation of MATLAB.
  5. In the Unix_MacOSX directory, type ./install to start installing MATLAB. NOTE: Do NOT copy folders from Unix_MacOSX to your computer. The installation will fail, and copying the folders violates our license agreement with MathWorks.
  6. In the MathWorks Installer window, choose Install without using the Internet and click Next.
  7. Select Yes and press Next to accept the license.
  8. In the Provide Installation Information window, select the I have the File Installation Key for my license option. Click anywhere in the text field of the File Installation Key window to select it, and then paste the correct File Installation Key (for either faculty/staff or student) from Princeton_README into the text field.  Click Next.
  9. In the Installation Type window, accept the default option Typical and press Next.
  10. In the Folder Selection window, accept the default location and press Next.  If you choose a different location, make a note of it.  If asked, agree to create the folder. 
  11. The Confirmation window will list the installation folder and the products to be installed.  Press Install to continue.
  12. A Product Configuration Notes window may display requesting that a supported compiler be installed for some products.  Click Next to continue.
  13. In the Installation Complete window, click Next to activate MATLAB.
  14. In the MathWorks Software Activation window, select Activate manually without the Internet.  Click Next.
  15. In the License File window, you are asked to Enter the full path to your license file, including the file name. Browse to the Unix_MacOSX directory and select license.lic. Press Open to add it as the file name (rather than browsing, you can also type in the path /mnt/licensed.dist/Licensed/Products/Matlab/R2013b/Unix_MacOSX/license.lic). Click Next.
  16. An Activation Complete window will display. Press Finish.
  17. PLEASE NOTE: At this point, you have installed Princeton's licensed MATLAB software and a network license. As long as you are connected to the Princeton network, you will be able to run all toolboxes for which we are licensed. You will NOT be able to run MATLAB away from the campus network or on a stand-alone basis. To install a local license which will permit you to work offline, please continue. Note that you will need the appropriate File Activation Key from the Princeton_README file.
  18. Start MATLAB as root user. If the default installation location is used, the MATLAB executable is found at /usr/local/MATLAB/R2013b/bin.
  19. In the Help pull-down menu, select Licensing, and then Activate Software.
  20. Select the default option Activate automatically using the Internet. Click Next.
  21. Log in to your MathWorks account by entering your Princeton University email address and your MathWorks password, and clicking on Next
    NOTE: If you do not have one, you will be given the opportunity to create a MathWorks account at this point.  A MathWorks account is REQUIRED to use MATLAB.  You must use your netid@Princeton.EDU email address as your MathWorks email address. Please do NOT use your LDAP or Windows University password as your MathWorks password.
    NOTE: If you are a student and previously created an account with MathWorks for the student version of MATLAB, you will need to login to  MathWorks' website and change your profile from "student" to "academic".
  22. In the License Selection window, select Enter an Activation Key for a license not listed.  Type or paste in the appropriate Activation Key from Princeton_README, and click on Next.
  23. A Confirmation window will display.  Press Confirm to continue.
  24. Click Finish to complete activation, and close MATLAB.
  25. When the installation is complete, unmount the distribution with:
    # umount /mnt/licensed.dist
  26. Exit su and rebuild your executable hash
    # exit
    % rehash (if you use csh)
  27. Start MATLAB by running the 'matlab' executable from the MATLAB installation location/R2013b/bin.

Troubleshooting

  •  Make sure you have an SMB client on your system.  Some linux distributions do not automatically install the SMB client, so you may need to install it before being able to mount SMB volumes.  Check to make sure you have mount.smbfs or smbmount programs if you have problems installing MATLAB on linux.
     

VERIFY INSTALLATION

These are optional steps to ensure the software, the network license and the local licenses are all properly installed.

Start MATLAB if it is not already running.

  1. At the '>>' prompt, type in ver and press Enter. This will list the MATLAB software installed on your machine (31 applications/toolboxes for Unix and MacOS machines).
  2. Test network license functionality by typing 'license('test','MATLAB_Coder')' at the '>>' prompt.
  3. If the network license is working properly and you are on the Princeton network, the response should be 'ans = 1'.
  4. Check the locations of the licenses by navigating to /usr/local/Matlab/R2013b/licenses (or the equivalent directory if you installed MATLAB to a different location).
  5. There should be two files in this folder: network.lic (the network license), and license_<<your_computer_name>>_296492_R2013b.lic (the local license).


LICENSE UPDATE INSTRUCTIONS

Updating the license file for R2008b through R2013a

  • Start Matlab as described above.
  • Click on Help->Licensing->Update Current License
  • Press the "Update Now" button.

The license will be automatically updated by MATLAB communicating with MathWorks' site. Make sure you restart MATLAB after this process is done.

If the above instructions do not work and for all R2013b installations:

  1. Start MATLAB as root user. If the default installation location is used, the MATLAB executable is found at /usr/local/MATLAB/R2013b/bin.
  2. In the Help pull-down menu, select Licensing, and then Activate Software.
  3. Select the default option Activate automatically using the Internet. Click Next.
  4. Log in to your MathWorks account by entering your Princeton University email address and your MathWorks password, and clicking on Next
    NOTE: If you do not have one, you will be given the opportunity to create a MathWorks account at this point.  A MathWorks account is REQUIRED to use MATLAB.  You must use your netid@Princeton.EDU email address as your MathWorks email address. Please do NOT use your LDAP or Windows University password as your MathWorks password.
    NOTE: If you are a student and previously created an account with MathWorks for the student version of MATLAB, you will need to login to MathWorks' website and change your profile from "student" to "academic".
  5. In the License Selection window, select Enter an Activation Key for a license not listed.  Type or paste in the appropriate Activation Key (56103-81364-73417-25343-49558 for faculty/staff and 99444-59124-46132-87596-94866 for students), and click on Next.
  6. A Confirmation window will display.  Press Confirm to continue.
  7. Click Finish to complete activation, and close MATLAB.
     


To Switch Between Running MATLAB Offline & Online

MATLAB R2013b will automatically fall back to the offline license when it it is unable to contact the license server.