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

Last change on this file since 1495 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
RevLine 
[749]1#! /bin/sh
2
3DISPLAY=:0
4export DISPLAY
5
[1231]6# Fail on errors
7set -e
8
[1265]9# Use the IP address of this host to construct a broadcast address.  This
10# feature will be hopefully going away very soon.
11
[1278]12broadcast=`hostname -i | sed 's/\.[0-9]*$/.255/'`
[1265]13
[1131]14render_dir="@prefix@"
[1111]15nanoscale_port=2000
16nanovis_port=2000
17pymol_port=2020
[985]18
[1131]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`"
[749]23
[1231]24
[753]25PATH=${dir}/bin:$PATH
[749]26LD_LIBRARY_PATH=${dir}/lib:$LD_LIBRARY_PATH
[760]27PYMOL_PATH=${dir}/lib/pymol
[1131]28
[760]29export PATH LD_LIBRARY_PATH PYMOL_PATH
[749]30
[1265]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
[1233]37nanoscale="${dir}/bin/nanoscale -x ${nvideo} -b $nanoscale_port -s $broadcast"
[1111]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
[1131]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).
[749]45
[1187]46if test -d "$dir" ; then
[1131]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
[749]54cd ${dir}
55
[1132]56# Don't let nanoscale and the visualization servers run away.
[1131]57# Limit cpu time to 20 minutes.
[852]58minutes=20
59ulimit -t $(expr ${minutes} \* 60 )
60
[1131]61echo "$nanoscale -l $nanovis_port -c \"$nanovis\" -l $pymol_port -c \"$pymolproxy\""
62$nanoscale -l $nanovis_port -c "$nanovis" -l $pymol_port -c "$pymolproxy"
[1111]63
Note: See TracBrowser for help on using the repository browser.