Matlab Install and Activate 1.md 1.57 KB
Newer Older
Krish Moodbidri's avatar
Krish Moodbidri committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
## MATLAB install

### On OHPC node:


## Prerequisites

This Batch Connect app requires the following software be installed on the **compute nodes** that the batch job is intended to run on (**NOT** the
OnDemand node):

- [MATLAB] R2016b+

You could download by running the command below (Make sure to read Matlab2018a_install.md for detailed explanation **and to validate the UAB license**)
```sh
ssh cheaha.rc.uab.edu cat /data/user/krish94/matlab-install.tar.gz | tar -xzf - 
```
- [Xfce Desktop] 4+

For VNC server support:

- [TurboVNC] 2.1+
- [websockify] 0.8.0+

For hardware rendering support:

- [X server]
- [VirtualGL] 2.3+

**Optional** software:

- [Lmod] 6.0.1+ or any other `module purge` and `module load <modules>` based
  CLI used to load appropriate environments within the batch job

[MATLAB]: https://www.mathworks.com/
[Xfce Desktop]: https://xfce.org/
[TurboVNC]: http://www.turbovnc.org/
[websockify]: https://github.com/novnc/websockify
[X server]: https://www.x.org/
[VirtualGL]: http://www.virtualgl.org/
[Lmod]: https://www.tacc.utexas.edu/research-development/tacc-projects/lmod

## Install

Use git to clone this app and checkout the desired branch/version you want to
use:

```sh
scl enable git19 -- git clone https://github.com/OSC/bc_osc_matlab.git
cd <dir>
scl enable git19 -- git checkout <tag/branch>
```

### On OOD node:


- Modify to fit our environment

```diff
# diff of /var/www/ood/apps/sys/bc_osc_matlab/submit.yml.erb
-cluster: "owens"
+cluster: "ohpc"

# diff of /var/www/ood/apps/sys/submit.yml.erb

 batch_connect:
-   template: "basic"
+  template: vnc

```