远程Linux服务器安装 Matlab-2014a
基于 服务器远程安装Matlab2015, 推荐.
1. 准备
- Matlab_R2014A.iso 镜像
- Matlab_R2014A Crack破解文件
2. 安装
Step1 - 拷贝Matlab_R2014A.iso镜像和破解文件到服务器;
Step2 - 镜像挂载:
sudo mkdir /home/xxx/matlab
sudo mount -o loop Matlab_R2014A.iso /home/xxx/matlab
Step3 - 安装目录及激活文件创建
sudo mkdir -p /usr/local/MATLAB/R2014a
sudo mkdir -p /usr/local/MATLAB/R2014a/etc
在 /usr/local/MATLAB/R2014a/etc 创建激活文件 activate.ini,内容如下:
isSilent=true
activateCommand=activateOffline
licenseFile=/path/to/Crack/license_xxx_R2014a.lic
Step4 - 创建安装参数文件
创建 install_input.txt,保存安装的相关选项参数,内容如下:
destinationFolder= /usr/local/MATLAB/R2015a
fileInstallationKey= 12313-94680-65562-90832 //序列号
agreeToLicense=yes
outputFile=/tmp/mathwork_install.log
mode=silent
activationPropertiesFile=/usr/local/MATLAB/R2014a/etc/activate.ini
Step5 - 开始安装
sudo /home/xxx/matlab/install -inputFile /path/to/install_input.txt
安装完成后会显示激活Error.
3. 激活
Step1- 替换libmwervices.so
sudo mv /usr/local/MATLAB/R2014a/bin/glnxa64/libmwservices.so /usr/local/MATLAB/R2014a/bin/glnxa64/libmwservices.so.bk
sudo cp /path/to/Crack/Linux/libmwservices.so /usr/local/MATLAB/R2014a/bin/glnxa64/
Step2 - 激活
sudo /usr/local/MATLAB/R2014a/bin/activate_matlab.sh -propertiesFile /usr/local/MATLAB/R2014a/etc/activate.ini
激活成功.
Step3 - 卸载镜像
sudo umount /home/xxx/matlab
4. 设置环境变量
sudo vim /etc/profile
在末尾添加:
export PATH=/usr/local/MATLAB/R2014a/bin:$PATH
使环境变量设置生效
source /etc/profile