There is a Project Wonderland community member who is having trouble
running a script using Wonderland 0.4
on OpenSolaris 11-2008. Does anyone know what is going on here? It looks
like bash might be complaining
about the ':2' argument but I have no idea why. Another person ran this
on OpenSolaris 5-2008 and it worked
fine.
mg at opensolaris:~/Wonderland/lg3d-wonderland$ ./src/scripts/runxremwin :2
: invalid option
Usage: /bin/bash [GNU long option] [option] ...
/bin/bash [GNU long option] [option] script-file ...
GNU long options:
--debug
--debugger
--dump-po-strings
--dump-strings
--help
--init-file
--login
--noediting
--noprofile
--norc
--posix
--protected
--rcfile
--restricted
--verbose
--version
--wordexp
Shell options:
-irsD or -c command or -O shopt_option (invocation only)
-abefhkmnptuvxBCHP or -o option
His version of bash is:
mg at opensolaris:~/Wonderland/lg3d-wonderland$ bash --version
GNU bash, version 3.2.25(1)-release (i386-pc-solaris2.11)
Copyright (C) 2005 Free Software Foundation, Inc.
Here is the script runxremwin:
#!/bin/bash -f
#
# runxremwin <display>
#
# Start the remote window X server with the given display arguments.
# Other arguments are determined based on the platform.
usage()
{
echo "runxremwin <display> [path-to-Xvfb]"
exit 1
}
# For Debug
#export REMWIN_CLIENT_MANAGER_DEBUG=1
#export REMWIN_SHUT_DOWN_TIMEOUT=2
# Set this to run gdb on the server
DEBUG_XS=0
# Set this to enable run-length encoding
export XREMWIN_USE_RLE=true
# SCRIPTDIR=`dirname $0`
# . ${SCRIPTDIR}/setup
if [ -e /usr/share/fonts/X11 ]; then
# Debian Etch and Ubuntu Edgy
# Note: fix for 705: this we need to check for
# this directory first because upgrading from
# Dapper to Edgy leaves a stale Dapper font
# directory (/usr/share/X11/fonts) around.
FP=/usr/share/fonts/X11
COARG="-co /usr/share/X11/rgb"
else
if [ -e /usr/share/fonts/100dpi ]; then
# Gentoo Sabayon
FP=/usr/share/fonts
COARG="-co /usr/share/X11/rgb"
else
if [ -e /usr/share/X11/fonts ]; then
# Base system is Xorg 7.0 (e.g. FC5, Dapper)
FP=/usr/share/X11/fonts
if [ -e /usr/share/X11/rgb.txt ]; then
# Fedora Core 5
COARG="-co /usr/share/X11/rgb"
elif [ -e /etc/X11/rgb.txt ]; then
COARG="-co /etc/X11/rgb"
else
echo "Error: Cannot determine location of the X11 color
names file"
COARG=""
fi
else
# Base system is pre-Xorg 7.0 (e.g. SUSE 9.1, FC4, Breezy)
FP=/usr/X11R6/lib/X11/fonts
COARG=""
fi
fi
fi
if [ `uname` == SunOS ]; then
XS_PATH="./ext/solaris/bin"
else
XS_PATH="./ext/linux/bin"
fi
XS_EXEC="Xvfb"
if [ $# -gt 1 ]; then
XS_PATH=$2
fi
# The dimensions this is started with should eventually be the width and
height of
# the user display (or maybe 4000x4000)?
XS_ARGS="$1 -screen 0 1600x1200x24 -remwin +extension Composite -fp
$FP/misc,$FP/misc:unscaled,$FP/75dpi,$FP/75dpi/:unscaled,$FP/Type1,$FP/75dpi,$FP/URW,$FP/Speedo,$FP/truetype,$FP/uni:unscaled,/opt/kde3/share/fonts,/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType
$COARG"
XSERVER="$XS_PATH/$XS_EXEC"
# For DJ debug
#XSERVER="/home/dj/xorg/git/13/xserver/hw/vfb/$XS_EXEC"
XS_CMD="$XSERVER $XS_ARGS"
# Start the X server
# export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${LGX11HOME}/exports/lib"
unset XAUTHORITY
if [ "$DEBUG_XS" == "1" ]; then
gdb $XSERVER
else
if [ ! -e $XSERVER ]; then
echo "ERROR:"
echo "Cannot find Xvfb executable: $xserver."
echo "Either the environment variable LGX11HOME is not set properly"
echo "or lg3d-core was not built properly with X11 support."
echo "For instructions on how to build lg3d-core with X11 support"
echo "refer to the Project Looking Glass Developers Guide."
exit 1
fi
($XS_CMD)
fi