参考
ububtu matlab Error: Activation cannot proceed. You may either:_TinaO-O的博客-CSDN博客
无图形界面Linux安装Matlab2020 - 知乎
0.准备
0.1下载安装包Matlab99R2020b_Lin64
0.2解压
7z x Matlab99R2020b_Lin64.iso
并不能用,没有安装7z
自己电脑上解压
移到服务器:/home/wangsuwei/file/Matlab99R2020b_Lin64
0.3 找到序列号
~/Matlab909Lin/ReadmeLin.txt中有序列号
keys: For workstation use case (typical configuration) : 09806-07443-53955-64350-21751-41297
0.4找到license文件
license_server.lic
1.安装
1.0 新建安装目录
1.0.1创建安装目录 /home/wangsuwei/program/matlab/R2020b
mkdir -p /home/wangsuwei/program/matlab/R2020b/licenses
1.0.2把license文件挪到
/home/wangsuwei/program/matlab/R2020b/licenses/license_server.lic
1.1
1.1.1转到 Matlab99R2020b_Lin64
cd /home/wangsuwei/file/Matlab99R2020b_Lin64
1.1.2给文件加可执行属性
chmod a+x ./install ./bin/glnxa64/install_unix ./sys/java/jre/glnxa64/jre/bin/*
并没有第二个文件
1.1.3修改install_input.txt
destinationFolder=/home/wangsuwei/program/matlab/R2020b
fileInstallationKey= 09806-07443-53955-64350-21751-41297
agreeToLicense=yes
licensePath=/home/wangsuwei/program/matlab/R2020b/licenses/license_standalone.lic
1.2安装
./install -mode silent -fileInstallationKey 09806-07443-53955-64350-21751-41297 -agreeToLicense yes -licensePath /home/wangsuwei/program/matlab/R2020b/licenses/license_standalone.lic -destinationFolder /home/wangsuwei/program/matlab/R2020b
漫长的等待
2.激活
2.1切换到装目录
cd /home/wangsuwei/program/matlab
2.2用破解包里的libmwlmgrimpl.so代替安装目录里的libmwlmgrimpl.so
/home/wangsuwei/program/matlab/R2020b/bin/glnxa64/matlab_startup_plugins/lmgrimpl/libmwlmgrimpl.so
2.3新建activate.ini
写入
isSilent=true
activateCommand=activateOffline
licenseFile=/home/wangsuwei/program/matlab/R2020b/licenses/license_standalone.lic
2.4激活
./R2020b/bin/activate_matlab.sh -propertiesfile ./activate.ini
显示
silent activation succeeded
3.测试运行
尝试1
运行matlab -nodesktop -nosplash -r matlab_test
报错
ububtu matlab Error: Activation cannot proceed. You may either:_TinaO-O的博客-CSDN博客
根据这个,没装opengl
尝试2
matlab -nosoftwareopengl -nodesktop -nosplash -r matlab_test
尝试3
感谢 毕设碎碎念3——非root无图形界面安装Matlab - 哔哩哔哩
转到安装目录下的bin文件夹中
cd ./R2020b/bin
./matlab -nosoftwareopengl -nodesktop -nosplash -sd /home/wangsuwei/program/matlab -r matlab_test
-sd 指定工作路径
-r 指定文件名
成功
卸载matlab
rm -rf /home/wangsuwei.matlab/
rm -rf /home/wangsuwei/program/matlab/R2020b(安装目录)