Skip to content

Commit

Permalink
Update runtime_tips.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bclaremar authored May 7, 2024
1 parent 5e460d1 commit 94933fd
Showing 1 changed file with 22 additions and 17 deletions.
39 changes: 22 additions & 17 deletions docs/cluster_guides/running_jobs/runtime_tips.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,34 @@
# Runtime tips

## How can I run X11 applications inside GNU screen?
???- How can I run X11 applications inside GNU screen?

???- info "For UPPMAX staff"

TODO: InfoGlue link: `https://www.uppmax.uu.se/support/faq/running-jobs-faq/how-can-i-run-x11-applications-inside-gnu-screen/`

**If I log in to the login nodes with ssh -XA user@hostname as supposed when wanting to run X applications, and then try to start an X application inside a screen session, why does this not work?

(This applies also for trying to do PNG output in R, since it depends on X11)**
**If I log in to the login nodes with ssh -XA user@hostname as supposed when wanting to run X applications, and then try to start an X application inside a screen session, why does this not work?

When starting a screen session, your DISPLAY environment can sometimes change from the one that you had when you logged in.
(This applies also for trying to do PNG output in R, since it depends on X11)**

When starting a screen session, your DISPLAY environment can sometimes change from the one that you had when you logged in.

To solve this problem, you simply have to set the DISPLAY variable inside the screen session, to the same value that you have outside it.
To solve this problem, you simply have to set the DISPLAY variable inside the screen session, to the same value that you have outside it.

So, outside the screen session, do:
So, outside the screen session, do:

echo $DISPLAY
You might see something like:
```
echo $DISPLAY
```

You might see something like:

localhost:45.0
Then, inside your screen session, set your DISPLAY env variable to that same value using the export command, like so:
```
localhost:45.0
```

Then, inside your screen session, set your DISPLAY env variable to that same value using the export command, like so:

export DISPLAY=localhost:45.0
(NOTE: The actual number above might be different for you, and should be changed accordingly!)
```
export DISPLAY=localhost:45.0
```

(NOTE: The actual number above might be different for you, and should be changed accordingly!)

## Looking at "jobinfo" output, PRIORITY and REASON for my waiting jobs change over time. Please explain what is going on!

Expand Down

0 comments on commit 94933fd

Please sign in to comment.