I don’t like repetitive work, and installing matlab counts doubly as so. Once I figured out the correct steps, I automated it with a puppet module. The downside is that the install takes a while because puppet needs to copy the iso locally. This is okay because I can be busy doing something else while this is happening.
Using the module is quite easy:
matlab::install { 'R2011a':
iso => 'puppet://files/matlab/MATHWORKS_R2011A.iso',
licensekey => '#####-#####-#####-#####', # provide your own here
licensefile => 'puppet:///files/matlab/license.lic', # get your own!
licenseagree => true, # setting this to true 'acknowledges' their (C)
prefix => '/usr/local',
}
You might notice that this supports installing multiple releases on the same machine. You will have to provide your own license key and license file.
This isn’t routinely tested, so if the latest matlab installer changes and this breaks, please let me know. Personally, I’d recommend you use octave instead, but if you really need matlab, hopefully this will make your sysadmin happier.
Enjoy a copy of the code:
https://github.com/purpleidea/puppet-matlab
Happy hacking,
James
PS: matlab also supports installs that use a licensing server. This module doesn’t support these at the moment, but you’re welcome to send me a patch. What a waste of hardware!
You can follow James on Mastodon for more frequent updates and other random thoughts.
You can follow James on Twitter for more frequent updates and other random thoughts.
You can support James on GitHub if you'd like to help sustain this kind of content.
You can support James on Patreon if you'd like to help sustain this kind of content.
Your comment has been submitted and will be published if it gets approved.
Click here to see the patch you generated.
Comments
Nothing yet.
Post a comment