CAM Mass Storage Workaround

Editors Note: This Workaround is no longer necessary in SRSS 4.0 and Kiosk Mode.

One of the first things I noticed when we released our support for USB Mass Storage on Sun Ray is that it didn't work in Controlled Access Mode.   It's a simple timing problem where processes responsible  for Mass Storage run prior to the hand off of the session to the CAM user.

You can use this work-around to enable USB Mass Storage support for your favorite CAM application, including passing this storage up to Windows Terminal Server as a mapped drive.

On each server in your Fail Over Group:

  • Create file called /usr/dt/config/Xsession.d/0200.SUNWut
  • Make sure root owns and perms are 700

#!/bin/sh
# Work-around for CAM and Mass Storage
#set -x
for i in `/bin/cat /var/opt/SUNWbb/users.list`
do
echo $i
if [ ! -d /tmp/SUNWut/mnt/$i ];then
/bin/mkdir /tmp/SUNWut/mnt/$i
/bin/chown $i:other /tmp/SUNWut/mnt/$i
/bin/chmod 500 /tmp/SUNWut/mnt/$i
fi
done
#End of Script


Have fun!
Comments:

Hi Thanks for the valuable input. We have been using Sunrays as proof of concept in our office for the past 6 months. Many of your blog pages helped us (like customizing logon pages etc). The one on mass storage has helped us in using USB thumb drives with Sun Ray. One things I am seeing is that Sun's Marketing is weak in promoting good products like Sunray, Sun Java Enterprise system (specifically communication suite) worldwide. Regards Sabapathi

Posted by S.M. Sabapathi on February 24, 2006 at 10:19 PM PST #

Hi We are able to see the USB device mounted on the the SUN Server. But how to make it visible at the Windows Terminal Server? (SAMBA I have tried but bit risky). Regards Sabapathi

Posted by S.M. Sabapathi on February 26, 2006 at 04:03 PM PST #

Sabapathi,
What are you using to connect to the Windows Terminal Server?

You must use Windows 2003 as your Terminal Server.

From there you'd just pass an argument on to your RDP client such as this with Rdesktop:
./rdesktop -r disk:thumbdrive=/tmp/SUNWut/mnt/$USER servername Same syntax for the Sun RDP client as well.

Posted by ThinGuy on February 27, 2006 at 01:04 AM PST #

Hi It works ! We are using Windows 2003 only. Thanks a Lot. I have missed $USER in my earlier change. This works fine. Thanks a lot. Regards Sabapathi

Posted by S.M. Sabapathi on February 28, 2006 at 06:02 PM PST #

Good to hear!
Always happy to help.

Posted by ThinGuy on February 28, 2006 at 11:59 PM PST #

Post a Comment:
Comments are closed for this entry.
About

Think Thin is a collection of bloggers that work with Oracle's Virtual Desktop portfolio of products.

Search

Archives
« March 2015
SunMonTueWedThuFriSat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
    
       
Today