例子路径说明
/mnt/eeg/matlab_install 为我的安装包路径
/mnt/eeg/matlab 为我的安装路径
/mnt/eeg/crack 为我的破解安装包
- 解压安装包【或者本地解压后上传】
7z x /mnt/eeg/R2018b_glnxa64_dvd1.iso -o/mnt/eeg/matlab_install
7z x /mnt/eeg/R2018b_glnxa64_dvd1.iso -o/mnt/eeg/matlab_install
2.设置授权
cd /mnt/eeg/matlab_install
chmod a+x ./install ./bin/glnxa64/install_unix ./sys/java/jre/glnxa64/jre/bin/*
3.编辑文件installer_input.txt
vi /mnt/eeg/matlab_install/installer_input.txt
内容末尾插入
destinationFolder=/mnt/eeg/matlab #安装目录
fileInstallationKey= 09806-07443-53955-64350-21751-41297 #序列号在Crack文件夹的readme.txt中
agreeToLicense=yes #同意协议
outputFile=/tmp/mathwork_install.log #安装日志
mode=silent#开启无人值守安装
activationPropertiesFile=/mnt/eeg/matlab_install/activate.ini #激活文件
4.编辑activate.ini
vi /mnt/eeg/matlab_install/activate.ini
isSilent=true #开启silent模式
activateCommand=activateOffline #设置激活方式, 离线激活 无需联网
licenseFile=/mnt/eeg/crack/license_standalone.lic #license文件位置
5.安装
cd /mnt/eeg/matlab_install
./install -mode silent -fileInstallationKey 09806-07443-53955-64350-21751-41297 -agreeToLicense yes -licensePath /mnt/eeg/crack/license_standalone.lic -destinationFolder /mnt/eeg/matlab -activationPropertiesFile /mnt/eeg/matlab_install/activate.ini
6.破解
cp /mnt/eeg/crack/license_standalone.lic /mnt/eeg/matlab/license
cd /mnt/eeg/matlab/bin/
./activate_matlab.sh -propertiesFile /mnt/eeg/matlab_install/activate.ini
cp /mnt/eeg/crack/R2018b/bin/glnxa64/matlab_startup_plugins/lmgrimpl/libmwlmgrimpl.so /mnt/eeg/matlab/bin/glnxa64/matlab_startup_plugins/lmgrimpl/libmwlmgrimpl.so
7.全局
ln -s /mnt/eeg/matlab/bin/matlab /usr/local/bin/matlab
8.如果报错
Fatal Internal Error: Unexpected exception: 'N9MathWorks6System15SimpleExceptionE: Dynamic exception type: std::runtime_error
std::exception::what: Bundle#12 start failed: libXt.so.6: cannot open shared object file: No such file or directory
' in createMVMAndCallParser phase 'Creating local MVM'
###执行
apt install x11-xserver-utils