Charles Herbig schrieb:
I've recently made the jump from Sun Ray 3.1 to 4, and I'm trying to
automate setting up and configuring Sun Ray servers. I have successfully
set up a kiosk application in /etc/opt/SUNWkio/sessions/myapp.conf, but
I can't figure out how to configure my application to be run from the
command line. Running kioskconfig like this only results in an error:
# kioskconfig enable -c /etc/opt/SUNWkio/sessions/myapp.conf
Error: Can't access the display file '/etc/opt/SUNWkio/displays'
The kioskconfig tool is part of the basic, Sun Ray agnostic Kiosk
Service. It can only be used to configure well-known display numbers of
static X servers for kiosk use.
Sun Ray Server Software uses this tool underneath to configure the
session for the displays it creates.
Additionally your approach misses an extra indirection, probably due to
some naming confusion: Your myapp.conf file (according to its location)
is a kiosk session descriptor (as described in the kiosk(5) man page).
kioskconfig (and utkiosk - see below) expect a 'session.conf' file,
which could have any name, but should not reside in
/etc/opt/SUNWkio/sessions (see session.conf(4)).
The displays files doesn't exist, but I can successfully set up my
application using the web GUI, which doesn't help for scripting this.
Any help will be very appreciated.
To configure your script as session for Sun Ray Kiosk Mode, use the
utkiosk tool from SRSS. That script also needs a session.conf file as
input. To configure your 'myapp' session in a script, you may use:
SESSIONCONF=/tmp/session.conf.$$
echo "KIOSK_SESSION=myapp" > $SESSIONCONF
/opt/SUNWut/sbin/utkiosk -i session -f $SESSIONCONF
See the utkiosk(1M) man page for more detail. You can use 'utkiosk -e
session' to view the session.conf contents generated by the web GUI.
- Jörg
--
Joerg Barfurth
Software Engineer mailto:[EMAIL PROTECTED]
Desktop Technology
Thin Client Software http://www.sun.com/software/sunray/
Sun Microsystems GmbH http://www.sun.com/software/javadesktopsystem/
Sitz der Gesellschaft:
Sun Microsystems GmbH, Sonnenallee 1, D-85551 Kirchheim-Heimstetten
Amtsgericht Muenchen: HRB 161028
Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Dr. Roland Boemer
Vorsitzender des Aufsichtsrates: Martin Haering
_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users