Optimizing X11 Performance

This page provides instructions for setting the DISPLAY variable in order to make the archive viewer and other X11 applications perform better on your office computer or laptop.

NOTE 1: These instructions assume that you know how to connect to the LCLS home screen from your computer. If you don't know how to do this, instructions are available here:

NOTE 2: The instructions on this page do not work for SLAC Linux computers. If you figure out a way to do this in linux, please modify the instructions!

Step 1: Set up your computer to accept X displays

Set up your computer to accept X displays.

Windows users: Make sure xwin32 is running. You'll see a blue X icon in the tray at the lower right corner of your screen.

Linux users: Add lcls-prod02 to the list of allowed hosts. Do this by typing the following in a terminal, BEFORE connecting to lcls-prod02:

xhost +lcls-prod02.slac.stanford.edu

Step 2: Log in to the LCLS production server lcls-prod02

Ssh to lcls-prod02.slac.stanford.edu.

Step 3: Determine the IP address or hostname of your computer

Option A: (Does not work for VPN)

Look at your computer. There might be a label on it with the IP address listed.

Option B: (Does not work for VPN)

If you're using a Windows PC, use Microsoft Windows to determine your computer's hostname:
On the desktop, right click on "My Computer" and select "Properties". Select the "Computer Name" tab. Look at the "Full Computer Name". That's your hostname.

Option C: (Works for regular connection or VPN connection)

Type the following command at the prompt on lcls-prod02:

printenv SSH_CLIENT

The result is SSH_CLIENT=<Your IP Address> <some number> <port>

Step 4: Set the DISPLAY environment variable

Before loading lclshome or any other applications, set the DISPLAY environment variable by typing the following:

setenv DISPLAY <your ip address OR your hostname>:0.0

Don't forget to add :0.0 at the end of your hostname or ip address!

Step 5: Launch the home screen or any other application

To launch the home screen:

lclshome

Step 6: In case of problems

If after setting the DISPLAY environment variable (Step 4 above), you can't get any displays to load, you have probably made an error with step 3. Try step 3 again. If you continue to have problems, log out of lcls-prod02 and log back in.

  • No labels