# Cài đặt và sử dụng Matlab 2017b trên Linux Ubuntu

## MATLAB 2017b

Phiên bản này gần có phần vẽ nhiều đại lượng trên cùng 1 trục đứng của đồ thị

#### FILES

Phiên bản cài đặt có crack bao gồm 3 files :

1. R2017b\_glnxa64\_dvd1.iso
2. R2017b\_glnxa64\_dvd2.iso
3. Patched chứa
4. readme.txt với các thông tin hướng dẫn cài đặt
5. license\_standalone.lic
6. libmwservices.so
7. license\_server.lic

#### CÀI ĐẶT:

Trình tự thực hiện như sau:

Trong home/nguyen/ tạo thư mục Matlab dùng mkdir, trong Terminal

nguyen\@nguyen3620:\~$ mkdir Matlab

nguyen\@nguyen3620:\~$ cd Matlab/

Mount dvd1, lưu ý khi đó đĩa dvd sẽ được nhận trong /media/nguyen/

sau đó trong Terminal

nguyen\@nguyen3620:\~/Matlab$ /media/nguyen/MATHWORKS\_R2017B/./install

Chọn: the option "Use a File Installation Key" and supply the following FIK

```
09806-07443-53955-64350-21751-41297
```

Khi hết dvd1, hệ thống yêu cầu unmount dvd1 và mount dvd2

Hệ thống tự động cài đặt đến khi hoàn thành

Luu y:

Co the can sudo bash

Roi:

/media/nguyen/MATHWORKS\_R2017B/install

#### CRACK:

Copy file libmwservices.so từ patch vào trong Matlab/bin/glnxa64/, ví dụ nếu đã copy từ patched vào trong Matlab

nguyen\@nguyen3620:\~/Matlab$ sudo cp libmwservices.so bin/glnxa64/

(Để an toàn,copy file libmwservices.so có sẵn trong Matlab/bin/glnxa64/ vào 1 thư mục Archive nào đó trước khi đè bằng file trong patched)

#### SỬ DỤNG:

nguyen\@nguyen3620:\~$ cd Matlab/

nguyen\@nguyen3620:\~/Matlab$ cd bin/

nguyen\@nguyen3620:\~/Matlab/bin$ ./matlab

#### VẤN ĐỀ:

Lưu ý là nếu dùng Search để tìm Matlab trên Ubuntu thì khi kích chạy chỉ hiện file logo khởi động Matlab mà không chạy (? ko biết tại sao!!)

Có cách nào để run matlab đơn giản hơn ko?!!

## CREATE a shortcut on Ubuntu for Matlab: Method 1

You can also make a shortcut (at least on Ubuntu) using gnome-panel like that:

`sudo apt-get install gnome-panel` (only if you don't already has installed)

`sudo gnome-desktop-item-edit /usr/share/applications/ --create-new`

So, into window that will appear for you, set the properties like below:

![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/179113/image.png)

And then, will be in your applications menu a icon like that:

![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/179115/image.png)

That way, you can run the Matlab direct from menu, also can add to dock.

## CREATE a shortcut on Ubuntu for Matlab: Method 2

Step 1. go to terminal and type : matlab if it don"t work and

Step 2a: `user@host$ > cd <your installation path> /bin` where

\<your installation path>

is your installation directory

Step 2b: `user@host/ <your installation path> /bin`

`$> ./matlab`

if it works then you can create a path in bash.bashrc file found in /etc folder open it using gksudo or any other editor as sudo, paste

`export PATH=$PATH:<your installation path>`

for example

`export PATH=$PATH:/usr/local/MATLAB/R2017b/bin/`

save and exit. now if you enter matlab in terminal, it should launch.

## General method for adding a directory to the PATH

Edit`.bashrc`in your home directory and add the following line:

```
export PATH="/path/to/dir:$PATH"
```

You will need to source your`.bashrc`or logout/login (or restart the terminal) for the changes to take effect. To source your`.bashrc`, simply type

```
$ source ~/.bashrc
```

## Update MATLAB R2014b on Ubuntu 14.04 <a href="#matlab_r2014b_on_ubuntu_14.04" id="matlab_r2014b_on_ubuntu_14.04"></a>

### Install <a href="#install" id="install"></a>

* Run the installer as a super user
  * sudo ./install
* Follow the instructions of the installer and install in /usr/local/MATLAB/R2014a
* To add an entry to the launcher and some other features, install the matlab-support package:
  * sudo apt-get install matlab-support
* During the installation you have to confirm the installation path of matlab and could restrict the installation only to certain users (which I did not require). In addition you could rename the GCC libraries, but I had no problems so far so I didn't deactivate those.
* After completion, you have to change the ownership of the .matlab folder in the home folder to your own user account if you do not want to run Matlab as a super user.
  * sudo chown username -R \~/.matlab

Now Matlab should also be launchable through unity and should work as intended.

<https://help.ubuntu.com/community/MATLAB>

### Link tham khao:

<https://it-film.com/v-instalar-matlab-linux-r2016b-2017-DgxD_cMko8Y.html>

### Setup phim tat tren Linux cho giong trong Windows, Raccourcis clavier Ctrl+c Ctrl+v

Par défaut dans la version Unix, Ctrl+c et Ctrl+v ne sont plus des raccourcis clavier pour le copier-coller. Si ce comportement vous dérange :

* Ouvrir le menu de configuration.
* Aller dans le menu

  *Keyboard*&#x20;

  *>*

  &#x20;*Shortcuts*

  .
* Sélectionner

  *Windows Default Set*

  dans le menu déroulant

  *Active setting*

  .
