4.1. What's New

See Appendix A, Changelog for the list of bugs fixed in the Sun Ray Software 5.2.3 release update.

4.1.1. utkeylock Command

The utkeylock command can modify the state of certain locking modifier keys on a user's keyboard. Currently, only the NumLock key is supported. This command may be useful to invoke during session creation to enable NumLock for users who expect NumLock to be on by default, which is typical for Windows PCs. By default, the NumLock key is disabled on a Sun Ray Client.

See the utkeylock man page for details.

Note

The following configuration works for all kiosk sessions, but it does not work for sessions using the Gnome Display Manager through a regular session mode.

The following procedure describes how to enable the NumLock key for all Sun Ray sessions.

  1. Become superuser on the Sun Ray server.

  2. Change directory to the session initialization directory.

    • Solaris:

      # cd /usr/dt/config/Xsession.d
    • Linux:

      # cd /etc/X11/xinit/xinitrc.d
  3. Create one of the following customized scripts based on the result you want (the script is called utnumlock.sh in this procedure).

    • Enable the NumLock key when a session initializes.

      #!/bin/sh
      
      # Enable NumLock key for each session
      /opt/SUNWut/bin/utkeylock -n on 
       
    • Enable the NumLock key when a session initializes and on all subsequent connections through hotdesking.

      #!/bin/sh
      
      # Enable NumLock key on and make sure it stays on each time a user hotdesks  
      /opt/SUNWut/bin/utaction -i -c "/opt/SUNWut/bin/utkeylock -n on" & 
    Note

    For Linux, the script name must have the .sh extension, otherwise the script will not get sourced.

  4. Save the script and make the script executable for everyone.

    # chmod 775 utnumlock.sh