[redhat]安装matlab 2017a

1. 切换到root账户

mkdir /media/matlab
mount -o loop R2017a_glnxa64_dvd1.iso /media/matlab
切换到其他目录
./media/matlab/install
但提示错误
Error: Installation cannot proceed. You may either:
1. Set an X11 display, and restart the install process
2. Use the silent install feature by specifying the -mode silent option

网上的有一种说法是通过/media/matlab/install -mode silent -agreeToLicense yes -fileInstallationKey 1111-1111-1111-1111, 这种方式需要序列号
我猜测需要X11图像化安装,所以需要对server上需要安装X11环境

2. 安装X11环境

参考:http://www.centoscn.com/image-text/install/2016/0408/7018.html
安装x11
yum install xorg-x11-appsyum install xorg-x11-xauth
修改/etc/ssh/sshd_config
X11Forwarding yesX11DisplayOffset 10 X11UseLocalhost yes
重启sshd服务
service sshd restartservice sshd status
设置X11-Forwarding
export DISPLAY=localhost:10.0echo $DISPLAY # 查看是否设置成功
如果 rpm -qa | grep -i xorg-x11有输出说明X11有安装,我这里已经安装过,下一步,设置xming+putty搭建远程图形化ssh访问

3. xming+putty

参考:http://www.cnblogs.com/chenchenluo/p/4505567.html
Xming 显示的原理是每一个运行在远端服务器的图形化application 都是一个client,把要显示的图形数据通过 ssh发送给 运行在本地的 Xming server,然后由Xming server 负责显示。所以,从图形显示的角度来说,xming就是server。
xming的安装:到sourceforge上下载:http://sourceforge.net/projects/xming/?source=typ_redirect, 分别下载 xming 与 xming-fonts。
Unix/Linux 服务器的配置
  修改下要登录的服务器的配置文件,增加对 X11 Forwarding的支持:
  sudo vi /etc/ssh/sshd_config: (在文件的末尾,增加以下配置)
X11Forwarding yes
putty的配置

《[redhat]安装matlab 2017a》 Paste_Image.png
《[redhat]安装matlab 2017a》 Paste_Image.png
《[redhat]安装matlab 2017a》 Paste_Image.png
《[redhat]安装matlab 2017a》 Paste_Image.png

4.此时可以图形化安装matlab了

中间可能需要先卸载dvd1,umount /media/matlab,再挂dvd2, 同样mount -o loop R2017a_glnxa64_dvd2.iso /media/matlab
破解也需要X11环境,具体看说明文档了。。。
一般是安装时输入File Installation Key, 安装完毕并且将/crack/bin/中的文件复制到/MATLAB/Rxxxx/bin中。
$ sudo cp /[Your crack directory]/Matlab_R2015b/Matlab_2015b_Linux64_Crack/R2015b/bin/glnxa64/* /usr/local/MATLAB/R2015b/bin/glnxa64
首次运行matlab要用root权限(否则无法写文件),采用不联网激活,找到Crack中相应的激活文件*.lic,导入激活。

5.把目录/usr/local/MATLAB/R2015b/bin加入PATH
备注:

顺便学习了在linux解压缩rar文件,参考http://nameyjj.blog.51cto.com/788669/477692
下载rarlinux安装包http://www.rarsoft.com/download.htm,附件中目前最新的版本在windows下解压之后就是rarlinux-4.0.b4.tar.gz了。
tar zxvf rarlinux-4.0.b4.tar.gz
cd rar
make
make install
至此安装完毕,输入rar按回车,如果出现如下错误:
rar: /lib/i686/nosegneg/libc.so.6: version `GLIBC_2.7′ not found (required by rar)
只需要进行下面的操作就可以了
cp rar_static /usr/local/bin/rar

    原文作者:hxvicky
    原文地址: https://www.jianshu.com/p/bda82be3c1a7
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞