My colleague in the Dubai office, Mitch DSouza, is a shy and retiring fellow not give to self-aggrandisment via blogs.  For this reason, I agreed to post these kiosk mode follow-me printing scripts here on his behalf.

The scripts are here.

Mitch's insructions -

Note, this is written specifically for windows (uttsc) Sun Ray desktops in kiosk mode and also doesn't take into consideration Linux SRSS setups. The scripts currently only cater for 1 locally attached printer but are trivial to extend. You will need to add the scripts and execute the kiosk profile setup script to all servers in the FOG (if any).

So essentially follow-me pass thru printing consists of 3 scripts.

1. The 'setupprof' script that adds pseudo kiosk users to the Printer Adminsitration profile so they can execute lpadmin commands dynamically
2. The '1100.LocalPrint' script to start the utaction action to add or remove printers from the unix srss spooler
3. The 'set-printer.sh' which is called by utaction to do the dirty work

To set this up you need to run the following commands as the root user.  I'm assuming here that you've extracted the tar file to /opt/utprint):

 /opt/utprint/setupprof
 cd /usr/dt/config/Xsession.d
 ln -s /opt/utprint/1100.LocalPrint


That's it. You also need to add the option '-r printer:SR-Default' to the uttsc kiosk mode web config page. Once you restart the session(s) and you and plug a card in, a printer will be dynamically created for you and a zenity message will popup up with the current printer. You can remove the zenity line if you don't want the popup message. If you move your card to another desktop with a locally attached printer it will change the printer dynamically.

It's left to the script reader to configure a default printer if there is no locally attached printer. The windows driver *must* match the locally attached printer or you will probably get garbage printed. You can easily set the windows driver automatically also by using the '-r printer:SR-Default="Driver Name"'

Comments:

Hi Christopher Saul,

Today I tried to implement the Follow me kiosk printing in our environment (demo). We run the SUN VDI solution in combination with the SunRay's. Implementation as descibed was smooth. When I restarted the sessions and used my smartcard to receive my virtual Windows XP, it had the printer "SR-Default". The two things from that point that we noticed were the following:

1. USB redirection doesn't work anymore.
We normally have USB redirection on the SunRay's to our virtual Windows XP's.
When we remove the extra argument "-r printer:SR-Default" USB redirection is restored again.

2. We cannot seem to install a printer in out Windows XP. We attached a USB printer to the SunRay and tried to reach it. We couldn't install the drivers, because the driver install program didn't see the attached printer. Printing a test page directly from the SR-Default printer didn't function also.

3. We didn't receive the zenity popup message in windows, as you descibed.

Can you assist in solving these problems? Or get me in contact with Mitch DSouza? We really would like to get this functionallity working.

Kind regards,

Sander van der Post

Posted by Sander on August 26, 2008 at 05:47 AM PDT #

Hi Sander. Drop me a mail - christopher dot saul at sun dot com.

Posted by Chris on August 27, 2008 at 06:25 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed

This blog copyright 2009 by ThinGuy