Installing MATLAB2018a under Ubuntu 16.04 causes the root directory to explode?

Installing MATLAB2018a under Ubuntu 16.04 causes the root directory to explode?

Recently, when I was looking at the VIO course from scratch, I needed to calibrate the IMU data. When using the im_utils tool, I found that I needed to use MATLAB and didn't want to switch back to the Windows system. So I searched the Internet and started on Ubuntu 16. Install MATLAB2018a under 04.

Install MATLAB2018a

There are a lot of Matlab2018a on Baidu Cloud Disk. You can find it by just looking for it, so I won’t put it here. Ask me in the comments you need.
After downloading, the installation is relatively simple, refer to the predecessor's tutorial: Ubuntu16.04 install Matlab2018a , just step by step, generally can be installed smoothly.

Brief installation process:

1. Download matlab, and copy the iso installation file to /home/yan/Downloads/matlab/ under the home directory HOME, assuming the file name of the matlab software is Matlab.iso
2. Mount the iso file

mkdir dvd
sudo mount -t auto -o loop /home/yan/Downloads/matlab/R2018a_glnxa64_dvd1.iso dvd/
sudo /home/yan/Downloads/matlab/dvd/install

Then it is almost the same as the installation under Windows. After the installation is more than halfway, a dialog box will pop up to insert another image. At this time, open a terminal and hang on the second image:

sudo mount -t auto -o loop /home/yan/Downloads/matlab/R2018a_glnxa64_dvd2.iso dvd/

Then click to continue the installation.
3. Enter the key
. Select Use a File Installation Key
Key during the installation process. Select the
first key in the readme.txt under the Matlab 2018a Linux64 Crack folder : 09806-07443-53955-64350-21751-41297
4. Activate the MATLAB
window The default installation location of the interface is /usr/local/MATLAB/R2014b, use the command line to open the matlab method: sudo /usr/local/MATLAB/R2018a/bin/matlab`

 sudo /usr/local/MATLAB/R2018a/bin/matlab`

The first time you start slow, wait a minute
after the activation box appears, select: Activate manually without the Internet
and then select the file break, the specific path is / home / yan / Downloads / matlab / Matlab 2018a Linux64 Crack / license_server.lic
still need Get a cracking software, copy libmwlmgrimpl.so under /home/yan/Downloads/matlab/Matlab 2018a Linux64 Crack/R2018a/bin/glnxa64/matlab_startup_plugins to /usr/local/MATLAB/R2018a/bin/glnxa64/matlab_startup_plugins/lmgrimpl under

  1. Uninstall the image file after installation:
sudo umount /home/yan/Downloads/matlab/dvd/
  1. Create a desktop shortcut
    because of the method according to the tutorial, without success. Another method will be mentioned below.

Problem and solution

  1. After installing and activating according to the tutorial, an error appears when opening again :

License checkout failed.
License Manager Error -95
MATLAB is unable to connect to the license server.
Make sure you can resolve the hostname of your machine.
If you are unable to resolve the hostname, contact your System Administrator.
Troubleshoot this issue by visiting:
https://www.mathworks.com/support/lme/R2018a/95

Look at the log, it should be that the activation failed.
Solution:
Copy license_standalone.lic from the crack folder to the licenses folder of the matlab installation directory and rename it to license.lic.
Then reopen MATLAB and enter MATLAB smoothly:
Insert picture description here
2. Another problem is to add MATLAB shortcuts according to the method in the tutorial:

/usr/share/applications/Matlab2018a.desktop

Enter in the pop-up text box, save and exit:

[Desktop Entry] 
Encoding=UTF-8 
Name=Matlab 2018a
Comment=MATLAB
Exec=/usr/local/MATLAB/R2018a/bin/matlab
Icon=/usr/local/MATLAB/R2018a/toolbox/shared/dastudio/resources/MatlabIcon.png
Terminal=true  
Type=Application  
Categories=Application;

After doing this, the Matlab icon was not found in Dash, and Matlab2018a.desktop was found and double-clicked and it also showed a startup error .
Solution:
Install matlab-support in the software center,

sudo apt-get install matlab-support

Then follow the prompts and add the installation directory of matlab as /usr/local/MATLAB/R2018a, and then you can see Matlab in the DASH programming.
Insert picture description here

Root directory explosion

After installing MATLAB, I thought everything would be fine. As a result, I did not expect the system to prompt me that the remaining space in the root directory is 0! ! I quickly looked at the root directory and found that the newly installed MATLAB has more than 20 Gs. Who can stand it?
At that time, when installing the Ubuntu dual system, the root directory was divided into about 40G according to the instructions on the Internet, and then the home directory was given about 50G. Now it seems that the root directory is still too small. At this time, either delete MATLAB or expand the root directory. After hesitating for three seconds, I decided to expand the root directory.
Just do it, I searched some information on the Internet. The expansion method is probably to use GParted to expand the / root directory. Of course, the command line can also be used to expand the capacity, but considering that the rookie has already used the command line to destroy two Ubuntu System, I don’t want to reinstall the system anymore, I decided to try GParted.

Use GParted to expand the /root directory

The general idea of ​​using GParted to expand the /root directory is to first create a free partition under Windows (refer to the Windows 10 installation ubuntu16.04 dual system tutorial ), because the expansion of the root directory requires us to umount the root directory, so we cannot directly Expand directly on the running Ubuntu system. We need to prepare a bootable U disk for Ubuntu 16.04 (you can also refer to the link above for the method of making bootable U disk), and then enter the trial mode of Ubuntu by booting the U disk. In this mode (actually, in another Ubuntu system, operating on the root directory of our previous Ubuntu), download gparted, and then expand the root directory.

Prepare free partition

Reference: Windows10 install ubuntu16.04 dual system tutorial
just follow the tutorial, if your last disk capacity is too small, you can get some from other disks, you need to use DiskGenius this tool, the operation is relatively simple, so I won't introduce it here. Disk partitioning reference
In order to solve the problem of insufficient memory once and for all, I evened the D disk with more remaining capacity to the E disk (the last disk) 60G, so that 80G of free memory was separated from the E disk (she shed tears of poverty) ), ready to add this 80G to the previous root directory.
(The D drive is damaged error occurred during the middle partitioning. You can find the ending method by searching the error information. Just check the corresponding drive letter in cmd. The specific instructions are checked under Windows, and this blog It is written under Ubuntu, so I won’t write the details first)


I went back to Windows and looked for a solution: "$Bitmap has unused clusters marked as used"

Ready to boot the USB flash drive

Reference: Windows10 install ubuntu16.04 dual system tutorial

The students who have installed the dual system believe that they are already familiar with the road...

Use gparted to expand the root directory

Reference: ubuntu16.04 uses GParted to expand the /root directory.
Enter the use mode of Ubuntu16.04 by booting the U disk, and then enter in the command line:

sudo apt-get install gparted

Then you can see the gparted icon in Dash, click to start.
Insert picture description here
This is a picture I have already expanded. It has no reference value. Just follow the tutorial above for many expansions.
What I want to say is that many tutorials do not explain how to remove the small key. In fact, after booting the U disk to enter and use Ubuntu16.04, open gparted, except for the small key in front of Linux-swap, there are no small keys in front of the other disks, and the small key before Linux-swap can be easily removed by right-clicking . After the small key is removed, we can operate these drive letters. Refer to the above link for the specific process.

One thing that needs to be mentioned is that when moving free space and merging free space and root directory, there are many metaphysical bugs, and errors may pop up without success. You can try several times.

The above is the pit that I stepped on for a day today...


2020.6.16 00:31

Guess you like

Origin blog.csdn.net/weixin_44456692/article/details/106770778
Recommended