Prev | Current Page 322 | Next

Chris Tyler

"X Power Tools"

mgp as the slideset
# use display 20 for VNC
VNCDISPLAY=20 # VNC display number
HOST='' # VNC hostname
SLIDESET="index.mgp" # slide set to be used
MGPARGS="-t210" # mgp arguments, if desired (e.g., -G, -t)
GEOMETRY="800x600" # mgp geometry
# If an Xvnc server is already running, this will silently fail
Xvnc -securitytypes none -geometry $GEOMETRY \
-depth 24 :$VNCDISPLAY >/dev/null 2>&1 &
sleep 1
# Kill the existing mgp and vncviewer processes
killall mgp vncviewer
# Start a new mgp and vncviewer process
DISPLAY=$HOST:$VNCDISPLAY mgp $MGPARGS $SLIDESET &
MGPPID=$!
vncviewer $HOST:$VNCDISPLAY&
echo "MGP Process ID: $MGPPID" >/tmp/x
# Kill the server and viewer when mgp dies
wait $MGPPIG
killall Xvnc vncviewer
On the client machines, the script looked like this:
#!/bin/bash
#
# showvnc :: start a VNC viewer to follow podium presentation
VNCDISPLAY=20 # VNC display number
HOST='blue' # VNC hostname
exec vncviewer -viewonly $HOST:$VNCDISPLAY
14.17
14.17 Bypassing a Firewall 215
It would also be possible to use the Java VNC viewer and give out the URI to participants
at the start of the presentation if they??™re using their own equipment (such as
wireless laptops).
14.


Pages:
310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334