source: nanoscale/trunk/renderservers.tcl.in @ 5093

Last change on this file since 5093 was 4931, checked in by ldelgass, 9 years ago

Use file descriptor 3 for output in nanovis config (now supported by both the
release and trunk versions of nanovis)

File size: 3.9 KB
RevLine 
[4044]1#
[4153]2# This file is read by nanoscale to determine which ports to listen
[4044]3# to and the how to start the associated render server.
4#
5# Render servers
6#
7#       Server                  Port            Usage
8#       ======                  ====            =====
9#       nanovis                 2000            production
10#       vtkvis                  2010            production
11#       geovis                  2015            testing
12#       vmdshow                 2018            testing
[4624]13#       pymolproxy              2020            production
[4044]14#
15# The syntax is
[4153]16#       register_server <name> <port> ?<flags>? {
17#           commands...
18#       } {
19#           variables...
20#       }
[4044]21#
[4153]22# Registers a server by <name> at port <port>.
23# When a connection is made to <port>, <command> is run.
24# Environment variables will be set before executing command. 
[4044]25#
26# Note: Don't set DISPLAY here. nanoscale itself sets the DISPLAY
27#       variable.
28#
[4113]29# Defaults:
30#   o Server reads from file descriptor 0.
31#   o Server writes to descriptor 1.
32#   o Server stdout and stderr are redirected to a log file. 
33#
34
[2348]35set exec_prefix "@exec_prefix@"
36set bindir "@bindir@"
37set libdir "@libdir@"
38
[4043]39# GeoVis server (port 2015) --
[4011]40#     Map renderer
[2348]41#
[4115]42register_server geovis 2015 \
43    -output 3 -logstdout no -logstderr no \
44{
[4634]45    ${bindir}/geovis -o 3 -p ${libdir}/resources
[2348]46} {
[2406]47    LD_LIBRARY_PATH ${libdir}
[4306]48    OSGEARTH_DEFAULT_FONT /usr/share/fonts/truetype/liberation/LiberationSans-Regular.ttf
[4631]49    __GL_SYNC_TO_VBLANK 0
[2348]50}
51
[4153]52# NanoVis --
53#       Server Type     Volume renderer
54#       Port            2000
55#       Threaded        yes
56# Notes:
57#       o Continue to use default options until we offically upgrade
58#         nanovis to the latest release.  We are currently using a 1.2
59#         version of nanovis.
60#       o Requires change to 1.2 nanovis.  Can't redirect stderr to log
61#         or X will complain about performing socket operation on non-socket
62#         descriptor.
[2384]63#
[4155]64register_server nanovis 2000 \
[4931]65    -output 3 -logstdout no -logstderr no \
[4155]66{
[4931]67    ${bindir}/nanovis -o 3 -p ${libdir}/shaders:${libdir}/resources
[2384]68} {
[2406]69    LD_LIBRARY_PATH ${libdir}
[4631]70    __GL_SYNC_TO_VBLANK 0
[2384]71}
72
[4153]73# VtkVis --
74#       Server type     3D drawings (scene graphs). Contour and surface graphs.
75#       Port            2010
76#       Threaded        yes
77# Notes:
78#       o Removed ${vtkdir} from LD_LIRBRARY_PATH. Not needed with VTK 6.
79#       o Using new features in nanoscale/vtkvis to use file descriptor 3
80#         for server output.  No automatic logging of stdout and stderr.
[4043]81#
[4115]82register_server vtkvis 2010 \
83    -output 3 -logstdout no -logstderr no \
84{
85    ${bindir}/vtkvis -o 3
[4043]86} {
[4064]87    LD_LIBRARY_PATH ${libdir}
[4631]88    __GL_SYNC_TO_VBLANK 0
[4043]89}
90
[4153]91# PymolProxy --
92#       Server type     Molecular layouts using Pymol viewer.
93#       Port            2020
94#       Threaded        yes
95# Notes:
96#       o Need PYMOL_SITE_PATH for parallelpiped box.py location.
97#       o Makes no sense to log stdout and stderr of the proxy.
98#       o Renamed to just pymolproxy and removed non-threaded entry.
99#
100register_server pymolproxy 2020 \
[4113]101    -logstdout no -logstderr no \
102{
[4593]103    ${bindir}/pymolproxy ${bindir}/pymol -p -q -i -x -X 0 -Y 0
[2637]104} {
[2670]105    PYMOL_SITE_PATH ${libdir}/pymol
[2637]106    LD_LIBRARY_PATH ${libdir}
[4631]107    __GL_SYNC_TO_VBLANK 0
[2637]108}
[4011]109
[4153]110# VmdShow --
111#       Server type     Molecular layouts using VMD viewer (for mdshowcase).
112#       Port            2018
113#       Threaded        no
114# Notes:
115#       o Commands are sent directly to the VMD process that uses custom
116#         TCL code to process.
117#       o Redirect input to descriptor 3: Otherwise VMD will get select hit.
118#       o Redirect output to descriptor 4: Lots of information written to
119#         stdout and stderr of VMD.  Captured in log file.
120#       o Executing binary without wrapper shell script. Requires VMDDIR set.
121#       o Meshing programs surf and msms require explicit environment variables.
122#       o __GL_SYNC_TO_VBLANK probably doesn't matter.
123#       o Client doesn't send data files to VMD, but file paths.  Unlikely
124#         client will block on a large write. 
125#       
[4113]126register_server vmdshow 2018 \
[4152]127    -input 3 -output 4 -combinelogs yes \
[4113]128{
129    ${libdir}/vmd/vmd_LINUXAMD64 -startup ${libdir}/vmd/vmdserver.tcl \
[4131]130        -args -stdio
[4011]131} {
[4097]132    VMDDIR ${libdir}/vmd
133    SURF_BIN ${libdir}/vmd/surf
[4152]134    MSMSSERVER ${libdir}/vmd/msms
[4434]135    STRIDE_BIN ${libdir}/vmd/stride
[4043]136    LD_LIBRARY_PATH ${libdir}
[4152]137    __GL_SYNC_TO_VBLANK 0
[4131]138}
Note: See TracBrowser for help on using the repository browser.