SRSS Addon: Follow Me Printing
From Sun Ray User Group Wiki
Contents |
Basics
This component provides support for "Follow-Me Printing" for SRSS 4.0. Follow-Me Printing automatically sets the default printer based on which DTU the user is currently connected to.
As users move from DTU to DTU, their default printer is automatically switched to the printer assigned to the new DTU.
When the session is conencted the newly assigned printer name will be displayed on screen as a notification of the new default print locaiton.
For those users who have an interactive login to the SRSS server, the printer will show up as SR-Default.
Print Queues
Print queues must be created on the Sun Ray servers. They must be created identically on all servers in the SRSS Fail Over Group. It is useful to assign meaningful names to the queues.
Printer Assignment
The script assigns printers by managing the ~/.printers file in users home directory. The assigned printer is set as the _default printer alias.
Printers are assigned to DTUs using the Sun Ray Data Store. Queue names should be added to the "Other Info" field for the designated desktop Using /opt/SUNWut/sbin/utdesktop or the Web Admin interface.
Windows Interoperability
The printer name "SR-Default" should be forwarded as a client attached printer through your Windows client (uttsc, wfica, rdesktop).
If you are using the ICA-Kiosk Session install, you do not need to do anything. The printer will be forwareded automatically.
If you are using the Sun Ray Connector for windows session, you will need to add "-r printer:SR-Default" to the Session Arguments using the web admin GUI.
For rdesktop you will need to add "-r printer:SR-Default" to the command string in youe Kiosk script.
Download and Install
- Current version is 0.3
- To install:
- Unzip
- cd into the package directory
- Run ./install.sh as root and follow directions
Files Delivered
The Following files are delivered with this package.
- /opt/SRSS-Addons/FollowMe/set-printer.sh <-- The main printer script. Reads Other Info and builds .printers
- /opt/SRSS-Addons/FollowMe/yaf-splash <-- Used to place printer information in OSD
- /opt/SRSS-Addons/FollowMe/1100.SUNWut <-- Script which sets up utaction to call set-printer.sh on connect
- /opt/SRSS-Addons/FollowMe/README <-- This README
- 1100.SUNWut is linked to one of the following locations based on OS:
- /etc/X11/xinit/xinitrc.d/1100.SUNWut <-- Linux
- /usr/dt/config/Xsession.d/1100.SUNWut <-- Solaris
Minor update for Linux users
Since printing with Sunrays under a Linux server requires you to create symlinks to the device-node symlink in $UTDEVROOT/dev/printers/printername i`ve added the following lines.
This makes sure there is a /dev/usb directory and creates a symlink for the printer name to the printer symlink device node.
You might want to change this, just depends if you use the name of the printer in the "Other field".
usbdevDir="/dev/usb"
symlink="/dev/usb/$thePrinter"
# Check if usb directory exists
if [ ! -d $usbdevDir ] ; then
mkdir -p $usbdevDir
fi
# Check if Symlink exists
if [ ! -f $symlink ] ; then
ln -s $UTDEVROOT/dev/printers/$thePrinter $usbdevDir/$thePrinter
fi

