CentOS通过ssh安装Matlab R2015b

2017-3-18 Frank 后端

挂载iso文件

mkdir /mnt/tmp
sudo mount -o loop R2015b_glnxa64.iso /mnt/tmp
sudo ./install

安装

1) 修改配置文件

查看install_guide.pdf ,拷贝installer_input.txt 为my_installer_input.txt

destinationFolder=/opt/matlab
fileInstallationKey=09806-07443-53955-64350-21751-41297
agreeToLicense=yes
mode=silent
# licensePath=

2) 安装

$ ./install -inputFile ../my_installer_input.txt

3) 破解

  • Use license_standalone.lic to activate,
    or make a “licenses” folder in %installdir% and copy license_standalone.lic to it,and run matlab without activation
  • after the installation finishes copy the folders to %installdir% to overwriting the originally installed files
    sudo cp /[Your crack directory]/Matlab_R2015b/Matlab_2015b_Linux64_Crack/R2015b/bin/glnxa64/* /opt/matlab/bin/glnxa64
    

    4) 添加环境变量

    $ vim ~/.bash_profile
    
    export PATH 之前添加
    PATH=$PATH:/mnt/MATLAB/R2015b/bin
    
    让及时生效
    $ source ~/.bash_profile
    

    5) 测试

    matlab -nodisplay -r example
    
    卡在欢迎界面,所以还需要做以下工作:
    解决方法:安装X11环境

安装x11

yum install xorg-x11-apps
yum install xorg-x11-xauth

修改/etc/ssh/sshd_config

X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes

重启sshd服务

service sshd restart
service sshd status

设置X11-Forwarding

export DISPLAY=localhost:10.0
echo $DISPLAY # 查看是否设置成功

重复上面的测试。

大功告成!

参考
http://www.centoscn.com/image-text/install/2016/0408/7018.html
http://blog.csdn.net/yomo127/article/details/51087749

标签: matlab

发表评论 登录

Top