Eric

mardi mars 24, 2009

SunRay 4.1

Sommaire

Versions

  • Solaris 10 U5 sous X86
  • SRSS 4.1
  • SunRay Connector for Windows OS 2.1


Installation

  • Il faut télécharger sur le site de sun les composants suivants :
    • Solaris 10
    • SRSS 4.1 : srss_4.1_solaris.zip
    • Le connecteur RDP pour windows :srwc_2.1_solaris.zip
cd srss_4.1
cd Supplemental/Apache_Tomcat/
gzcat apache-tomcat-5.5.20.tar.gz | /usr/sfw/bin/gtar -xf -
mv apache-tomcat-5.5.20 /opt/
ln -s /opt/apache-tomcat-5.5.20/ /opt/apache-tomcat
cd ../../
chmod ug+x ut*
./utinstall

avec 1 modif :

  • choix GUI en FR

=> /var/adm/log/utinstall.2008_10_24_17:48:37.log

sync;sync;init 6
  • Vérifier que /etc/hosts contient

@IP Nom_du_serveur_SunRay (aka SRS)


/opt/SUNWut/sbin/utconfig 

Tout sauf

  • Enable remote server administration? (y/[n])? y
  • Configure Sun Ray Kiosk Mode? (y/[n])? y

P46 : Using SRS on an LAN

  • cd /opt/SUNWut/sbin
  • ifconfig -a va vous donner l'adresse et surtout l'interface réseau su SRS


  1. ./utadm -A 10.0.0.0
      1. Configuring /etc/nsswitch.conf
      2. Configuring Service information for Sun Ray
      3. Disabling Routing
 Selected values for subnetwork "10.0.0.0" 
   net mask:           255.255.255.0
   no IP addresses offered
   auth server list:   10.0.0.50
   firmware server:    10.0.0.50
 Accept as is? ([Y]/N): Y
      1. Configuring firmware version for Sun Ray
      2. Successfully enabled tftp for firmware downloads
       All the units served by "Solaris" on the 10.0.0.0
       network interface, running firmware other than version
       "4.0_48_2007.08.01.15.48" will be upgraded at their next power-on.
      1. Configuring Sun Ray Logging Functions


DHCP is not currently running, should I start it? ([Y]/N):


./utadm -L on
      1. Turning on Sun Ray LAN connection

NOTE: utrestart must be run before LAN connections will be allowed

  1. ./utrestart 

A warm restart has been initiated... messages will be logged to /var/opt/SUNWut/log/messages.

  1. ./utadm -L on
  • utadm lancera l'aide

Install Tomcat

  • cd srss_4.0/Supplemental/Apache_Tomcat
  • PB pour détarrer l'archive, j'ai dû utiliser l'interface graphique....
  • mkdir /opt/apache-tomcat
  • mv apache-tomcat-5.5.20/* /opt/apache-tomcat/


Add-ons

Customizing

Maj Firmware

De la liste sunray-users@filibeto.org:

Pour GUI et VPN/GUI

  • /opt/SUNWut/lib/firmware_gui
  • Puis ./utfwadm -A -f ../lib/firmware_gui/CoronaP8 -e MAC_ADDRESS

The firmware is in the same directory as the other firmware, except it's prefixed with GUI_ or somewhere in the name. The SRSS Administration guide details how you need to force that GUI version down to the clients. It's not enabled by default. You need to explicitly enable the GUI firmware. look at 'man -M /opt/SUNWut/man utfwadm' For example, if you are using .parms files to configure your devices.... /opt/SUNWut/sbin/utfwadm -AaV -i /tftpboot/srconfig -f /opt/SUNWut/lib/firmware_gui This will att the contents of a simple text file called srconfig to the .parms files and also configure the GUI firmware. The srconfig file should only have one line. servers=<ip.of.server.1>,<ip.of.server.2>,<ip.of.server.3> These are the servers in your FOG.

SRSS Client LDAP

Client LDAP

Commandes

Applicatives

  • Session disponibles
/opt/SUNWut/sbin/utkiosk -l 

session

  • Applications d'une session
/opt/SUNWut/sbin/utkiosk -e session
KIOSK_SESSION=jds3
KIOSK_SESSION_TIMEOUT_DETACHED=604800
KIOSK_SESSION_APPLIST=desc:calculator:user;
exec:/usr/bin/firefox:auto;
exec:/usr/bin/gedit:user;U
exec:/usr/bin//nautilus:user;computer:///
exec:/usr/bin/gnome-terminal:user;
exec:/usr/bin/staroffice:user;

FireFox

  • Installer un proxy enmode kiosk :
vi /usr/lib/firefox/defaults/pref/firefox.js

AJout du proxy du slis :
pref("network.proxy.type", 1);   //Pour selectionner le reglage manuel du proxy
pref("network.proxy.http", "172.16.0.1");
pref("network.proxy.http_port", 8080);
pref("network.proxy.ssl", "172.16.0.1");
pref("network.proxy.ssl_port", 8080);
pref("network.proxy.socks", "172.16.0.1");
pref("network.proxy.socks_port", 8080);
pref("network.proxy.socks_version", 5);
pref("network.proxy.socks_remote_dns", false);
pref("network.proxy.no_proxies_on", "localhost, 127.0.0.1, 172.16.0.0");
pref("browser.startup.homepage", "http://www.lyceenobel.org");


Face à un serveur Windows ? Trop fastoche

  • Accès au serveur windows par RDP
/opt/SUNWuttsc/bin/uttsc -m -u User -d Domaine -s Monserveur 
  • Accès au serveur Windows en RDP avec les identifiants de la Carte à puce
/opt/SUNWuttsc/bin/uttsc -m -u $(/opt/SUNWut/sbin/utuser -p `env | grep SUN_SUNRAY_TOKEN | cut -d"=" -f2` |
 grep "User Name" | cut -d"=" -f2 |cut -d" " -f2) -d Domaine Serveur
  • Monter la clé USB locale sur le serveur windows

Attention, ce script ne monte la clé locale sur le serveur windows distant QUE si elle a été insérée avant le début de la session rdp !

#!/bin/ksh
USBDISK=`/opt/SUNWut/bin/utdiskadm -l |tail -1 | cut -d" " -f21-30`
echo $USBDISK
if [ "$USBDISK" != "" ]
 then
/opt/SUNWuttsc/bin/uttsc -m -r disk:usb=$USBDISK  -u $(/opt/SUNWut/sbin/utuser -p `env | grep SUN_SUNRAY_TOKEN |
 cut -d"=" -f2` | grep "User Name" | cut -d"=" -f2 |cut -d" " -f2) -d Domaine Serveur
else
/opt/SUNWuttsc/bin/uttsc -m -u $(/opt/SUNWut/sbin/utuser -p `env | grep SUN_SUNRAY_TOKEN | cut -d"=" -f2` |
 grep "User Name" | cut -d"=" -f2 |cut -d" " -f2) -d Domaine Serveur
fi
  • Reste à faire
    • Ecouter un son /Serveur Windows

Serveur

  • Politique de session
/opt/SUNWut/sbin/utpolicy
# Current Policy:
-a -m -r card -k card -g


  • Donne l'état du groupe de failover
/opt/SUNWut/sbin/utgstatus
host flags    interface     flags
              172.16.0.0/16      
----------    -------------------
solaris TN    172.16.0.10      UA-


  • Etat du mode kiosque
/opt/SUNWkio/bin/kioskuseradm show
Current kiosk user account settings:
  user name prefix:   utku
  first account uid:  150000
  number of accounts: 25
  kiosk group name:   utkiosk
  kiosk group gid:    auto


  • Faire du multiécran.

Nécessite un redémarrage à froid du serveur.

/opt/SUNWut/sbin/utmhadm -a BocalMulti -g 2x1 -p 00144fc30003 -l 00144fc30003,00144fa6392a 

Crée une matrice d'écran

    • de 2 écrans de large par 1 de haut (maxi 16 écrans)
    • La console maitresse est : 00144fc30003
    • L'écran de gauche est celui connecté au premier DTU : 00144fc30003
    • L'écran de droite est celui connecté au second DTU : 00144fa6392a
1 Group for multihead added.
    • Etat du groupe multiécran
/opt/SUNWut/sbin/utmhadm BocalMulti

Multihead Group    Geometry           CIDs                            
------------------ ------------------ --------------------------------
BocalMulti         geometry=1x2       IEEE802.00144fa6392a 
                                      IEEE802.00144fc30003 (P)


  • Etat du réseau vers chacun des DTU
/opt/SUNWut/sbin/utcapture -r 
 TERMINALID      TIMESTAMP TOTAL PACKET   TOTAL LOSS   BYTES SENT PERCENT LOSS      LATENCY
00144fa6392a 20081205090052            0            0            0        0.000        0.876
00144fa7f013 20081205090052         4214            3      5704678        0.000        0.672
00144fc30003 20081205090052         4072            0      5548720        0.000        0.849
00144fc30aeb 20081205090052         1148            0       332864        0.000        0.823
00144fc30b01 20081205090052         4092            2      5560724        0.000        0.896
00144fc30b0c 20081205090052         4214            3      5704678        0.000        0.908
^C

A ma connaissance, seul les deux dernières colonnes sont nécessaires pour vérifier la qualité de la liaison.

Gestion des utilisateurs

  • Liste des utilisateurs et leur mode
/opt/SUNWut/sbin/utuser -L
Token ID                       Server          Port  User Name                      Session Type    Other Info
------------------------------ --------------- ----- ------------------------------ --------------- ---------------
Payflex.501336df00130100                               0           polyp                       kiosk           001
.
.
10 tokens total.
  • Liste des utilisateurs actuellement connectés
   /opt/SUNWut/sbin/utuser -L -g
Token ID                       Server Name                    User Name                     
------------------------------ ------------------------------ ------------------------------
pseudo.00144fa9f013            solaris                        ???                           

4 users currently logged in.
  • Donne les caractéristiques d'un token particulier
/opt/SUNWut/sbin/utuser -Li Payflex.501076df00130100

Token ID                       Server          Port  User Name                      Session Type    Other Info
------------------------------ --------------- ----- ------------------------------ --------------- ---------------
Payflex.501336df00130100                           0 polyp                           kiosk           001

1 token total.
  • Toutes les infos sur l'utilisateur d'un token
/opt/SUNWut/sbin/utuser -p Payflex.501076df00130100 
Current Properties:
  User Name          = polyp
  Other Info         = 001
  Server Name        = 
  Server Port        = 0
  Logical Token      = user.12227955-7053
  User Created       = 11/10/2008 15:39:15
  Session Type       = kiosk

  Token                                     Enabled?
  ----------------------------------------  --------
  Payflex.501076df00130100                  Yes


/opt/SUNWut/sbin/utdesktop -l -c
Desktop ID   MHGroup       Token                 User      Location
------------ ------------- --------------------- --------- --------------------
00144fa6392a S:BocalMulti  IEEE802.00144fa6392a  -         Bocal2
00144fa7f013 -             ???                   -         104
00144fc30003 P:BocalMulti  ???                   -         Bocal
00144fc30aeb -             ???                   -         117
00144fc30b01 -             ???                   -         
00144fc30b0c -             ???                   -         CDI

6 desktops currently connected.

MHGroup montre que Bocal2 est l'écran secondaire (voir Multiécran) de la console primaire Bocal.


  • Envoyer un message à tous les utilisateurs
 /opt/SUNWut/sbin/utwall -a /usr/demo/SOUND/sounds/gong.au -t 'salut' -m 'sujet' ALL
  • Envoyer un message à un utilisateur
/opt/SUNWut/sbin/utwall -a /usr/demo/SOUND/sounds/gong.au -t 'salut' -m 'sujet' -v polyp
USER       ACTION
utwall: error, unknown username 'polyp'
mail       Total:    0
annunciate Total:    0
  • /opt/SUNWut/sbin/utwall -a /usr/demo/SOUND/sounds/gong.au -d polyp < /tmp/toto 
utwall: error, unknown username 'polyp'

Export des données

  • Récupération des données de l'annuaire

SRSS fait tourner sa base d'infos sur un annuaire au format LDAP

 ldapsearch -x -p 7012 -h 172.16.0.10 -v -b 'utname=users,utname=solaris,o=v1,o=utdata' "(objectClass=*)"

Moi, je m'en sert pour importer automatiquement (crontab) les users dans l'annuaire du se3, groupe sunray, qui sert à son tour pour créer automatiquement les comptes dans la liste des utilisateurs.

Infos supplementaires

Réseau

A configurer sur les switches Cisco

Tiré de la liste sunray-users@filibeto.org :

One thing I learned about Cisco switches long ago, do a "set port host" on all ports not connected to other Cisco equipment. Cisco switches do Channel and Trunk arbitration before anything else, and during the time the switch port spends on channel and trunk arbitration, the attached equipment is attempting to, and failing, at speed and duplex arbitration. The end result is that one end of the link is doing half, while the other end is doing full. Not a pretty sight.

Impression

Suit l'user

Installing Follow-Me printing support - 0.3 ...
NOTE  If you are using the the built-in Sun Ray Connector session, you
      will need to add '-r printer:SR-Default' to the Arguments field
      of the Sun Ray Admin GUI so that new sessions will forward the
      printer

      If you are using the ICA-Kiosk-session add on component, your
      printer will be forwarded automatically for new sessions.

Please assign your desktops a default printer by adding the print
queue name to the 'Other Info' field of the selected desktop in the
Sun Ray Admin GUI.

See /opt/SRSS-Addons/FollowMe/README for mor information.


Références

Calendar

Feeds

Search

Links

Navigation

Referrers