You'll need a couple of things first:

Config for non-desktop (no CDE or JDS) session:
http://wiki.sun-rays.org/index.php/SRSS_Addon:_Kiosk_Mode_Generic_Session

Script to generate the selection dialog (designed for CAM, but works
great for SRSS 4.x Kiosk):
http://blogs.sun.com/ThinkThin/entry/cam_chooser_application

And two simple scripts:

start_uttsc.sh:

#!/bin/sh

/opt/SUNWuttsc/bin/uttsc -t 1800 -m -b -r disk:USBDRVS=$HOME/USBDRVS
<WTS_host_IP>

## End Script

start_xnest.sh:
(borrowed heavily from someone else on this list)

#!/bin/sh

HOST="<XDMCP host name>"
WINDOW_SIZE="1680x1050"
WINDOW_POS="0+0"
GEOMETRY=$WINDOW_SIZE"+"$WINDOW_POS

HIGHEST_DISP=`netstat -an -P sctp | grep X11 | awk '{print $NF}' | sort
-nut X -k 3,3 | tail -1 |sed 's/\/tmp\/.X11-unix\/X//'`
if [ "$HIGHEST_DISP" = "" ]; then
        HIGHEST_DISP="0"
fi

# add a small offset
FREE_DISPLAY=`expr $HIGHEST_DISP + 10`
/usr/openwin/bin/Xnest :$FREE_DISPLAY -pn -geometry $GEOMETRY -once
-query $HOST

## End Script

Download the kiosk mode generic session scripts and config and install
using the provided instructions.  Download the CAM chooser scripts and
save them and the above two shell scripts in an appropriate place.  I
use /opt/SunRayAddons/bin, myself.  Edit the shell scripts to use your
appropriate IPs and hostnames as necessary.

Here is an excerpt from my utsplash script for an example of customization:

## Begin
ICON=/opt/SunRayAddons/share/logo.xpm
BTN1="Windows Desktop"
BTN2="Linux Desktop"
BTN3="Restart"
MESSAGE1="Welcome to the Computing Lab"
MESSAGE2="Please select an application"
APP2RUN1="/opt/SunRayAddons/bin/start_uttsc.sh"
APP2RUN2="/opt/SunRayAddons/bin/start_xnest.sh"
## End

Note you can use any image you want for the ICON, it just needs to be in
xpm format.

Now that you have all the pieces, you need to enable them for your sessions.

In the admin tool, go to Advanced, and then Kiosk Mode, and click on the Edit button. Select "Generic X Session" for the Session setting, and in Arguments, enter the path to where you put the utsplash script. Click OK to save changes. If you use registered tokens for your DTUs, be sure to set the Session Type to Kiosk for all of them. I also had to do a warm restart at this point before the session setup change registered on my DTUs.

At the DTU, you should now see the chooser dialog. If you select one desktop and decide you want to return and use the other one, just cancel or exit out of the login and you'll be returned to the chooser. As a bonus, since the uttsc connection times out after 2 minutes, even if a user does not exit manually after logging out of their Windows session, the DTU will be automatically returned to the chooser once the timeout period ends. Unfortunately, XDMCP doesn't have this kind of timeout (that I've found so far), so lazy Linux users will leave the xdm/gdm greeter in place for the next user to cancel out of.

There you go. At this point, everything is working as I expect it to. I'm very happy with this setup. The main caveat with using Xnest for the XDMCP connection is Linux desktop users will not have access to audio or USB. If this is important to you, then you'll need to find a better remote connection solution than XDMCP.

The next thing I will be looking at is to build a more attractive chooser than the CAM chooser script. While it is perfectly functional and works great, it leverages dtksh and Xt/Xm CDE functionality, which is soon to be deprecated and not very pretty to look at by today's standards. I'd be very interested to hear if anybody already has a replacement that they'd be willing to share.

I hope this information is useful to someone chasing this down in the future.

Seth


CJ Keist wrote:
 > Seth,
   I would love to see how your setup your kiosk sessions.  I'm looking
at switching to kiosk mode here as well with users being able to choose
what OS they want to run in.



Seth Galitzer wrote:
I'll be glad to share full details of my solution, if you like.

Seth

William Usher wrote:
Thanks for posting the solution. We may be implementing this for a
client.


Seth Galitzer
Systems Coordinator
Computing and Information Sciences
Kansas State University
[email protected]
785-532-7790

_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users

Reply via email to