Project

General

Profile

Viewing events remotely with VNC

(Adapted from the 35 ton tutorials by Karl Warburton)

Generate some events to view

  1. Setup your directory.
  2. Go to your data area and create an area for this work.
    cd /sbnd/data/users/< username >/
    mkdir workspace
    cd workspace
  3. Generate 10 single muon events.
    lar -c prodsingle_sbnd.fcl -n 10
  4. Run GEANT4 on the output (... = "Tab").
    lar -c standard_g4_sbnd.fcl -s prodsingle...
  5. Run the detector simulation on the output.
    lar -c standard_detsim_sbnd.fcl -s prodsingle..._...
  6. Run the reconstruction on the output.
    lar -c standard_reco_sbnd_basic.fcl -s prodsingle..._..._...

Viewing events with VNC

Running GUIs (e.g. TBrowser, Event display) on the gpmvs can be very slow, using a VNC server speeds things up significantly.

  1. To configure this we will need two terminals open. Terminal 1 = terminal logged in to one of the sbnd gpvms. Terminal 2 = terminal on your local machine.
  2. Terminal 1: Start the VNC server (replace X with a number, must be different for everyone working on the same gpvm).
    vncserver :X -localhost 
  3. Terminal 1: Choose a password.
  4. Terminal 1: Push the output of a remote terminal to the VNC desktop.
    export DISPLAY=localhost:X 
  5. Terminal 2: Tunnel the VNC through ssh to keep it encrypted (if X<10 add a zero to the front).
    ssh -L 59X:localhost:59X -N -f -l < username > < gpvmaddress > # e.g. ssh -L 5908:localhost:5908 -N -f -l tbrooks sbndgpvm01.fnal.gov # 
  6. Terminal 2: Open the window locally.
    • On mac the command is.
      open vnc://localhost:59X 
    • On linux/ubuntu we will use vinagre but you might need to download it first.
      sudo apt-get install vinagre
      vinagre vnc://localhost:59X 
    • A desktop window should open up.
  7. Terminal 1: Open the event display.
    lar -c evd_sbnd.fcl prodsingle..._..._..._... 
    • The event display should appear in the desktop window.