Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions X11_forwarding.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,24 @@ Before getting started, download [MobaXterm](https://mobaxterm.mobatek.net) and
$ ssh -X username@wheeler.alliance.unm.edu
```

2. Start an interactive session using qsub, but again include the -X flag.
If you get the error "/usr/bin/xauth: file /users/user/.Xauthority does not exist", use the command:

```
$ qsub -IX -l nodes=1:ppn=1
touch ~/.Xauthority
```

Note that the equivalent command using slurm would be as follows:
Log out and back in, and then move on to the next step.

2. Start an interactive session using slurm, and include the X11 flag.

```
srun --x11 --nodes=1 --ntasks=1 xterm
$ srun --x11 --pty bash
```

Note that the equivalent command using qsub would be as follows:

```
$ qsub -IX -l nodes=1:ppn=1
```

3. Once you have been assigned a node, load the MATLAB module. Then start MATLAB. You should automatically get a MATLAB GUI
Expand Down