... | @@ -53,11 +53,3 @@ unset I_MPI_PMI_LIBRARY |
... | @@ -53,11 +53,3 @@ unset I_MPI_PMI_LIBRARY |
|
mpirun -n $SLURM_NTASKS ./dice
|
|
mpirun -n $SLURM_NTASKS ./dice
|
|
```
|
|
```
|
|
## X11 Forwarding |
|
## X11 Forwarding |
|
### Impersonate user, keeping X11 forwarding
|
|
|
|
- connect on the server with X11 forwarding: ```ssh -X login@server```
|
|
|
|
- get your auth with: ```xauth list $DISPLAY```. It should print something like ```server.oca.eu/unix:12 MIT-MAGIC-COOKIE-1 59a66b85301af8631b9504c34c10fb91```
|
|
|
|
- get your DSIPLAY envvar with: ```echo $DISPLAY```. It should print something like ```localhost:12.0```
|
|
|
|
- impersonate the user by using: ```sudo su - username```
|
|
|
|
- once you are the user, get back the xauth and DISPLAUY: ```xauth add server.oca.eu/unix:12 MIT-MAGIC-COOKIE-1 59a66b85301af8631b9504c34c10fb91 ; export DISPLAY=localhost:12.0```
|
|
|
|
|
|
|
|
You should be able to run graphical apps but with the user's environment. |
|
|
|
\ No newline at end of file |
|
|