[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 |
---|
[6403] | 11 | # geovis 2015 testing |
---|
[4044] | 12 | # vmdshow 2018 testing |
---|
[5042] | 13 | # pymolproxy 2020 production |
---|
[4044] | 14 | # |
---|
| 15 | # The syntax is |
---|
[4153] | 16 | # register_server <name> <port> ?<flags>? { |
---|
| 17 | # commands... |
---|
| 18 | # } { |
---|
| 19 | # variables... |
---|
[6622] | 20 | # } |
---|
[4044] | 21 | # |
---|
[4153] | 22 | # Registers a server by <name> at port <port>. |
---|
| 23 | # When a connection is made to <port>, <command> is run. |
---|
[6622] | 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: |
---|
[6622] | 30 | # - Server reads from file descriptor 0. |
---|
| 31 | # - Server writes to descriptor 1. |
---|
| 32 | # - Server stdout and stderr are redirected to a log file. |
---|
[4113] | 33 | # |
---|
| 34 | |
---|
[2348] | 35 | set exec_prefix "@exec_prefix@" |
---|
| 36 | set bindir "@bindir@" |
---|
| 37 | set libdir "@libdir@" |
---|
| 38 | |
---|
[6622] | 39 | # GeoVis -- |
---|
| 40 | # Server Type Map and globe renderer |
---|
| 41 | # Port 2015 |
---|
| 42 | # Threaded yes |
---|
| 43 | # Notes: |
---|
[6289] | 44 | # |
---|
[6622] | 45 | register_server geovis 2015 -output 3 -logstdout 0 -logstderr 0 { |
---|
| 46 | ${bindir}/geovis -o 3 -t 43260 -p ${libdir}/resources |
---|
[6289] | 47 | } { |
---|
| 48 | LD_LIBRARY_PATH ${libdir} |
---|
| 49 | OSGEARTH_DEFAULT_FONT /usr/share/fonts/truetype/liberation/LiberationSans-Regular.ttf |
---|
| 50 | __GL_SYNC_TO_VBLANK 0 |
---|
| 51 | } |
---|
| 52 | |
---|
[4153] | 53 | # NanoVis -- |
---|
| 54 | # Server Type Volume renderer |
---|
| 55 | # Port 2000 |
---|
| 56 | # Threaded yes |
---|
[6622] | 57 | # Notes: |
---|
[2384] | 58 | # |
---|
[6622] | 59 | register_server nanovis 2000 -output 3 -logstdout 0 -logstderr 0 { |
---|
| 60 | ${bindir}/nanovis -o 3 -t 43260 -p ${libdir}/shaders:${libdir}/resources |
---|
[2384] | 61 | } { |
---|
[2406] | 62 | LD_LIBRARY_PATH ${libdir} |
---|
[5041] | 63 | __GL_SYNC_TO_VBLANK 0 |
---|
[2384] | 64 | } |
---|
| 65 | |
---|
[4153] | 66 | # VtkVis -- |
---|
[6622] | 67 | # Server Type VTK based 3D renderer |
---|
[4153] | 68 | # Port 2010 |
---|
| 69 | # Threaded yes |
---|
| 70 | # Notes: |
---|
[4043] | 71 | # |
---|
[6622] | 72 | register_server vtkvis 2010 -output 3 -logstdout 0 -logstderr 0 { |
---|
| 73 | ${bindir}/vtkvis -o 3 -t 43260 |
---|
[4043] | 74 | } { |
---|
[4064] | 75 | LD_LIBRARY_PATH ${libdir} |
---|
[5041] | 76 | __GL_SYNC_TO_VBLANK 0 |
---|
[4043] | 77 | } |
---|
| 78 | |
---|
[6622] | 79 | # PymolProxy -- |
---|
| 80 | # Server Type Molecular layouts using Pymol viewer |
---|
[4153] | 81 | # Port 2020 |
---|
| 82 | # Threaded yes |
---|
| 83 | # Notes: |
---|
[6622] | 84 | # - Need PYMOL_SITE_PATH for parallelpiped box.py location. |
---|
| 85 | # - For debug tracing, redirect stderr of the proxy to a log file. |
---|
[4153] | 86 | # |
---|
[6622] | 87 | register_server pymolproxy 2020 -logstdout 0 -logstderr 0 -combinelogs 0 { |
---|
[6638] | 88 | ${bindir}/pymolproxy -t 43260 -- ${bindir}/pymol -p -q -i -x -X 0 -Y 0 |
---|
[2637] | 89 | } { |
---|
[2670] | 90 | PYMOL_SITE_PATH ${libdir}/pymol |
---|
[2637] | 91 | LD_LIBRARY_PATH ${libdir} |
---|
[5041] | 92 | __GL_SYNC_TO_VBLANK 0 |
---|
[2637] | 93 | } |
---|
[4011] | 94 | |
---|
[6622] | 95 | # VmdShow -- |
---|
| 96 | # Server Type Molecular layouts using VMD viewer (for mdshowcase) |
---|
[4153] | 97 | # Port 2018 |
---|
| 98 | # Threaded no |
---|
| 99 | # Notes: |
---|
[6622] | 100 | # - Commands are sent directly to the VMD process that uses custom |
---|
[4153] | 101 | # TCL code to process. |
---|
[6622] | 102 | # - Redirect input to descriptor 3: Otherwise VMD will get select hit. |
---|
| 103 | # - Redirect output to descriptor 4: Lots of information written to |
---|
[4153] | 104 | # stdout and stderr of VMD. Captured in log file. |
---|
[6622] | 105 | # - Executing binary without wrapper shell script. Requires VMDDIR set. |
---|
| 106 | # - Meshing programs surf and msms require explicit environment variables. |
---|
| 107 | # - Client doesn't send data files to VMD, but file paths. Unlikely |
---|
| 108 | # client will block on a large write. |
---|
| 109 | # |
---|
| 110 | register_server vmdshow 2018 -input 3 -output 4 -combinelogs 1 { |
---|
[4113] | 111 | ${libdir}/vmd/vmd_LINUXAMD64 -startup ${libdir}/vmd/vmdserver.tcl \ |
---|
[4131] | 112 | -args -stdio |
---|
[4011] | 113 | } { |
---|
[4097] | 114 | VMDDIR ${libdir}/vmd |
---|
| 115 | SURF_BIN ${libdir}/vmd/surf |
---|
[4152] | 116 | MSMSSERVER ${libdir}/vmd/msms |
---|
[4434] | 117 | STRIDE_BIN ${libdir}/vmd/stride |
---|
[4152] | 118 | __GL_SYNC_TO_VBLANK 0 |
---|
[4131] | 119 | } |
---|