---
# System prepended metadata

title: HOW TO BUILD MATLAB CLUSTER
tags: [' installation', ' matlab', computer science, ' cluster']

---

---
tags: computer science, installation, matlab, cluster
---

# HOW TO BUILD MATLAB CLUSTER

![](https://i.imgur.com/hHE1EKa.png =100x)

## MATLAB Installation
- Official website https://www.mathworks.com/products/matlab.html
    - Parallel Computing Toolbox https://www.mathworks.com/products/parallel-computing.html
        - Document https://www.mathworks.com/help/parallel-computing/index.html
            - Clusters and Clouds https://www.mathworks.com/help/parallel-computing/clusters-and-clouds.html
            
![](https://i.imgur.com/qxk9utP.png =400x)

## License Management
- Account: d00922011@csie.ntu.edu.tw
- PWD: ***

## Firewall Setting
- Red Hat: firewalld
    - https://cloud.tencent.com/developer/article/1529105
```bash=
sudo apt install firewalld
sudo firewall-cmd --list-ports
sudo firewall-cmd --add-ports 27350/tcp
```
- Ubuntu/Debian: ufw
    - https://www.arthurtoday.com/2013/12/ubuntu-ufw-add-firewall-rules.html
    - https://www.itread01.com/content/1548900382.html
```bash=
sudo apt install ufw
sudo ufw app list
sudo ufw allow 27
```

## Server Setting
### Machines
- 140.112.90.232
    - CPU: Intel E5-2670 dual with 48G DRAM
    - GPU: nVidia RTX   2070 super with 8G VRAM
    
- 140.112.90.234
    - CPU: Intel i7-6700 with 32G DRAM
    - GPU: nVidia RTX 2070 super with 8G VRAM

### Cluster Creation

## Client Setting

### Remote Windows
#### Windows to Linux
- Xming X Server for Windows https://sourceforge.net/projects/xming/
- Putty https://www.putty.org/
    - X11: **enable forwarding** & **display location = localhost:0**
#### Linux to Linux
- Simply add ```-X``` to the ```ssh``` command. _Sweet!_

#### References
- http://rocksaying.tw/archives/2018/wsl-run-linux-desktop-software.html
    - Digression: **Windows Subsystem for Linux (WSL)** is ready.
- https://blog.twtnn.com/2012/06/winodws7linuxguixming.html

## MISC
### NVIDIA GPU Cloud
- https://ngc.nvidia.com/catalog/containers/partners:matlab