Silent install MATLAB on AWS

16 views (last 30 days)
Tuochaolong Zhang
Tuochaolong Zhang on 11 Oct 2016
Answered: María Vizán on 17 Sep 2018
ubuntu@ip-172-31-62-231:~/matlab/matlab-installer$ cat installer_input.txt ################################################################## ## ## Use this file to specify parameters required by the installer at runtime. ## ## Instructions for using this file. ## ## 1. Create a copy of this template file and fill in the required ## information. ## ## 2. Uncomment only those lines that start with a single '#' ## and set the desired values. All allowed values for the ## parameters are defined in the comments section for each ## parameter. ## ## 3. Launch the installer from the command line, using the -inputFile option ## to specify the name of your installer initialization file. ## ## (Windows) setup.exe -inputFile file_name ## (Mac/Unix) install -inputFile file_name ## ## NOTE: ## If you want to run the activation application in silent ## mode immediately after the installer completes, you must create ## an activation initialization file and specify its name as the ## value of the activationPropertiesFile= option. You can also ## pass the name of the activation initialization file to the ## installer using the -activationPropertiesFile command line ## option. ## ################################################################## ## ## ## SPECIFY INSTALLATION FOLDER ## ## Example: ## (Windows) destinationFolder=C:\Program Files\MATLAB\RXXXX ## (Unix) destinationFolder=/usr/local/RXXXX ## (Mac) destinationFolder=/Applications ## ## Set the desired value for destinationFolder and ## uncomment the line.
destinationFolder=/usr/local/RXXXX
## ## SPECIFY FILE INSTALLATION KEY ## ## Example: fileInstallationKey=xxxxx-xxxxx-xxxxx-xxxxx..... ## ## Set the desired value for fileInstallationKey and ## uncomment the line. ## fileInstallationKey=75326-49488-26573-18439-47936
## ## ACCEPT LICENSE AGREEMENT ## ## You must agree to the license agreement to install MathWorks products. ## The license agreement can be found in the license_agreement.txt file at the ## root level of the installation DVD. ## ## Example: agreeToLicense=yes ## ## Set agreeToLicense value to yes or no and ## uncomment the line.
agreeToLicense=yes
## ## SPECIFY OUTPUT LOG ## ## Specify full path of file into which you want the results of the ## installation to be recorded. ## ## Example: ## (Windows) outputFile=C:\TEMP\mathworks_<user_name>.log ## (Unix/Mac) outputFile=/tmp/mathworks_<user_name>.log ## ## Set the desired value for outputFile and ## uncomment the line.
outputFile=/tmp/mathworks_ztuochao.log
## SPECIFY INSTALLER MODE ## ## interactive: Run the installer GUI, waiting for user input on all ## dialog boxes. ## ## silent: Run the installer without displaying the GUI. ## ## automated: Run the installer GUI, displaying all dialog boxes, but only ## waiting for user input on dialogs that are missing required ## input. ## ## Set mode value to either interactive, silent, or automated and ## uncomment the line.
mode=slicent
## SPECIFY LENGTH OF TIME DIALOG BOXES ARE DISPLAYED ## ## Specify how long the installer dialog boxes are displayed, in milliseconds. ## ## NOTE: Use this value only if you set the installer mode to automated. ## ## By default, the dialog boxes display on the screen for one second. ## ## Example: (To specify a value of 1 second.) automatedModeTimeout=1000 ## ## Set the desired value for automatedModeTimeout and ## uncomment the line.
  1. automatedModeTimeout=
## SPECIFY ACTIVATION PROPERTIES FILE (For non-network license types only) ## ## Enter the path to an existing file that contains properties to configure ## the activation process.
  1. activationPropertiesFile=
I use scp to tranfer the .zip file to AWS, and unzip there.
============================Code Here=========================================== ########## Begin: Options for Network License Types ######### ## ## SPECIFY PATH TO LICENSE FILE (Required for network license types only) ## ## This value is required when installing either the License Manager or when ## installing as a Network End-User ## Example: ## (Windows) licensePath=C:\TEMP\license.dat ## (Unix) licensePath=/tmp/license.dat ## Set the desired value for licensePath and ## uncomment the line.
licensePath=/tmp/license.dat
## CHOOSE TO INSTALL LICENSE MANAGER (For network license types only) ## ## Installs license manager files to disk. ## ## NOTE: You only need to install the license manager files ## on your license server. ## ## Set lmgrFiles value to true or false and ## uncomment the line.
lmgrFiles=yes
## INSTALL LICENSE MANAGER AS A SERVICE (For network license types only) ## ## Configure the license manager as a service on Windows. ## ## NOTE: Not applicable for Unix or Mac. ## ## NOTE: The lmgr_files option (set in previous step) must also be set to true. ## ## Set lmgrService value to true or false and ## uncomment the line.
  1. lmgrService=
########## End: Options for Network License Types #########
################# Begin - Windows Only Options ################ ## ## CHOOSE TO SET FILE ASSOCIATIONS ## ## Set to true if you want the installer to associate file types used by MathWorks ## products to this version of MATLAB, or false if you do not want the installer to ## associate MathWorks file types with this version of MATLAB. ## ## Default value is true. ## ## Set setFileAssoc value to true or false and ## uncomment the line.
  1. setFileAssoc=
## ## CHOOSE TO CREATE WINDOWS DESKTOP SHORTCUT ## ## Set to true if you would like the installer to create a desktop shortcut icon ## when MATLAB is installed or false if you don't want the shortcut created. ## ## Set desktopShortcut value to true or false and ## uncomment the line.
  1. desktopShortcut=
## CHOOSE TO ADD SHORTCUT TO WINDOWS START MENU ## ## Set to true if you would like the installer to create a Start Menu shortcut ## icon when MATLAB is installed or false if you don't want the shortcut created. ## ## Set startMenuShortcut value to true or false and ## uncomment the line.
  1. startMenuShortcut=
## CREATE a MATLAB Startup Accelerator task ## ## The MATLAB Startup Accelerator installer creates a ## system task to preload MATLAB into the systems cache ## for faster startup. ## ## NOTE: By default, a MATLAB Startup Accelerator task will ## automatically be created. ## ## If you want a MATLAB Startup Accelerator task to be created, ## do not edit this section. ## ## Set createAccelTask value to false if you do not want to ## create an Accelerator task and uncomment the line.
  1. createAccelTask=
## Enable Login Named User licensing ## ## Set to Yes to enable use of a Login Named User license for all users of this MATLAB installation ## Users must log in to their MathWorks Account when MATLAB starts. ## ## Example: enableLNU=yes ## ## NOTE: This flag is valid in silent installations only.
  1. enableLNU=yes
################ End - Windows Only Options ################
## SPECIFY PRODUCTS YOU WANT TO INSTALL ## ## By default, the installer installs all the products and ## documentation for which you are licensed. Products you are not licensed for ## are not installed, even if they are listed here. ## ## Note: ## 1. To automatically install all your licensed products, do not edit ## any lines in this section. ## ## 2. To install a specific product or a subset of products for ## which you are licensed, uncomment the line for the product(s) you want ## to install.
#product.Aerospace_Blockset #product.Aerospace_Toolbox #product.Antenna_Toolbox #product.Audio_System_Toolbox #product.Bioinformatics_Toolbox #product.Communications_System_Toolbox #product.Computer_Vision_System_Toolbox #product.Control_System_Toolbox #product.Curve_Fitting_Toolbox #product.DO_Qualification_Kit #product.DSP_System_Toolbox #product.Data_Acquisition_Toolbox #product.Database_Toolbox #product.Datafeed_Toolbox #product.Econometrics_Toolbox #product.Embedded_Coder #product.Filter_Design_HDL_Coder #product.Financial_Instruments_Toolbox #product.Financial_Toolbox #product.Fixed_Point_Designer #product.Fuzzy_Logic_Toolbox #product.Global_Optimization_Toolbox #product.HDL_Coder #product.HDL_Verifier #product.IEC_Certification_Kit #product.Image_Acquisition_Toolbox #product.Image_Processing_Toolbox #product.Instrument_Control_Toolbox #product.LTE_System_Toolbox #product.MATLAB #product.MATLAB_Coder #product.MATLAB_Compiler #product.MATLAB_Compiler_SDK #product.MATLAB_Distributed_Computing_Server #product.MATLAB_Production_Server #product.MATLAB_Report_Generator #product.Mapping_Toolbox #product.Model_Predictive_Control_Toolbox #product.Model_Based_Calibration_Toolbox #product.Neural_Network_Toolbox #product.OPC_Toolbox #product.Optimization_Toolbox #product.Parallel_Computing_Toolbox #product.Partial_Differential_Equation_Toolbox #product.Phased_Array_System_Toolbox #product.Polyspace_Bug_Finder #product.Polyspace_Code_Prover #product.RF_Toolbox #product.Risk_Management_Toolbox #product.Robotics_System_Toolbox #product.Robust_Control_Toolbox #product.Signal_Processing_Toolbox #product.SimBiology #product.SimEvents #product.SimRF #product.Simscape #product.Simscape_Driveline #product.Simscape_Electronics #product.Simscape_Fluids #product.Simscape_Multibody #product.Simscape_Power_Systems #product.Simulink #product.Simulink_3D_Animation #product.Simulink_Code_Inspector #product.Simulink_Coder #product.Simulink_Control_Design #product.Simulink_Design_Optimization #product.Simulink_Design_Verifier #product.Simulink_Desktop_Real_Time #product.Simulink_PLC_Coder #product.Simulink_Real_Time #product.Simulink_Report_Generator #product.Simulink_Test #product.Simulink_Verification_and_Validation #product.Spreadsheet_Link #product.Stateflow #product.Statistics_and_Machine_Learning_Toolbox #product.Symbolic_Math_Toolbox #product.System_Identification_Toolbox #product.Trading_Toolbox #product.Vehicle_Network_Toolbox #product.Vision_HDL_Toolbox #product.WLAN_System_Toolbox #product.Wavelet_Toolbox ubuntu@ip-172-31-62-231:~/matlab/matlab-installer$ sudo ./install -mode silent -inputFile installer_input.txt Preparing installation files ... Installing ... (Oct 11, 2016 18:25:55) ################################################################## (Oct 11, 2016 18:25:55) # (Oct 11, 2016 18:25:55) # Today's Date: (Oct 11, 2016 18:25:55) Tue Oct 11 18:25:55 UTC 2016 (Oct 11, 2016 18:25:55) (Oct 11, 2016 18:25:55) System Info (Oct 11, 2016 18:25:55) OS: Linux 3.13.0-91-generic (Oct 11, 2016 18:25:55) Arch: amd64 (Oct 11, 2016 18:25:55) Data Model: 64 (Oct 11, 2016 18:25:55) Language: en (Oct 11, 2016 18:25:55) Java Vendor: Oracle Corporation (Oct 11, 2016 18:25:55) Java Home: /tmp/mathworks_8605/sys/java/jre/glnxa64/jre (Oct 11, 2016 18:25:55) Java Version: 1.7.0_60 (Oct 11, 2016 18:25:55) Java VM Name: Java HotSpot™ 64-Bit Server VM (Oct 11, 2016 18:25:55) Java Class Path: /tmp/mathworks_8605/java/config/professionalinstaller/pathlist.jar (Oct 11, 2016 18:25:55) User Name: root (Oct 11, 2016 18:25:55) Current Directory: /tmp/mathworks_8605 (Oct 11, 2016 18:25:55) Input arguments: (Oct 11, 2016 18:25:55) root /home/ubuntu/matlab/matlab-installer (Oct 11, 2016 18:25:55) libdir /tmp/mathworks_8605 (Oct 11, 2016 18:25:55) mode silent (Oct 11, 2016 18:25:55) inputFile installer_input.txt (Oct 11, 2016 18:25:55) Error loading input file installer_input.txt (Oct 11, 2016 18:25:55) installer_input.txt (No such file or directory) (Oct 11, 2016 18:25:55) standalone true (Oct 11, 2016 18:25:55) Error reading file installer_input.txt (Oct 11, 2016 18:25:55) File '/tmp/mathworks_8605/installer_input.txt' does not exist (Oct 11, 2016 18:25:56) Starting local product/component search in download directory (Oct 11, 2016 18:25:56) Searching for archives... (Oct 11, 2016 18:25:56) Reading /home/ubuntu/matlab/matlab-installer/archives (Oct 11, 2016 18:25:56) When running the installer with an input file, you must accept the license agreement by setting the agreeToLicense option to yes. (Oct 11, 2016 18:25:56) 2 files found in /home/ubuntu/matlab/matlab-installer/archives (Oct 11, 2016 18:25:56) Reading /home/ubuntu/matlab/matlab-installer (Oct 11, 2016 18:25:56) 14 files found in /home/ubuntu/matlab/matlab-installer (Oct 11, 2016 18:25:56) /root/Downloads/MathWorks/R2016b/archives doesn't exist ... skipping. (Oct 11, 2016 18:25:56) Archive search complete. 16 total files found. (Oct 11, 2016 18:25:57) Exiting with status -2 (Oct 11, 2016 18:25:57) End - Unsuccessful. Finished

Answers (2)

María Vizán
María Vizán on 17 Sep 2018
Maybe your problem is that you didn't put the complete PATH on the call of the installer_input file. Even if the file installer_input.txt is in the same directory as the installer, you have to put the full path.

Raymond Norris
Raymond Norris on 22 Jun 2018
Hi,
We've recently posted a reference architecture on GitHub for MATLAB on AWS.
https://github.com/mathworks-ref-arch/matlab-on-aws
It's built for a US-East region, but you could modify the template to be used elsewhere. Would this help?
Raymond

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!