Open Access Sunray Scripts

kiosk.sh

#!/bin/sh
# Launch Firefox
# Firefox preferances set as root then copy root’s preferance to sunray prototypes folder
# cp -R /.mozilla /etc/opt/SUNWkio/prototypes/generic-session

i=1
while [ $i -le 10 ]
do
i=`expr $i + 1`
# Launch FireFox Browser (info screen mode via r-kiosk plugin)
/usr/bin/firefox -url file:///opt/SUNWutMenu/info.html
# Launch Authentication Menu
/opt/SUNWutMenu/menu.sh
done

# Reset Screen Rest to auto
/opt/SUNWutMenu/setres.sh auto

menu.sh

#!/bin/sh

/usr/openwin/bin/xsetroot -solid “#36566c”
/usr/sfw/bin/wish8.3 </opt/SUNWutMenu/menu.tcl

browse.sh

#!/bin/sh
HOST= dns or ip of terminal server(s)
EXTRAPARAMS=
DRIVEPARAM=”-r disk:usb=/tmp/SUNWut/mnt/$USER”
/opt/SUNWuttsc/bin/uttsc -a “c:\program files (x86)\internet explorer\iexplore.exe” -k en_GB -l en_GB $EXTRAPARAMS -m -b -O -r sound:high $DRIVEPARAM $HOST
kill -9 `ps -e|grep wish8.3|sed -e ‘s/^ *//’|cut -d ‘ ‘ -f1`

windows.sh

#!/bin/sh
HOST=dns or ip of terminal server(s)
EXTRAPARAMS=
DRIVEPARAM=”-r disk:usb=/tmp/SUNWut/mnt/$USER”
/opt/SUNWuttsc/bin/uttsc -k en_GB -l en_GB $EXTRAPARAMS -m -b -O -r sound:high $DRIVEPARAM $HOST
kill -9 `ps -e|grep wish8.3|sed -e ‘s/^ *//’|cut -d ‘ ‘ -f1`

5 Responses to Open Access Sunray Scripts

  1. Ceri Davies says:

    Does SUNWutMenu refer to a Sun package, or is that just a local name that you chose?

  2. Stephen Timson says:

    SUNWutMenu is just a folder where the scripts as stored, It makes it easier to maintain consistency between servers and stops our scripts getting mixed up with Sun’s packages.

  3. Adam says:

    Incidently, the folder itself is created automatically when you install the Sunray Server Software.

  4. Ceri Davies says:

    I didn’t get an /opt/SUNWutMenu with SRSS4.1; feeling cheated now 🙂

    Thanks for clarifying, I was just wondering if there was a useful package I’d missed.

  5. Adam says:

    Technically I regress; if memory servers correctly, SUNWutMenu is created automatically after configuration
    ./utconfig

Leave a Reply

Your email address will not be published. Required fields are marked *