... | ... | @@ -55,7 +55,7 @@ mpirun -n $SLURM_NTASKS ./dice |
|
|
## 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 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```
|
... | ... | |