Customized Sun Ray kiosk sessions

Have you ever tried to customize your Sun Ray installation to display different 'things' for different Sun Rays and users' cards?
Yeah, it's not so complicated if you know shell, SRSS commands and have some time.

Some people don't have above or just are to lazy (as me;-] - different configs for every PoC) to do that over and over again.
So I have created some scripts which allow to easily define/change what should be displayed on:
- each Sun Ray without card
- each card inserted into any Sun Ray.
To make it not so complicated all configuration is done via Sun Ray Server Administration GUI.

So, in general, what can be displayed? Almost anything you would want;):
- full Windows/Solaris session
- single Windows/Solaris application
- menu with some Windows/Solaris applications
- wallpaper - ie. to see your girlfriend photo if card is not inserted
- images slideshow - ie. reception desk or tradeshow.

Additionally You can control (via GUI too) if USB storage, Serial devices or printers directly
(network printers too) connected to particular Sun Ray should be visible in users' Windows session.

All info what and how is described HERE in how_to_install and how_to_use files. Scripts are HERE.
Generally at there are some more files (install guide, Sun Ray configs for Win and Linux DHCP servers, recommended patches, etc.). I change/upgrade them from time to time, so RSS just can't stand to automatically notify You about changes ;)

Comment, question, need some other function? Fell free to email me.

Have fun!


Very nice ! Tnx a lot ! Some of this things we already used on customer production side , but you give some nice ideas about usage of well-known-features !

Posted by Ilya Tyshchenko on September 03, 2008 at 06:50 AM CEST #

I'm happy that can help;). Feel free to use/change/develop.

Posted by mplona on September 03, 2008 at 07:19 AM CEST #

This is great. What are the chances this functionality will be built-in to SRSS in a future release? I would like to see slideshow, logo, fullscreen, and menu functions as first class citizens in SRSS. Enhancing the Sun Ray Administration to include the proper fields for each function with validation when possible instead of using the "Other Information" field would be wonderful. Much appreciated!

Posted by Patrick L Archibald on September 09, 2008 at 05:38 PM CEST #

With SRSS 4.1 one can be able to use different kiosk sessions for different tokens. Then You could create your own kiosk sessions (your own versions of logo,slide,etc).
"Other Info" - its just a place to put an info what to do for particular token. It might be there, in flat file, LDAP, Active Directory or wherever. Don't think that there will be 'special config place' in SRSS 4.1 GUI.

Posted by mplona on September 11, 2008 at 03:27 AM CEST #

Great tips! I just need a little clarification as I start to play with this. My plan is to use "menu2" and let the user choose between a Windows (uttsc) or Linux (xnest) desktop. Am I assuming correctly that adding "usb" to the other info for a DTU, that's doing the same thing as explicitly adding "-r disk:USBDRVS=$HOME/USBDRVS" to the commandline for uttsc? And to call uttsc from menu2, do I need to do anything special if I want additional cli options? Also, when using menu[2-8], you say to put a custom background file in /background.jpg. Is that the actual filesystem root, or somewhere else? Thanks for the concise guide. It is extremely helpful.

Posted by Seth Galitzer on September 11, 2008 at 05:23 PM CEST #

USB - yes it just adds "-r disk..." to `uttsc`
menu2 additional options-feel free to check - should work;). Do You want to run full screen Win or just some application?
/background.jpg - yes it's in the root filesystem (/) of Sun Ray server

Posted by mplona on September 14, 2008 at 11:44 AM CEST #

Hi! Thanks a lot. I actually tried out your package esp the USB flashdrive part. It worked well in Windows (uttsc).

I also tried using the USBDRIVED daemon (v2) found somewhere else and it worked well with it showing only 1 object/folder in the folder redirected path in windows per USB object.

Posted by James Tan on September 15, 2008 at 09:22 AM CEST #

Yes, those 2 dirs are known issue but (as of now) its the way `uttsc` works. I'm going to fix it soon anyway. Keep watching;)

Posted by mplona on September 17, 2008 at 02:19 AM CEST #

Great Work,

I wonder if it´s possible to include the use of the utresadm in your script, for changing the user resolution on the SR where he is connected.

Thanks for all.

Posted by Gopar on September 18, 2008 at 07:28 AM CEST #

What do You want to achieve? If something like-some people have to have different screen resolutions use "utxconfig -r 800x600 -t TOKEN" when assigning them cards. Keep in mind that TOKEN for 'registered cards' is a 'logical token' - `utwho -a` vs. `utsession -p`.
If it doesn't answer your question - mail me off-blog;)

Posted by mplona on September 18, 2008 at 07:56 AM CEST #

I have six Sun Ray servers serving 175 DTU's, all configured for failover and each configured to serve 35 kiosk sessions, but some DTU's display error (Kiosk session error) while trying to connect a Server which has already served 35 clients, while as the sessions on the other servers are available.
How can I solve this issue., I think the failover is not working properly.

Posted by Sadiq on December 14, 2008 at 11:55 AM CET #

'kiosk error' - what the log files say
'failover' - what 'utreplica' and logs say?
Mail me off-blog

Posted by mplona on December 15, 2008 at 01:43 AM CET #

Do you have a script to call Citrix wfica client instead of the uttsc?
The RDP protocol is just not good enough to display Adobe PDF and play Flash content.
Do you have a Citrix kiosk script that I can use? I have asked ThinkThin and he doesn't have anything.
I am puzzled why no-one is doing this, RDP is not good enough over Sun Ray until basic PDF and Flash viewing is as good as viewing it on a PC.
Thanks to anyone who has a solution to the issues I'm having running RDP over Sun Ray.
Many more thanks to someone who has a working kiosk script for Citrix ICA.

Posted by Green Data Centre on December 28, 2008 at 07:14 PM CET #

i try to do windows autologon.

I have follow your guide in "" where i put full,hendro,userpasswd,local, on the token properties where is my windows server i like to connect to. After that i do a cold restart on the sunray server.

Unfortunately i still get the windows server login screen. please help.

my configuration as follows:

sun ray software 4.1
windows connector version 2.1
dtu is sun ray 270 without using any card

Posted by hendro on January 13, 2009 at 03:40 AM CET #

I dont have Citrix version. However feel free to exchange in `uttsc` with `wfica`. Of course you'd have to tune options for command too. ;(

Are you sure there are no spaced between words and you are editing pseudo. token, not for card (Payflex.)?
You dont have to cold restart. Restart token session is enough.

Posted by mplona on January 14, 2009 at 08:09 AM CET #

Thanks for the great kiosk session. It has saved me lots of time.

There is one issue that I'm having which is related to DTU resets. I'm noticing that the DTU is being reset every minute when there is no one logged in. Do you know what might be causing this?

Posted by Victor on February 02, 2009 at 02:35 PM CET #

The timeout is exactly 30 seconds between resets. Is there a way to increase this timeout? The -t option available to uttsc is not affecting the reset. The timeout should be set by the session script before launching uttsc.

The uttsc session script launches the uttsc program inside of a while loop and checks that the session hasn't been idle for a specified amount of time. I could transfer this logic to your script but if you've already done this I'd rather not re-invent the wheel.

Posted by Victor on February 03, 2009 at 02:47 PM CET #

The only timeout which I remind is 3 minutes when displaying Windows login screen. Without logging into Win, Win itself (we cant change it) resets that connection after 3 minutes of inactivity. It a way to protect Win against DOS attacks.
Does it happen for all Sun Rays? If not, what is written in "other info"? What version of OS, SRS and SRS' patches?

Posted by mplona on February 04, 2009 at 12:30 AM CET #

It happens for Sun Ray 170, 1G, and 2FS. So yes, it seems to be happening for all of the Sun Rays we have in the office.

The OS is OpenSolaris 11 svn_104 and the SRS version is 4.1 with no patches.

The other info looks like this:


Thanks for the help!

Posted by Victor on February 04, 2009 at 08:11 AM CET #

It wasn't tested agains OpenSol (only 'regular' Solaris), however should work.
Have you followed ?
What about setting user name in 'other info'?

Posted by mplona on February 04, 2009 at 08:16 AM CET #

Setting the user name did not fix the reset issue but it did solve another problem I had. I noticed that without setting the user name in "other info", a logged in user which had locked their session would prevent another user from logging on. Only the original user whose session was locked could unlock the screen. When I added a user name to "other info" there appeared a second button on the screen to log on as another user when the Sun Ray initially boots up and also when the session is locked by a logged in user. At least that's fixed. :)

Any other ideas on the reset issue? Thanks for the URL to SRSS on OpenSolaris.

Posted by Victor on February 04, 2009 at 09:50 AM CET #

Sorry, part of my last post is incorrect. I didn't test it thoroughly. In fact, if a logged in user locks his session, he is the only one that can unlock the screen. Is there a way to allow another user to log into the same Sun Ray DTU which has been locked?

Posted by Victor on February 04, 2009 at 09:55 AM CET #

reset issue - no idea. Pls try to install demo_kiosk on some 'regular' Solaris (might be virtual machine of any kind) and test. You'll know if thats OpenSol or something else.

Other user logging in - of course, give second user a card.;-)

Posted by mplona on February 05, 2009 at 01:23 AM CET #

Hello there. First, thanks for an incredibly useful script! It works flawlessly on my Sol10U6. However, I'm trying to use it with a RHEL 5.2 install and it's not working for me. I have a simple app,/usr/bin/firefox (same as my Sol install) and I keep getting an error about an invalid kiosk session. Has anyone been able to get this to work under RHEL?


Posted by Gerard Martin on February 23, 2009 at 01:45 PM CET #

It was checked against Solaris only.
Linux will work (all commands are in Linux too) but AFTER some script adjustments (ie. different commands arguments, commands output formatting and so on).

I propose to install Solaris (ie with virtualbox), install demo_kiosk, check abilities, decide which part of configuration is exactly needed. Then I can point You which part of scripts is needed to 'check' against Linux.

Posted by mplona on February 23, 2009 at 02:04 PM CET #

Thanks for the quick reply. I have a RHEL install that I'm trying to force Firefox to all users. The exact error I'm getting is: "Error starting Kiosk Session: Invalid Kiosk Session Configuration". This is after a clean install of demo_kiosk. The only ability I need is to force Firefox to all users. Thanks!

Posted by Gerard Martin on February 23, 2009 at 02:18 PM CET #

Why don't you use 'regular' kiosk then?

Posted by mplona on February 24, 2009 at 02:26 AM CET #

Thank you very much for the "demo" is very good, and we are using is going very well.
Only two requests.
In Windows. Redirection with usb pendrive not work for me.
It is possible to place the screen resolution is at a "full" for Windows?.
Thank you very much.
And sorry for my english.

Posted by Luis on April 06, 2009 at 10:23 AM CEST #

USB-after plugging in does your Solaris see a pendrive(`mount` command)? If YES check all spaces and commas in www interface where you put your USB keyword, and log out/in from Windows. There should be new network drive in 'My Computer'.
RES - YES, look in comments above. Seek for "utxconfig".

Posted by mplona on April 07, 2009 at 03:36 AM CEST #

Thank you very much for reply.
Pendrive and function. In some cases I had, first, put the pen on the server, and then directly in the sunrays.
On the subject of the resolution standing for what I got here:
mplona. thank you very much.

Posted by Luis on April 23, 2009 at 09:39 AM CEST #

How do we remove the "PL" logo from the windows screen? Also, is there any way to have specific DTU's directed to a different TS server 'only after' the Payflex card has been inserted without having to register the payflex card and assign it to the TS server directly?

Posted by costa on May 11, 2009 at 02:06 PM CEST #

pls help me, my boss bought a sun ray 270(5pcs) and two ultra 20 to be a sun ray server.
here is my scenario.....

i have 2 server. one is solaris server that holds/installed the sun ray software. and the other server is windows 2003 server.(these 2 servers are the ultra 20).
my problem is i cannot see my usb thumbdrive when i inserted at the sun ray 270 client. but i already tried to insert at the windows 2003 server and it was detected.
my client os running in vmware in my win 2003 server are win xp,win vista, ubuntu.

badly needed your help..hope you will enlighten me..


Posted by del narud on May 12, 2009 at 08:13 AM CEST #

Has anyone experienced issues when the username (under "Owner" in token registration) has a space, hence; "lastname firstname". It fails to pass the full information to the VMView server on logon. Hence when that user inserts the smartcard, it displays only LASTNAME in the User Name field.

Posted by Eduardo on May 19, 2009 at 07:15 AM CEST #

PL keyboard-in /etc/opt/SUNWkio/sessions/demo/ change all references to "pl-PL" in lines with $UTTSC according to your language.
Other TS server-yes its possible, but in some time you must decide to which TS server (IP address) you'd like to direct your DTU to. I decided to have all info in one place (Sun Ray datastore) before(!) first connection.

Have you followed my instructions in srs4_usage.pdf? First try with Win Server, then with XP or Vista. USB drive forwarding works only with RDP connections so it's Microsoft only solutions (however haven't tried VirtualRDP under VirtualBox).

My scripts work directly(!) with Windows OSes. If you'd like to use VMware View - pls refer to product.

Posted by mplona on May 19, 2009 at 08:19 AM CEST #

thanks for the localization information on the script. Also, the USB printer redirection does not seem to work. I created the print queue on the solaris server and then followed the driver instructions on the windows side. I also checked all the spellings on the Desktop screen 'other information' and all seems to be correct. When i log into windows, there is no printer being mapped. Any help would be appreciated. thanks!

Posted by costa on May 19, 2009 at 03:49 PM CEST #

Strange... My shots below:
1.Try generic Windows driver - 'HP Color LaserJet 8500 PS'. Pls mind spaces and capital letters in driver name.
2.In 'other info' for particular SR try to change order of keywords 'usb', 'serial', etc. or try deleting everything except one print driver above.
Pls post results. Thanks!

Posted by mplona on May 21, 2009 at 01:43 AM CEST #

I have been suing this script in SRSS 4 and 4.1 but now we have upgraded to VDI.

I think the installation needs to be changed, which is not difficult and use it with the override command. Is there any information for any known issues.

Thanks again for all your your help as always.

Posted by Imran Khan on August 09, 2009 at 10:07 AM CEST #

Haven't tried but dont think there should be any issues with that. If you 'kioskoverride' you still change only Sun Ray Server Software configuration (and only for particular cards), no VDI, VirtualBox or VMware.

Posted by mplona on August 11, 2009 at 08:29 AM CEST #

I'd like to include a firefox browser as well. I've come close, but still continue to have issues getting it to work inside of your demo. I've found the following helpful, but not complete for the implementation I'm attempting.,,

Would it be possible for you to update your notes to discuss how to do this within your demo?

Posted by David Cox on October 07, 2009 at 06:45 PM CEST #

Still would be nice to have in a formal write-up, but I got it working with a little more wiki reading and the links added in comment before. Thanks again. Hopefully we'll be using all aspect of your demo. I've got slide show photos for the lobby, kiosk Firefox/card firefox for limited access, Regular access cards, security is now more locked down, terminal server access to MS terminal server and Sun access, Will probably go production soon with 30 ish Sun Ray's to start, then 60, then as many more as I can make a case. May be part of our disaster recovery solution as well. Many thanks again, this is a well kept secret that all this works so well. We'll save tons on maintenance, can't wait to see it all in place.We're also looking at this as a possible network at events where renting/setting up many kiosks is so costly.

Posted by David Cox on October 09, 2009 at 10:29 AM CEST #

Sorry for delay-conferences... Firefox-from which OS you wanted to run it from? What have you seen(some error, just doesnt start)? Which keyword you wanted to use? Each year I prepare config for some big TV event with 50 kiosked, Solaris Firefoxes - works flawless (with Adblock, FlashBlock and R-kiosk). Give some more details and will try to help.

Posted by mplona on October 14, 2009 at 03:41 AM CEST #

Is there are way to have a default terminal server configured when no iformation is put in the 'Other Information' section for the tokens? We want the users to self register when they log in for the first time, but we also want the majority of them to connect to the same TS farm. the exceptions would be configured via the other information field when needed.


Posted by Costa on October 14, 2009 at 09:20 AM CEST #

To set OFF screensaving for ALL SLIDE sessions place a line:
/usr/openwin/bin/xset -dpms -fbpm s off
in just before line
Out of the box-not, but it could be configurable.Is that a problem to place (by you) each card and register it before giving to the user?;)

Posted by mplona on October 15, 2009 at 02:41 AM CEST #

I already have alot of users 400+ with unregistered cards being used and in order to implement your script, i would have to have them self register each card the next time they log in. but once they do that, i will then have to manually fill in the "other information" field with the TS environment that they need to conncect to or else they will get the 'missing token' error. It is more of a transition/migration problem than anything else. Going forward we would do each card individually.

Posted by Costa on October 15, 2009 at 09:14 AM CEST #

Costa, place a line below
\*) $UTTSC -m -b -n "$NAME" ;;
instead of
\*) $ZENITY --error --text="Wrong token's description in Tokens tab!" ;;
in If "Other Info" will be empty or contain not recognized string a Win login screen will be shown. Pls post an info if helped.

Posted by mplona on October 19, 2009 at 02:54 AM CEST #

Thanks! that worked like a charm.

Posted by Costa on October 19, 2009 at 12:13 PM CEST #

I've got this working fine on a Solaris 10 Sparc installation, but doesn't seem to work on Solaris 10 x86. Any ideas (Sun Ray 5 EA 2)?

Posted by David Cox on October 19, 2009 at 02:00 PM CEST #

To check - publish 1 app - 'app,/usr/bin/gnome-terminal', when terminal is run type in its window '/usr/openwin/bin/xset -dpms -fbpm s off' and check if the screensaver is off, if not-modify arguments. First try to set it to 2seconds-youll see if it works in general (man xset).When you'll finish copy that line to

Posted by mplona on October 20, 2009 at 03:00 AM CEST #

Hi mplona

I need urgent your scripts from the "demo_kiosk" package.
i'd like to do Autologin into an MS Windows Terminalsserver attached to an Payflex-Token.

Posted by Nic on October 28, 2009 at 10:06 AM CET #

Have you read post at the top of that page? ;-)
In short-RTFM;-))))) and especially

Posted by mplona on October 28, 2009 at 01:30 PM CET #

Hi mplona

Sorry the links was wrong on this page. but yet I found everything ... thanx.

... Nic

Posted by Nic on October 29, 2009 at 02:41 AM CET #

Hi mplona

Everything works fine also unter srs 4.2. Now the problem is I need this solution „Autologin“ for VDI 3.1. There are already approaches for ?
It‘s urgent because I have a cutomer with over 1000 users on the hook.

Another question from my customer is, if we can set a PIN on the Smartcard without to setup a PKI-Infrastruktur in the domain.

Thanx for your help.

Posted by Nic on November 02, 2009 at 05:45 AM CET #

If you need VDI just for creating virtual machines, you could access those machines via my scripts with autologin built-in:
- install my scripts after installing VDI
- set `full` keyword with users passwds for everybody
PKI - if you need to use PKI from card you need PKI infrastructure installed somewhere. Qustion is - do you really need PKI? Pls explain what do you want to achieve?

Posted by mplona on November 03, 2009 at 07:33 AM CET #

I setup the print queue in Solaris and followed the instruntions for windows and the printer maps into the windows environment without a problem. But when we print, we get the following error in Solaris:

"Failed to open printer port. (Permission denied) <EOT>

the message keeps repeating until i issue the 'cancel' command.

Any help would be greatly appreciated.

Posted by Costa on November 10, 2009 at 08:54 AM CET #

To be honest - no idea;-). Try to:
- install latest Recommended Patches
- review logs - /var/adm/messages and /var/spool/lp/logs

Posted by mplona on November 12, 2009 at 02:24 AM CET #

The problem was related to a faulty usb port on the printer. we replaced the printer with a new one and the script worked great. thanks again for the help.

Posted by Costa on November 12, 2009 at 07:46 AM CET #


I created the printer queue in Solaris:
lpadmin -p printer -v PATH-TO-DTU-UNIT dev printers Canon14351C -I any -o banner=never

then i enabled the printer:
usr bin enable printer

and accept the queue:
usr sbin accept printer

an lpstat -t shows me:
scheduler is running
no system default destination
device for printer: PATH-TO-DTU-UNIT dev printers Canon14351C
printer accepting requests since Wed Dec 02 10:24:56 2009
printer printer idle. enabled since Tue Dec 01 11:49:59 2009. available.

the printer is showing in the desktop units tab and i edit the other filed with:
printer=Canon iP2600 series

also edit in the other filed of the DTU: usb

and installed the driver on the windows machine and followed the how to like you described it.

but the printer is not attached after reloging?

my Windows XP is on a VMWare ESX and im sure USB is enabled because USB-Sticks are working...

info: i need to write without special chars because html syntax is not allowed here.

i appreciate any help
best regards,

Posted by Thom on December 02, 2009 at 03:57 AM CET #

Try to put in DTU's 'Other Info' text-"printer=HP Color LaserJet 8500 PS" (no other printers and usb, only text above)and check if printer shows under Win. If yes-did you use exact(!) driver name before? Does it have 1 or double spaces between words?

Posted by mplona on December 03, 2009 at 02:15 AM CET #

it works like a charm. it was a typo :D
Another question: am i right, that the other field will be read from uttsc?

if yes, whats the syntax to map printers?
uttsc -r printer:queue-name="driver" ?

this doesn't work for me with the VMware View Connector.

and to map a printer is no USB device redirection feature needed? actually, if the redirection feature is installed, plugged in usb devices should be autom. redirected to the windows client with the new release (4.2 and windows connector 2.2) and therefore is no uttsc parameter needed anymore?

thanks for fast reply

Posted by Thom on December 03, 2009 at 03:10 AM CET #

1. Yes.
2. Yes, I use syntax as manual for uttsc says
3. I didnt test it with View Connector. Only direct connections to WinSRV or XP, Vista.
4. my 'usb' keyword means USB_storage_devices. Printers are different and are controlled via 'queue=driver'.
My scripts arent (yet) supported with USB_redirection from SRS5(SRSS42+SRWC22). Will be.

Posted by mplona on December 03, 2009 at 03:34 AM CET #

Hello nice info. We have reached a problem with our SunrayServer hope yours can hellp.

Our envoirment is Solaris x86 10 with SRS4.2 and VMWare View connector on kiosk mode. The problem is when we input a javacard the token from the javacard is passed to the view connector and we get the no user assigned error. Is possible to not pass the token so the view will ask for user/password.


Posted by Juan Manuel Sende on December 19, 2009 at 12:04 PM CET #

I answered such question above - my scripts work directly(!) with Windows OSes. If you'd like to connect to VMware View - pls refer to Sun Ray Connector for VMware View.
BTW - which functionalities from my scripts do you need to use with VMware View? Ill try to help but need more info.

Posted by mplona on December 21, 2009 at 02:40 AM CET #

Just wanted to let you know that the links provided to download your file were not working. The links were pointing to a .tar file when it should be a .zip file. HTH for anyone else looking to download.... Thanks mplona for a great writeup and program!

One question - I'm going to test this out tomorrow, but does the windows Autologin only work utilizing terminal server, or can you do this with a vmware windows xp virtual machine as well? We have a requirement to deploy a few sun rays that would grab a windows xp virtual machine, auto login (with no user intervention) and automatically start running IE in kiosk mode, all without using terminal server. Is this possible?


Posted by GL on January 07, 2010 at 10:09 PM CET #

Thanks for info!
Autologin-in 'other info' field you need to put a Windows IP address, so it will work for all Windowses installed on bare metal or whatever virtualisation technology. Keep in mind that in virtualised conf you have to put IP of Windows OS itself (or NLB group if you use Win Srv), not connection broker.

Posted by mplona on January 08, 2010 at 01:07 AM CET #

I just installed the app on the sun ray servers (ones that are bundled with VDI3.1) and noticed that now the DAC clients are no longer able to display the sun VDI login, but rather a solaris desktop login (sun ray mobile session login). I tried to unregister it and remove all the files (reversing the order of your script), but it still won't give me the standard VDI login again. How can we revert back to the original settings?

Posted by GL on January 08, 2010 at 01:34 AM CET #

scratch my last post. I just realized that the kiosk mode had to be reset to Sun VDA. Back to the way it was now....

Still curious though if it's possible to only have a few select Sun Rays autologin to a vmware virtual machine running windows xp with this script or is this only possible using terminal server?

Thanks again.

Posted by GL on January 08, 2010 at 01:43 AM CET #

Yes its possible via `utkioskoverride` command. You can set Sun VDA as default action, but for some particular SRs or cards you could omit Sun VDA and connect directly via my scripts.
Drop me a line if you have any problems at

Posted by mplona on January 08, 2010 at 02:01 AM CET #

Is there a quick workaround on the script that I can do to support the USB redirection functionality of SRSS 4.2 and SRWC 2.2? What exactly needs to be done in the script so that it does not interfere with USB devices?

Posted by costa on January 21, 2010 at 10:31 AM CET #

As a quick workaround (USB redirection ON for ALL users) you have to add undocumented "-r usb:on" in just after each occurence of "$UTTSC" (8 times).
Keep in mind that USB redirection doesnt work for Terminal Server sessions = doesnt work for Windows Server.

Posted by mplona on February 04, 2010 at 02:15 AM CET #

Downloaded your packages and instructions and i am missing something in order to bring only the application to the DTU. Whenever i use the app or menu options i only get the desktop. I am certain it is a step i missed, could you give any pointers?

Posted by Mike on March 05, 2010 at 10:28 AM CET #

If you are sure there is no typo in "other info" field it looks like Windows configuration. Pls check on fresh Win info, not connected to Active Directory

Posted by mplona on March 08, 2010 at 02:54 AM CET #

Works great! Thank you! Last question i think, when someone closes the app, is there something that we can do to log the user out?

Posted by Mike on March 08, 2010 at 02:48 PM CET #

It should log user out automatically, close Windows session, restart Sun Ray session and connect to Windows again. If your Windows is connected to AD - dont close app before 2-3minutes from log in, if you do AD waits for about 1 minute, then lets to log user out. Just wait a little bit ;-)))

Posted by mplona on March 09, 2010 at 04:52 AM CET #

Does this all still work with SRSS 4.2 and SRWC 2.2?

What about USB and Serial redirection? All still working with SRSS 4.2 and SRWC 2.2?

Anything I should watch out for?

Thanks for a great set of scripts!


Posted by Jim Nickel on April 13, 2010 at 06:53 PM CEST #

Works fine, but It was created for older srss and srwc versions, so the newest USB redirection to Win XP(not Win srv!) isnt implemented. However its easy to add it. Email me at mplona at sun com with details and will help you.

Posted by mplona on April 15, 2010 at 05:50 AM CEST #

Finally after 8 months and 4468 downloads(srs4_usage.pdf) its a time to update my scripts. I have some missing features in mind but those scripts are created mostly;) for you, so - if you would like to have some feature - just let me know(email below), Ill do my best to implement it.

Posted by mplona at sun com on April 15, 2010 at 09:16 AM CEST #

Thank you so much for creating this! So I've noticed one little anomaly on a Windows 2008 R2 terminal server: when I plug in a USB thumb drive, it shows up under Computer / 'USB on 'my cube'', and then underneath that are two folders, disk1 and noname. Each of these show the entire contents of the USB drive -- they are duplicates. Any clue as to what's going on here?

Posted by Daniel B. on May 11, 2010 at 10:26 AM CEST #

Yes, those 2 dirs are known issue but (as of now) its the way `uttsc` works. I'm going to fix it soon anyway.

Posted by mplona on May 12, 2010 at 08:01 AM CEST #

Hi guys, I hope you can help me. I get this error: servername error: PNClient$PNClientException: Error connecting to virtual desktop: Cannot run program "/etc/opt/SUNWkio/sessions/provision_networks/../uttsc/uttsc": error=12, Not enough space May 18 07:04:57 olkas0024 kioskcrit: [ID 702911 user.notice] Info: critical application provision_networks (pid=22269) exited with non zero status: 1

The only way to make it go away is to restart my Solaris server otherwise none of my Sunray's can log in. But it comes back after a couple of hours?

Posted by Morne van Rensburg on May 18, 2010 at 11:07 AM CEST #

"Not enough space" - what does `df -h` say?

Posted by mplona on May 19, 2010 at 03:43 AM CEST #

So in the description field for my token I have clients setup to go to a Windows terminal server. That works fine. But when substituting the terminal server name with a hostname with two A records -- pointing to the IP address of two terminal servers, the session fails if one of them is down -- unlike with a standard Windows RDP client, it won't keep alternating between the different IPs associated with that hostname. How could I get this to work with a round robin setup? I don't care about Windows session preservation as these are just generic kiosk (internet browser) sessions.

Posted by Daniel on May 27, 2010 at 02:35 PM CEST #

Nevermind that -- bad DNS setup on my part.

Posted by Daniel on June 07, 2010 at 01:54 PM CEST #

Is there a way to have the internal smartcard reader detected when using the script full,,,domain,WIN_IP so that the windows terminal server prompts for a PIN instead of the username/password? The windows terminal server has ActiveClient software loaded? If using the Windows connector alone, adding the option -r:scard=on will allow this. Can the custom demo kiosk mode be setup somehow to allow this?

Posted by mccool on June 14, 2010 at 08:19 AM CEST #

Never mind about the above post. I added the -r scard:on option to the file.

One other question, how can I setup a menu to allow users to select a windows terminal server or a virtual desktop? The menu option for scripts seems to only display applications and not to allow a choice like the one mentioned above. Thanks for any help!

Posted by mccool on June 14, 2010 at 01:07 PM CEST #

You could use menu (description is at the end of usage guide-Solaris "applications"):
menu2,,,,,,/opt/SUNWuttsc/bin/uttsc WTS_IPaddress,WinSRV,/opt/SUNWuttsc/bin/uttsc VDI_IPaddress,WinVDI
One thing - you have to know IP of Win machine you are connecting to; my scripts cannot connect to VDI_login_screen where you could log in to VDI and then be connected to your virtual desktop.
Maybe in the next version it will be possible.

Posted by mplona on June 18, 2010 at 07:20 AM CEST #

I managed to sort out my issue regarding: "/etc/opt/SUNWkio/sessions/provision_networks/../uttsc/uttsc": error=12, Not enough space May 18 07:04:57 olkas0024 kioskcrit: [ID 702911 user.notice] Info: critical application provision_networks (pid=22269) exited with non zero status: 1

I ended up reinstalling :)

Posted by Morne van Rensburg on June 21, 2010 at 10:43 AM CEST #

Hi mplona, where i can get you scripts ? :)
mediacast now down :(
Have some truble whit old script (2008 year) and win 2008R2....

Posted by user on September 15, 2010 at 03:58 AM CEST #

I started to update scripts and will update blog post so it will point to proper place.
However - what problems do you have? I hadnt any with W2k8R2

Posted by mplona on September 24, 2010 at 08:09 AM CEST #


SRSS 5.1 (4.2 + SRWC 2.3) brings several new features, like USB port redirection for Windows 7 / 2008 R2 and also multimedia acceleration for those platforms. I've managed to get USB redirection working by following your earlier suggestion to add '-r usb:on' to Is there anything I would need to do in order to enable the multimedia acceleration? I'm referring to the feature described here:

I ask because I haven't noticed any improvement of Adobe Flash videos (e.g. youtube) on 2008 R2 sessions -- it's still pretty dismal.

Also, I was wondering if you knew a way to have USB drives set to be user or session specific -- so everyone doesn't see (or at least can't write to) my flash drive!

Thanks again for this great script!


Posted by Daniel on November 03, 2010 at 04:11 PM CET #

Im working on updating scripts to use all new features from SRS5.1 as well as 'validating' scripts under Oracle Linux. As OLinux is compatible with Red Hat - both should work.
I'll keep posted.

USB user/session specific.
You could use old, good "usb" keyword in "desktop units" tab for redirection for particular Sun Ray. User specific is a little bit tricky as as long as you dont use auto login feature different users could log in via the same card in the same Sun Ray.

Posted by mplona on November 04, 2010 at 03:04 AM CET #

I am having some difficulty getting your demo to work on an OEL install but am sure it is something I have done wrong. As we will be deploying the first 40 devices on SRS 5.1 release in JAN-11 I'd perhaps I should await your updated scripts. Do you have an estimated date? Would you like me to serve as a test candidate for you?

Posted by Brian on December 10, 2010 at 02:14 PM CET #

I just downloaded sunray 5.3 and want to test the demo_kiosk on how it will work. I had tested it on version 4.1 in the past and we are currently using vdi to support our desktops. The main thing is how does new usb redirection and multimedia works. Are there other scripts available to handle users with different requirements based on token.

Posted by Imran Khan on May 13, 2011 at 03:14 PM CEST #


Have you updated the scripts recently? Is this still being maintained? SRS 5.2 is out and I notice some of the arguments for uttsc have been changed.


Posted by Daniel on June 17, 2011 at 02:13 PM CEST #


Have you updated the scripts recently? Is this still being maintained? SRS 5.2 is out and I notice some of the arguments for uttsc have been changed.


Posted by Daniel on June 17, 2011 at 02:13 PM CEST #


Have you updated the scripts recently? Is this still being maintained? SRS 5.2 is out and I notice some of the arguments for uttsc have been changed.


Posted by Daniel on June 17, 2011 at 02:14 PM CEST #


Have you updated the scripts recently? Is this still being maintained? SRS 5.2 is out and I notice some of the arguments for uttsc have been changed.


Posted by Daniel on June 17, 2011 at 02:15 PM CEST #


Just wondering -- have you had a chance to update the scripts? SRS is at 5.2 now; I noticed several options for uttsc have changed.


Posted by Daniel on June 17, 2011 at 02:17 PM CEST #


Is this still being maintained? Any tips on modifying it to work with SRS 5.2? Some commands have changed for UTTSC, such as -O now being -H nodisconnect. I'd be glad to serve as a tester for any updates. This session has been a huge help to me.


Posted by guest on June 27, 2011 at 04:20 PM CEST #

(Having trouble posting -- sorry for any duplicates)


Is this still being maintained? Any tips on modifying it to work with SRS 5.2? Some commands have changed for UTTSC, such as -O now being -H nodisconnect. I'd be glad to serve as a tester for any updates. This session has been a huge help to me.


Posted by Daniel on June 27, 2011 at 04:22 PM CEST #


I am using your script and I am wondering about ssh:

How to get SSH to work? I want to setup a menu option to allow the user to ssh to another system - In my case a Linux system. SSH does not seem to start and also I have no way to "get" the username into ssh before I start it.

I assume it has to do with the idea that the Sun Ray is not logged into the Solaris as a "real" user, but only as a Kiosk user - is this correct?

I would need some kind of addition to the script that would allow me to get the user name, but I am still unsure how to get ssh to run and pass it the username that the user would type in?

Thanks again!


Posted by Jim Nickel on July 06, 2011 at 04:57 PM CEST #

Good afternoon I have a problem I have an implementation of 100 sun usb ray3 and sees them as network drive look like windows to redirect connector as I can solve this problem.
Another idea that occurs to me is the default position for windows and each connector smart card commands to associate for a username and password.
The scripts are updated to srs 5.2?? Where I can download the update?
From already thank you for your attention and availability

Posted by Albert on September 15, 2011 at 04:03 PM CEST #

Sorry for not answering quite a long time.
Unfortunatelly I had/have some different duties than desktop and a lot of other private stuff, so dont have a time to update scripts to latest SRS and/or OLinux. Of course will try to help but dont have SRS install on hand too to check my advices. Will do my best however. Email me with your requests at mplona@[my employer above].com

Posted by mplona on September 28, 2011 at 08:07 AM CEST #

Post a Comment:
  • HTML Syntax: NOT allowed



« April 2014