1 | # |
---|
2 | # This file is read by nanoscale to determine which ports to listen |
---|
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 |
---|
13 | # pymolproxy 2020 production |
---|
14 | # |
---|
15 | # The syntax is |
---|
16 | # register_server <name> <port> ?<flags>? { |
---|
17 | # commands... |
---|
18 | # } { |
---|
19 | # variables... |
---|
20 | # } |
---|
21 | # |
---|
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. |
---|
25 | # |
---|
26 | # Note: Don't set DISPLAY here. nanoscale itself sets the DISPLAY |
---|
27 | # variable. |
---|
28 | # |
---|
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 | |
---|
35 | set exec_prefix "@exec_prefix@" |
---|
36 | set bindir "@bindir@" |
---|
37 | set libdir "@libdir@" |
---|
38 | |
---|
39 | # GeoVis server (port 2015) -- |
---|
40 | # Map renderer |
---|
41 | # |
---|
42 | register_server geovis 2015 \ |
---|
43 | -output 3 -logstdout no -logstderr no \ |
---|
44 | { |
---|
45 | ${bindir}/geovis -o 3 -p ${libdir}/resources |
---|
46 | } { |
---|
47 | LD_LIBRARY_PATH ${libdir} |
---|
48 | OSGEARTH_DEFAULT_FONT /usr/share/fonts/truetype/liberation/LiberationSans-Regular.ttf |
---|
49 | __GL_SYNC_TO_VBLANK 0 |
---|
50 | } |
---|
51 | |
---|
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. |
---|
63 | # |
---|
64 | register_server nanovis 2000 \ |
---|
65 | -logstdout no -logstderr no \ |
---|
66 | { |
---|
67 | ${bindir}/nanovis -p ${libdir}/shaders:${libdir}/resources |
---|
68 | } { |
---|
69 | LD_LIBRARY_PATH ${libdir} |
---|
70 | __GL_SYNC_TO_VBLANK 0 |
---|
71 | } |
---|
72 | |
---|
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. |
---|
81 | # |
---|
82 | register_server vtkvis 2010 \ |
---|
83 | -output 3 -logstdout no -logstderr no \ |
---|
84 | { |
---|
85 | ${bindir}/vtkvis -o 3 |
---|
86 | } { |
---|
87 | LD_LIBRARY_PATH ${libdir} |
---|
88 | __GL_SYNC_TO_VBLANK 0 |
---|
89 | } |
---|
90 | |
---|
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 | # |
---|
100 | register_server pymolproxy 2020 \ |
---|
101 | -logstdout no -logstderr no \ |
---|
102 | { |
---|
103 | ${bindir}/pymolproxy ${bindir}/pymol -p -q -i -x -X 0 -Y 0 |
---|
104 | } { |
---|
105 | PYMOL_SITE_PATH ${libdir}/pymol |
---|
106 | LD_LIBRARY_PATH ${libdir} |
---|
107 | __GL_SYNC_TO_VBLANK 0 |
---|
108 | } |
---|
109 | |
---|
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 | # |
---|
126 | register_server vmdshow 2018 \ |
---|
127 | -input 3 -output 4 -combinelogs yes \ |
---|
128 | { |
---|
129 | ${libdir}/vmd/vmd_LINUXAMD64 -startup ${libdir}/vmd/vmdserver.tcl \ |
---|
130 | -args -stdio |
---|
131 | } { |
---|
132 | VMDDIR ${libdir}/vmd |
---|
133 | SURF_BIN ${libdir}/vmd/surf |
---|
134 | MSMSSERVER ${libdir}/vmd/msms |
---|
135 | STRIDE_BIN ${libdir}/vmd/stride |
---|
136 | LD_LIBRARY_PATH ${libdir} |
---|
137 | __GL_SYNC_TO_VBLANK 0 |
---|
138 | } |
---|