安装WPS

ubuntu 16 默认安装了liberoffie,其实蛮好用的,但是不知道为什么打开Windows下用微软office创建的PPT会卡死,很蛋疼,所以想要把office软件换成WPS的Linux 版本。

STEP 1

到金山WPS的官方网址下载对应版本的deb安装包。 WPS官方网站 :http://linux.wps.cn/ (区分64位、32位)

STEP2

先不要执行dpkg -i 去执行安装。这个地方有个问题,就是ubuntu 16 版本不支持32位的支持库,所以需要安装一下支持库。 32位的支持库名为:ia32-libs 安装的时候会提示有替代包,需要安装替代包。 命令如下

1
2
sudo apt-get install lib32ncurses5 
sudo apt-get install lib32z1

STEP3

还是不要执行dpkg -i ,因为即使现在安装还是会缺少一个依赖。这个依赖是libpng-12.0。不过这个在默认的apt 仓库里没有。所以需要手动下载一下。 下载地址:https://packages.debian.org/zh-cn/wheezy/amd64/libpng12-0/download

下载完成后,执行dpkg -i 安装这个依赖。

1
sudo dpkg -i libpng12-0_1.2.49-1+deb7u2_amd64.deb

STEP4

到了这一步,安装WPS的deb就没有问题了。执行dpkg -i 即可。

1
sudo dpkg -i wps-office_10.1.0.5672-a21_amd64.deb

STEP 5

最后一步,打开WPS 会报出一个字体缺少的对话框。

下载该字体wps_symbol_fonts.zip,解压后将整个wps_symbol_fonts目录拷贝到 /usr/share/fonts/ 目录下

注意,wps_symbol_fonts目录要有可读可执行权限 。 1.权限设置,执行命令如下

1
2
3
4
cd /usr/share/fonts/
chmod 755 wps_symbol_fonts
cd /usr/share/fonts/wps_symbol_fonts 
chmod 644 *

2.生成缓存配置信息 进入字体目录

1
2
3
4
cd /usr/share/fonts/wps_symbol_fonts
mkfontdir
mkfontscale
fc-cache

参考:

http://download.csdn.net/download/wl1524520/6333049 http://www.cnblogs.com/xueranzp/p/5703791.html http://download.csdn.net/download/wl1524520/6333049

安装 Matlab R2017a

Download

  1. SJTU-putao
  2. BaiduNetDisk
  3. DownloadIy.ir

Installation

  1. Mount dvd1.iso
1
2
mkdir /home/<username>/Matlab  
sudo mount -t auto -o loop *dvd1.iso所在的绝对路径 /home/<user name>/Matlab

We created a temporary folder to mount dvd1.iso and dvd2.iso(later). Please do not mount dvd2.iso before installation.

  1. Installation

    1
    
    sudo /home/<username>/Matlab/install
    

    Notice: The installation will be terminated if the terminal is at /home//Matlab . At first, you choose offline verification, and the license number lies in readme.txt in the “Crack” folder. Copy and paste the very first key (begin with 09806).

  2. Mount dvd2.iso When the installation process goes to 75%, it asks for the dvd2.iso. We open another terminal (Ctrl+Alt+T), and do:

1
sudo mount -t auto -o loop *dvd2.iso所在的绝对路径 /home/<username>/Matlab

Then we go back to the interface of installation to countinue.

  1. Umount

    1
    2
    3
    
    sudo umount /home/<username>/Matlab
    sudo umount /home/<username>/Matlab 
    sudo rm -r /home/<username>/Matlab 
    

    You need umount it twice because we mounted it twice. And you can choose to delete the temporary folder.

  2. Crack

    You'd better open Matlab later.

    1
    2
    3
    
    sudo mkdir /usr/local/MATLAB/R2017a/bin/licenses/  
    sudo cp license_standalone.lic所在的目录 /usr/local/MATLAB/R2017a/bin/licenses/  
    sudo cp libmwservices.so所在的目录 /usr/local/MATLAB/R2017a/bin/glnxa64/  
    

    /usr/local/MATLAB/ is the default installation folder of Matlab.

  3. Launch

1
sudo /usr/local/MATLAB/R2017a/bin/matlab 

At first launch, you may need to provide the license file. Locate it and finish activation.

  1. Shortcut

Some approaches to launch matlab conveniently.

a. matlab-support Go to software center and install matlab-support. Or enter:

1
sudo apt install matlab-support

Then you can launch it when searching applications.

You may find problems named Java error. The issue was that the .matlab folder in the Home directory was owned by root after this install. Try:

1
2
3
sudo chown [yourusername]:[yourusername] ~/.matlab
cd ~/.matlab
sudo chown -R [yourusername]:[yourusername] *

but still some questions:

I found that changing only the ~/.matlab folder to be mine would allow the software to launch with -nojvm but the other start options showed errors. I originally thought this was a java issue, but actually it was hitting java IO exceptions from the bad folder permissions.

From:https://cn.mathworks.com/matlabcentral/answers/98599-why-will-matlab-not-start-up-properly-on-my-linux-or-unix-based-system

b. alias Change ~/.bashrc and add permanent alias.

c. Desktop shortcut