source: trunk/packages/vizservers/start_viz.sh.in @ 1970

Last change on this file since 1970 was 1278, checked in by gah, 15 years ago

vizservers/pymolproxy/pymolproxy.c

Added atomscale and projection commands.
Created buffered input layers between client-proxy, server-proxy.
Also created non-blocking buffered image layer between proxy-client.
This is a major update to the proxy. It should be more efficient.

vizservers/nanoscale/server.c

Removed broadcast feature. It's not being used. The server never
redirects the client to another host.

vizservers/start_viz.sh.in

Fixed sed script to replace the last octet of IP address with
broadcast 255.

vizservers/configure.in

Added test of Cg libraries and includes. Gentoo has moved them
from /usr/lib to /opt/nvidia-cg-toolkit/lib.

vizservers/nanovis/Makefile.in

Added locations of Cg libraries and headers.

  • Property svn:executable set to *
File size: 1.9 KB
Line 
1#! /bin/sh
2
3DISPLAY=:0
4export DISPLAY
5
6# Fail on errors
7set -e
8
9# Use the IP address of this host to construct a broadcast address.  This
10# feature will be hopefully going away very soon.
11
12broadcast=`hostname -i | sed 's/\.[0-9]*$/.255/'`
13
14render_dir="@prefix@"
15nanoscale_port=2000
16nanovis_port=2000
17pymol_port=2020
18
19# Build the name of the run directory. This is where nanoscale and the
20# visualization programs will reside.  The directory name is the same as the
21# render directory.
22dir="/tmp/`basename $render_dir`"
23
24
25PATH=${dir}/bin:$PATH
26LD_LIBRARY_PATH=${dir}/lib:$LD_LIBRARY_PATH
27PYMOL_PATH=${dir}/lib/pymol
28
29export PATH LD_LIBRARY_PATH PYMOL_PATH
30
31# Determine the number of video cards we have.  The new render server
32# motherboards have the useless XGI Volaria onboard video controllers (no 3D
33# capabilities) so we have to make sure we count only the nVidia cards.
34
35nvideo=`lspci | fgrep VGA | fgrep nVidia | wc -l`
36
37nanoscale="${dir}/bin/nanoscale -x ${nvideo} -b $nanoscale_port -s $broadcast"
38nanovis="${dir}/bin/nanovis -p ${dir}/lib/shaders:${dir}/lib/resources"
39pymolproxy="${dir}/bin/pymolproxy ${dir}/bin/pymol -p -q -i -x -X 0 -Y 0"
40
41# Copy from render directory if the run copy doesn't already exist.
42# Otherwise use what's there.  This means that successive invocations
43# of nanoscale won't create their own run directories (only the first
44# one will).
45
46if test -d "$dir" ; then
47  echo "Reusing previously installed version from $render_dir"
48else
49  echo "Copying rappture from $render_dir"
50  mkdir -p $dir
51  tar -C ${render_dir} -clf - . | tar -C $dir -xpf -
52fi
53
54cd ${dir}
55
56# Don't let nanoscale and the visualization servers run away.
57# Limit cpu time to 20 minutes.
58minutes=20
59ulimit -t $(expr ${minutes} \* 60 )
60
61echo "$nanoscale -l $nanovis_port -c \"$nanovis\" -l $pymol_port -c \"$pymolproxy\""
62$nanoscale -l $nanovis_port -c "$nanovis" -l $pymol_port -c "$pymolproxy"
63
Note: See TracBrowser for help on using the repository browser.