Matlab R2012a Unix的安装

来源:互联网 发布:淘宝名气最高的杂货店 编辑:程序博客网 时间:2024/05/29 15:15

1.挂载文件
终端执行
sj@sj-K52Je:~$ sudo mkdir /tmp/matlab
这是创建挂在iso的地方

sj@sj-K52Je:~$ sudo mount -o loop -t iso9660 ~/Matlab.R2012a.UNIX.ISO-TBE.iso /tmp/matlab mount: warning: /tmp/matlab seems to be mounted read-only.
这是把iso文件挂载到主文件夹下,然后cd到/tmp/matlab
sj@sj-K52Je:/tmp/matlab$ sudo sh ./install
2.开始安装。
选择 install without using the internet ; 
 选择yes; 
 选择I have the File Installation Key for my license (file installation key在挂载目录/media/matlab/crack下面的install.txt文件中);
 选择custom(自定义); 指定installation folder; 
 选择你要用到的工具箱; 
 点击install 。 
 安装过程中我还没碰到问题。

3.激活
cd /usr/local/MATLAB/R2012a/bin
sudo ./activate_matlab.sh
选择 Activate manually without the internet; 
选择 enter full path to your license file, including the file name. (license file 在 /media/matlab/crack目录下面的lic_standalone.dat) 
 完成激活。
4.创建桌面快捷方式
gnome-desktop-item-edit --create-new ~/桌面
在弹出的create launcher对话框中的command栏里填入如下命令: /usr/local/MATLAB/R2012a/bin/matlab -desktop 
matlab和-desktop之间有空格,-desktop不能少。 
 点击OK,快捷方式就有了。
5.解决中文乱码问题 
1. 字体显示美化 
进入Matlab,从菜单打开:Files->preferences,打开Fonts页,把右边最下面的复选框Use antialising to smooth desktop fonts选中,重启MATLAB,字体显示的效果就很好了. 
2.MATLAB使用自带的Java运行环境,根据CPU架构的不同,相对应的字体配置文件路径为: 32位版本 /usr/local/matlab/sys/java/jre/glnx86/jre/lib/fontconfig.properties 64位版本 /usr/local/matlab/sys/java/jre/glnxa64/jre/lib/fontconfig.properties 下面以32位版本为例 
3.进入字体配置文件目录
cd /usr/local/MATLAB/R2012a/sys/java/jre/glnx86/jre/lib 
如果fontconfig.properties文件不存在,可以从fontconfig.properties.src复制一个 
sudo cp fontconfig.properties.src fontconfig.properties

4.字体可直接用系统自带的文泉驿 修改JRE的字体配置文件,打开配置文件:
sudo gedit fontconfig.propertie
加入中文字体定义,在version=1下面一行输入 
allfonts.chinese-arphic1=-misc-simsun-medium-r-normal--0-0-0-0-p-0-iso10646-1 如果文件已有allfonts.chinese-arphic1
这行,就直接把它们改成上面那样。指明中文字体路径,在allfonts.chinese-arphic1行后回车另起一行,输入中文字体文件的完整路径:
filename.-misc-simsun-medium-r-normal--0-0-0-0-p-0-iso10646-1=/usr/share/fonts/truetype/wqy/wqy-microhei.ttc 

5.修改字体搜索, 在配置文件中查找sequence.allfonts,如果其后的sequence开头的行中有: 
chinese-arphics1,可以略过此步,否则在其后面加入一行:sequence.fallback=chinese-arphic1
0 0
原创粉丝点击