Hi Bob,

I have 2 SunRay Server VM in FOG. They should be replicating data between
themselves as they share the user data. Regarding the monitor resolution
problem. When a DTU is restarted without a smart card inserted, it will use
the highest resolution the monitor can support (1280x1024 on a 17" CRT).
When a smart card is inserted, most of the time it does not re-set to
1024x768. So we had to set it to utxconfig -r '1024x768' in the
windows_connector CAM script in both servers in order to get the 1024x768
resolution. The DTU may start up in 1280x1024 though.

And yes, I am using smart cards (GEMPlus, & ASK) to present the user's
virtual desktop, and each user is assigned his/her personal desktop. So a
user is also assigned his/her personal SunRay DTU. In a way, it is easier
to identify which DTU is connected with a bigger monitor. I guess we also
use the token ID to give users specific service like sound / usb disk?

So within a single windows_connector CAM script, I will have:
1) resolution for big monitors, else general resolution of 1024x768
2) specific users with sound else no sound

I will try out how the "-r sound:low" sounds like on a SunRay DTU.

I may have to use your 1st method of if-then-else because I am using "grep
"Other Info" | awk '{ print $4 }'` to map user's smart card to the user's
virtual desktop.

I will test this out after office hours. Whatever I do to the windows
_connector CAM script seems to affect users right away.

Thanks for the advice.

Regards,
Alan




                                                                           
             Bob Doolittle                                                 
             <Robert.Doolittle                                             
             @Sun.COM>                                                  To 
             Sent by:                  SunRay-Users mailing list           
             sunray-users-boun         <[email protected]>         
             [EMAIL PROTECTED]                                           cc 
                                                                           
                                                                   Subject 
             23/08/2007 16:20          Re: [SunRay-Users]      Windows     
                                       Connector CAM script for specific   
                                       user or     DTU?                    
             Please respond to                                             
               SunRay-Users                                                
               mailing list                                                
             <[EMAIL PROTECTED]                                             
                ibeto.org>                                                 
                                                                           
                                                                           




[EMAIL PROTECTED] wrote:
> Hi Bob,
>
> The 'utxconfig -a -r 1024x768' command does not work properly. Most of
the
> time it will try to set the highest possible resolution on a monitor. For
> instance, it will use 1280x1024 on a 17" CRT most of the time. Users have
a
> hard time trying to read even after setting the biggest font size
possible.
>
> So, I had to use 'utxconfig -r 1024x768' to absolutely fix the screen
> resolution. No matter what monitor type & size you have, you are fixed to
> 1024x768.
>

Sorry, but this makes no sense.  Something else is
going on.  First of all, utxconfig -r does nothing
to the session, directly.  It sets a preference
for the token, and it sets it persistently, so you
won't need to ever run it again for that token.
It's the X server that reads the token preference
(again using utxconfig internally) and sizes
appropriately.  Secondly, unless you've set a
preference for a specific token, the default
preference will be reported to the X server by
utxconfig.  This is widely enough used that we'd
have heard before now if something so basic
were buggy, so I suspect your configuration
or perhaps monitors/cables (see below).

Here's a thought - do you have more than one
server?  Have you run utconfig and utreplica so
that they share data?  If not, then you might get
inconsistent results in a multi-server FOG.  Run
these commands to make things consistent.

> If I had a big screen connected to a DTU, can I make that DTU use a
higher
> resolution without affecting others?
>

Do you use smartcards?  Since you mention pseudo
tokens below, it seems not.  So, you should be
able to run utxconfig -a to set the default
appropriately for all the other DTUs, and set
utxconfig -r -t pseudo.MAC to set a different
preference for the DTU with the big screen.  You
run these commands once, and then that should be
sufficient.

If you've checked all the preferences (try running
utxconfig -o to see them all) and this is how
they're set, and you're still not getting the
right resolutions, then most likely you have
cables or monitors that are not passing/responding
to DDC queries, which is how the Sun Ray
determines the resolutions that the monitor can
support.  You may need to use utresadm in that
case, but that's a last resort - see if you can
get utxconfig set up properly and have that work
for you first.

> I am using windows_connector CAM script.

I was under the impression that you'd written your
own CAM script.  You'll have to modify this script
then.

> How do I use this "then
> $SUN_SUNRAY_TOKEN represents the DTU's MAC address
> (e.g. pseudo.08002024986f)." command? Before my uttsc command? Do I use
"if
> then else" i.e. if $SUN_SUNRAY_TOKEN = pseudo.08002024986f, run uttsc -r
> sound:low, else uttsc -r sound:off or something like that?
>

Yes, I was imagining something like:

case $SUN_SUNRAY_TOKEN in
    pseudo.xyz)
    pseudo.abc)
    ...
        SOUND=low
        ;;
    *)
        SOUND=off
        ;;
esac
uttsc -r sound:$SOUND ...


Although it would be better not to hard code your
token list in the script itself, and instead to
read it from a file. I haven't tested this but
maybe something like:

SOUND=off
while read TOKEN; do
    if [ $TOKEN = $SUN_SUNRAY_TOKEN ]; then
        SOUND=low
        break
    fi
done < $YOUR_TOKEN_FILE
uttsc -r sound:$SOUND ...


The best thing to do, from a maintenance POV, is to put this
code stanza into a file by itself, and simply modify the
CAM script minimally, something like:

< uttsc ...
--------
> . YOUR_CODE_STANZA_FILE
> uttsc -r sound:$SOUND ...


The "." command will "source" your code stanza before
executing the uttsc command.

Doing it this way makes applying your modifications to any
new CAM scripts delivered by patches or new releases simpler.

-Bob

> Thanks.
>
> Regards,
> Alan
>
>
>
>
>
>
>
>

>              Bob Doolittle

>              <Robert.Doolittle

>              @Sun.COM>
To
>              Sent by:                  SunRay-Users mailing list

>              sunray-users-boun         <[email protected]>

>              [EMAIL PROTECTED]
cc
>

>
Subject
>              22/08/2007 23:21          Re: [SunRay-Users]      Windows

>                                        Connector CAM script for specific

>                                        user or     DTU?

>              Please respond to

>                SunRay-Users

>                mailing list

>              <[EMAIL PROTECTED]

>                 ibeto.org>

>

>

>
>
>
>
> The best way to handle setting the resolution for everyone is to
> simply, as root, run 'utxconfig -a -r 1024x768'.  That will set
> a system default resolution.  You only need to run it once.
>
> If you want to control sound by user, use
> $SUN_SUNRAY_TOKEN to detect the particular users
> you want to turn sound on for.
>
> If you're using cards, then $SUN_SUNRAY_TOKEN will be
> the card CUID.  If you're not using cards, and haven't enabled
> NSCM policy (you probably didn't if you're using CAM), then
> $SUN_SUNRAY_TOKEN represents the DTU's MAC address
> (e.g. pseudo.08002024986f).
>
> -Bob
>
> [EMAIL PROTECTED] wrote:
>
>> Hi,
>>
>> I have a general/globe windows connector CAM script that calls uttsc.
>>
> Something like this:
>
>> /opt/SUNWut/bin/utxconfig -r '1024x768'
>> /opt/SUNWuttsc/bin/uttsc -mb -D fullwindowdrag -D menuanimations -D
>>
> theming\
>
>> -D cursorshadow -D cursorsettings -r sound:off -r disk:usbdisk=$HOME
>>
> ${VMHOST}
>
>> So with this setting, everybody is not getting sound, resolution is
fixed
>>
> at 1024x768, etc.
>
>> If I let some users with their assigned DTU to have sound i.e. turn on
>>
> audio redirection (-r sound:on),
>
>> how can I do this? Something like if match 5 DTU's MAC address do this,
>>
> else use the generic uttsc?
>
>> Thanks for the help.
>>
>> Regards,
>> Alan
>>
>>
>>
>>
>>
>>
>
********************************************************************************

>
>
>> IMPORTANT NOTICE:  This email and any files transmitted with  it is
>> intended only for  the use of the person(s) to whom it is addressed,
and
>> may  contain information that is privileged, confidential and exempt
from
>> disclosure under applicable law. If you are not the intended recipient,
>> please immediately notify the sender and delete  the email. Thank you.
>>
>>
>
********************************************************************************

>
>
>> _______________________________________________
>> SunRay-Users mailing list
>> [email protected]
>> http://www.filibeto.org/mailman/listinfo/sunray-users
>>
>>
>
> _______________________________________________
> SunRay-Users mailing list
> [email protected]
> http://www.filibeto.org/mailman/listinfo/sunray-users
>
>
***************************************************************************
>             IMPORTANT NOTICE:
> This email and any files transmitted with it is intended only for
> the use of the person(s) to whom it is addressed, and may
> contain information that is privileged, confidential and exempt
> from disclosure under applicable law. If you are not the intended
> recipient, please immediately notify the sender and delete
> the email. Thank you.
>
***************************************************************************
>
>
>
>
>
>
>
********************************************************************************

>
> IMPORTANT NOTICE:  This email and any files transmitted with  it is
> intended only for  the use of the person(s) to whom it is addressed,  and
> may  contain information that is privileged, confidential and exempt from
> disclosure under applicable law. If you are not the intended recipient,
> please immediately notify the sender and delete  the email. Thank you.
>
********************************************************************************

>
> _______________________________________________
> SunRay-Users mailing list
> [email protected]
> http://www.filibeto.org/mailman/listinfo/sunray-users
>

_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users

***************************************************************************
            IMPORTANT NOTICE:
This email and any files transmitted with it is intended only for
the use of the person(s) to whom it is addressed, and may
contain information that is privileged, confidential and exempt
from disclosure under applicable law. If you are not the intended
recipient, please immediately notify the sender and delete
the email. Thank you.
***************************************************************************






********************************************************************************

IMPORTANT NOTICE:  This email and any files transmitted with  it is
intended only for  the use of the person(s) to whom it is addressed,  and
may  contain information that is privileged, confidential and exempt from
disclosure under applicable law. If you are not the intended recipient,
please immediately notify the sender and delete  the email. Thank you.
********************************************************************************

_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users

Reply via email to