Skip to content

Launching GUI Programs (X11)

Overview

Juno supports running graphical user interface (GUI) programs through two main methods:

  1. Open OnDemand — a web-based portal, recommended for most users
  2. X Window System — traditional X11 forwarding, covered on this page

Looking for the web portal?

For most interactive GUI work, Open OnDemand is easier — just a browser, no setup. Use X11 forwarding (below) when you need a specific GUI program that isn't available as an interactive app.

Note that X11 does not support interactive file management the way Open OnDemand does — for browsing, uploading, downloading, and editing files through a graphical interface, use the portal's file manager.

X Window System (X11 Forwarding)

For users who prefer command-line access or need specific GUI programs not available in Open OnDemand.

Prerequisites

Install an X server on your local computer:

Mac

Install XQuartz:

  1. Download from xquartz.org
  2. Install the .dmg file
  3. Log out and log back in (required)
  4. Open XQuartz
  5. Use the XQuartz terminal for SSH

Windows

Install MobaXterm (Recommended):

  1. Download from mobaxterm.mobatek.net
  2. Choose Home Edition (free)
  3. Install the software
  4. X server starts automatically with MobaXterm
  5. Use MobaXterm's built-in terminal

Alternative: Xming:

  1. Download Xming
  2. Install Xming
  3. Start Xming from Start menu
  4. Use PowerShell or PuTTY with X11 forwarding enabled

Linux

X11 is traditionally installed on Linux, so no additional software is needed. Be aware, however, that X11 is legacy software and is no longer actively supported by its developers — if you hit problems, prefer Open OnDemand instead.

Logging In with X11

ssh -X netID@juno.utdallas.edu

Note

Use capital -X for X11 forwarding, not lowercase -x

For slower connections, use compression:

ssh -XC netID@juno.utdallas.edu

Testing X11 Forwarding

After logging in with -X, test with a simple program:

xclock

If a clock appears on your screen, X11 forwarding is working correctly!

Screenshot of the xclock application window displayed on the local desktop via X11 forwarding from Juno.

Running GUI Programs on Login Node

Note

Only use login nodes for quick tests or launching programs that will run on compute nodes.

# Test X11
xclock

# Launch MATLAB (from login node, not recommended for computation)
module load matlab/r2024b
matlab

Running GUI Programs on Compute Nodes

Recommended approach: Request resources, then launch GUI program.

# Step 1: Request resources on login node
salloc -p normal --mem=8GB -c 4 -t 2:00:00

# Step 2: Check which nodes are assigned
squeue --me

# Step 3: Start interactive session with X11
ssh -X c-XX-YY             # Node c-XX-YY was assigned

# Now on compute node, launch GUI program
module load matlab/r2024b
matlab

Your prompt changes from juno-l-01 to c-XX-YY, indicating you're on a compute node.

Common GUI Applications

MATLAB

# Load MATLAB module
module load matlab/r2024b

# Launch MATLAB GUI
matlab

# Or run MATLAB script without GUI
matlab -nodisplay -nosplash -r "run('script.m'); exit;"

After running matlab, the full MATLAB desktop opens on your local screen via X11, running on the compute node.

Screenshot of the MATLAB startup splash screen appearing on the local desktop after launching MATLAB over X11 forwarding.

Screenshot of the full MATLAB desktop (Command Window, Workspace, and editor) running on a Juno compute node and displayed locally via X11 forwarding.

Ansys Fluent

module load ansys/2025R1
fluent

Stata

module load stata/19.5
xstata

Troubleshooting X11

"Cannot open display" error

Problem: X11 forwarding not working

Solutions:

  1. Verify X server is running on your local machine
  2. Mac: Check XQuartz is running
  3. Windows: Check MobaXterm or Xming is running

  4. Check DISPLAY variable:

    echo $DISPLAY
    
    Should show something like localhost:10.0

  5. Re-login with -X flag:

    ssh -X netID@juno.utdallas.edu
    

  6. Try -Y instead of -X (Mac users):

    ssh -Y netID@juno.utdallas.edu
    

  7. Check SSH config: Add to ~/.ssh/config on your local machine:

    Host juno
        HostName juno.utdallas.edu
        User your_username
        ForwardX11 yes
        ForwardX11Trusted yes
    

Slow Performance

Problem: GUI is laggy or unresponsive

Solutions:

  1. Enable compression:

    ssh -XC netID@juno.utdallas.edu
    

  2. Reduce color depth (if using VNC/remote desktop)

  3. Consider using Open OnDemand instead (better for slow connections)

  4. Close unnecessary windows and programs

X11 Works on Login but Not Compute Node

Solution: Use -X flag when you log in to the compute node:

ssh -X c-XX-YY

X11 Configuration Tips

SSH Config File

Create ~/.ssh/config on your local machine:

Host juno
    HostName juno.utdallas.edu
    User your_username
    ForwardX11 yes
    ForwardX11Trusted yes
    Compression yes

Now you can simply:

ssh juno

Keep Connection Alive

Add to SSH config:

Host juno
    ServerAliveInterval 60
    ServerAliveCountMax 3


Best Practices

  1. Choose the right method:
  2. Open OnDemand for most interactive work
  3. X11 for specialized programs not in OnDemand

  4. Request appropriate resources:

  5. Start with modest requests (2-4 cores, 8GB RAM)
  6. Scale up if needed

  7. End sessions when done:

  8. Don't leave interactive sessions running unnecessarily
  9. Fair share applies to interactive jobs too

  10. Test on login node first (briefly):

  11. Verify program launches
  12. Then move to compute nodes

  13. Use tmux/screen with X11:

    # Start tmux before requesting resources
    tmux new -s gui_session
    salloc ...
    

Example Workflow: MATLAB with X11

  1. Open XQuartz terminal (Mac) or MobaXterm (Windows)
  2. ssh -X netID@juno.utdallas.edu
  3. salloc -p normal --mem=16GB -c 4 -t 4:00:00
  4. squeue --me
  5. ssh -X c-XX-YY
  6. module load matlab/r2024b
  7. matlab
  8. Work in MATLAB GUI
  9. Exit MATLAB
  10. exit from compute node
  11. exit from login node

For interactive-app workflows (Jupyter, RStudio), see Open OnDemand.

Next Steps

Need Help?