# # This file is read by nanoscale to determine which ports to listen # to and the how to start the associated render server. # # Render servers # # Server Port Usage # ====== ==== ===== # nanovis 2000 production # vtkvis 2010 production # geovis 2015 testing # vmdshow 2018 testing # pymolproxy 2020 production # # The syntax is # register_server ?? { # commands... # } { # variables... # } # # Registers a server by at port . # When a connection is made to , is run. # Environment variables will be set before executing command. # # Note: Don't set DISPLAY here. nanoscale itself sets the DISPLAY # variable. # # Defaults: # - Server reads from file descriptor 0. # - Server writes to descriptor 1. # - Server stdout and stderr are redirected to a log file. # set exec_prefix "@exec_prefix@" set bindir "@bindir@" set libdir "@libdir@" # GeoVis -- # Server Type Map and globe renderer # Port 2015 # Threaded yes # Notes: # register_server geovis 2015 -output 3 -logstdout 0 -logstderr 0 { ${bindir}/geovis -o 3 -t 43260 -p ${libdir}/resources } { LD_LIBRARY_PATH ${libdir} OSGEARTH_DEFAULT_FONT /usr/share/fonts/truetype/liberation/LiberationSans-Regular.ttf __GL_SYNC_TO_VBLANK 0 } # NanoVis -- # Server Type Volume renderer # Port 2000 # Threaded yes # Notes: # register_server nanovis 2000 -output 3 -logstdout 0 -logstderr 0 { ${bindir}/nanovis -o 3 -t 43260 -p ${libdir}/shaders:${libdir}/resources } { LD_LIBRARY_PATH ${libdir} __GL_SYNC_TO_VBLANK 0 } # VtkVis -- # Server Type VTK based 3D renderer # Port 2010 # Threaded yes # Notes: # register_server vtkvis 2010 -output 3 -logstdout 0 -logstderr 0 { ${bindir}/vtkvis -o 3 -t 43260 } { LD_LIBRARY_PATH ${libdir} __GL_SYNC_TO_VBLANK 0 } # PymolProxy -- # Server Type Molecular layouts using Pymol viewer # Port 2020 # Threaded yes # Notes: # - Need PYMOL_SITE_PATH for parallelpiped box.py location. # - For debug tracing, redirect stderr of the proxy to a log file. # register_server pymolproxy 2020 -logstdout 0 -logstderr 0 -combinelogs 0 { ${bindir}/pymolproxy -t 43260 -- ${bindir}/pymol -p -q -i -x -X 0 -Y 0 } { PYMOL_SITE_PATH ${libdir}/pymol LD_LIBRARY_PATH ${libdir} __GL_SYNC_TO_VBLANK 0 } # VmdShow -- # Server Type Molecular layouts using VMD viewer (for mdshowcase) # Port 2018 # Threaded no # Notes: # - Commands are sent directly to the VMD process that uses custom # TCL code to process. # - Redirect input to descriptor 3: Otherwise VMD will get select hit. # - Redirect output to descriptor 4: Lots of information written to # stdout and stderr of VMD. Captured in log file. # - Executing binary without wrapper shell script. Requires VMDDIR set. # - Meshing programs surf and msms require explicit environment variables. # - Client doesn't send data files to VMD, but file paths. Unlikely # client will block on a large write. # register_server vmdshow 2018 -input 3 -output 4 -combinelogs 1 { ${libdir}/vmd/vmd_LINUXAMD64 -startup ${libdir}/vmd/vmdserver.tcl \ -args -stdio } { VMDDIR ${libdir}/vmd SURF_BIN ${libdir}/vmd/surf MSMSSERVER ${libdir}/vmd/msms STRIDE_BIN ${libdir}/vmd/stride __GL_SYNC_TO_VBLANK 0 }