SRSS 4.2 sur RedHat 5.5

Sunray

Sommaire:

Introduction

Le but est ici d'installer SRSS (Sun Ray Server Software) sur des RedHat pour pouvoir porposer des desktops Linux sur les SunRay plus facilement.

Sunray-failover

Info Machines

[root@SRSRH1 ~]# uname -r 
2.6.18-194.11.3.el5
[root@SRSRH1 ~]# cat /etc/issue 
Red Hat Enterprise Linux Server release 5.5 (Tikanga)
Kernel \r on an \m
[root@SRSRH1 ~]# gdm --version 
GDM 2.16.0
[root@SRSRH1 ~]# java -version 
java version "1.6.0_21" Java(TM) SE Runtime Environment (build 1.6.0_21-b06) 
Java HotSpot(TM) Server VM (build 17.0-b16, mixed mode)
[root@SRSRH1 ~]# vi /etc/hosts
127.0.0.1               localhost.localdomain localhost 
::1             localhost6.localdomain6 localhost6 
192.168.1.55          SRSRH1.domain.local SRSRH1 
192.168.1.56          SRSRH2.domain.local SRSRH2 192.168.1.57          SRSRH3.domain.local SRSRH3

DHCP

dhcp_host# vi /usr/local/etc/dhcpd.conf
subnet 192.168.1.0 netmask 255.255.255.128        {
        option x-display-manager 192.168.1..55,192.168.1.56;        option tftp-server-name "192.168.1..55";
        }

DNS

[root@dns_host root]# vi /etc/namedb/domain.data
sunray-servers  IN      A       192.168.1.55sunray-servers  IN      A       192.168.1.56sunray-config-servers   IN      A       192.168.1.55sunray-config-servers   IN      A       192.168.1.56srsrh1            IN      A       192.168.1.55srsrh2            IN      A       192.168.1.56srsrh3            IN      A       192.168.1.57

Dépendances

pre-requis dans une version égale ou supérieure

  • Software Development Tools
  • glib-1.2.10-20.el5 (32-bit RPM on 32-bit and 64-bit OS) 
  • dhcp-3.0.5-3.el5 (Servers/Network Servers) 
  • openldap-2.3.27-8 (Servers/Network Servers) 
  • openldap-clients-2.3.27-8 (Base System/System Tools) 
  • tftp-server-0.42-3.1 (Servers/Legacy Network Server) 
  • libXp-1.0.0-8.i386.rpm (32-bit RPM on 32-bit and 64-bit OS) 
  • openmotif22-2.2.3-18.i386.rpm (32-bit RPM on 32-bit and 64-bit OS) 
  • openssl-0.9.8b-8.3.el5_0.2.i386.rpm (32-bit RPM on 32-bit and 64-bit OS) 
  • compat-libstdc++-33-3.2.3-61 (32-bit RPM on 32-bit and 64-bit OS) 
  • libusb-devel-0.1.12-5.1.i386 (32-bit RPM for 32-bit OS for libusb)
[root@SRSRH1 ~]# yum install glib dhcp openldap-client tftp-server libXp openmotif openssl compat-libstdc++ libusb-devel
[root@SRSRH1 ~]# unzip srss_4.2_linux.zip
[root@SRSRH1 ~]# cd srss_4.2/

Installation d'apache tomcat sur les 3 Redhat dans /opt

[root@SRSRH1 ~]# cd /root/srs/srss_4.2/Supplemental/Apache_Tomcat
[root@SRSRH1 Apache_Tomcat]# tar -xvz -C /opt -f apache-tomcat-5.5.20.tar.gz

Création d'un lien symbolique pour rendre cela plus facile:

[root@SRSRH1 Apache_Tomcat]# ln -s /opt/apache-tomcat-5.5.20 /opt/apache-tomcat

Installation

A faire sur les 3 machines !

[root@SRSRH1 ~]# cd srss_4.2/
[root@SRSRH1 srss_4.2]# ./utinstall
[root@SRSRH1 srss_4.2]# reboot

Configuration

A faire sur les 2 machines secondaire!

[root@SRSRH1 ~]# cd /opt/SUNWut/sbin

Activation du service Sun ray sur le network

[root@SRSRH1 sbin]# ./utadm -A 192.168.1.0### Configuring /etc/nsswitch.conf
### Configuring Service information for Sun Ray
  Selected values for subnetwork "192.168.1..0"     net mask:           255.255.255.128
    no IP addresses offered
    auth server list:   192.168.1.55    firmware server:    192.168.1.55  Accept as is? ([Y]/N): Y
### Configuring firmware version for Sun Ray
        All the units served by "srs1" on the 192.168.1.0        network interface, running firmware other than version
        "4.2_77_2009.10.19.17.01" will be upgraded at their next power-on.

### Configuring Sun Ray Logging Functions
### Turning on Sun Ray LAN connection

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



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

#### DHCP daemon not started.  You will need to manually start one
using "/etc/init.d/dhcp start".

Demarrage du service sur les interfaces

[root@SRSRH1 sbin]# ./utadm -L on

Configuration du srss

[root@SRSRH1 sbin]# ./utconfig

Configuration of Sun Ray Server Software

This script automates the configuration of the Sun Ray Server Software
and related software products.  Before proceeding, you should have read
the Sun Ray Server Software 4.2 Installation Guide and filled out the
Configuration Worksheet.  This script will prompt you for the values
you filled out on the Worksheet.  For your convenience, default values
(where applicable) are shown in brackets.

Continue ([y]/n)? Y
Enter Sun Ray admin password: 
Re-enter Sun Ray admin password: 

Configure Sun Ray Web Administration? ([y]/n)? 
Enter Apache Tomcat installation directory [/opt/apache-tomcat]:
Web server port number (1660)
Whether to enable secure connections ([y]/n)
If Yes, to enter HTTPS port number (1661)
To supply a user name for the Tomcat process (utwww) 
Whether you want to enable remote administration ([y]/n) 
Configure Sun Ray Kiosk Mode? (y/[n])? y
Enter user prefix [utku]: 
Enter group [utkiosk]: 
Enter userID range start [150000]: 
Enter number of users [25]: 

Configure this server for a failover group? (y/[n])? y

About to configure the following software products:

Sun Ray Data Store 3.2
    Hostname: srsrh1
    Sun Ray root entry: o=utdata
    Sun Ray root name: utdata
    Sun Ray utdata admin password: (not shown)
    SRDS 'rootdn': cn=admin,o=utdata

Sun Ray Server Software 4.2
    Failover group: yes
    Sun Ray Kiosk Mode: yes

Sun Ray Kiosk Mode 4.2
  User name prefix:   utku
  Base user ID:       150000
  Number of accounts: 25
  Kiosk group name:   utkiosk
  Kiosk group ID:     auto

Continue ([y]/n)? 
You have chosen to configure this server for a failover group.

All servers in a failover group must share a unique signature, 
which is a string of 8 or more characters where at least two 
characters are letters and at least one is not.
 
Enter signature: 
Re-enter signature:

Configuration du fail-over group A faire sur les deux serveurs secondaire

[root@SRSRH1 sbin]# ./utreplica -s srsrh3.domain.local

 

A faire sur le server primaire

[root@SRSRH3 ~]# cd /opt/SUNWut/sbin
[root@SRSRH3 sbin]# ./utconfig

Faire une configuration par défaut

[root@SRSRH1 sbin]# ./utreplica -p srsrh1.domain.local srsrh2.domain.local

Synchronisation des serveurs

Mise ne place de ntp Sur le maitre:

[root@SRSRH3 ~]# vi /etc/ntp.conf 
server 0.rhel.pool.ntp.org
server 1.rhel.pool.ntp.org
server 2.rhel.pool.ntp.org

Sur les Secondaire:

[root@SRSRH1 ~]# vi /etc/ntp.conf
server  srsrh3.domain.local

[root@SRSRH1 ~]# chkconfig time-dgram on
[root@SRSRH1 ~]# chkconfig time-stream on
[root@SRSRH1 ~]# chkconfig ntpd on
[root@SRSRH1 ~]# service xinetd restart
Arrêt de xinetd :                                          [  OK  ]
Démarrage de xinetd :                                      [  OK  ]


verification:
[root@SRSRH1 sbin]# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 SRSRH3.domain.lo ..           16 u    6   64    0    0.000    0.000   0.000
 LOCAL(0)        .LOCL.          10 l    5   64    1    0.000    0.000   0.001

Synchronisation avec rdate des serveurs secondaire

[root@SRSRH1 ~]# rdate SRSRH3.domain.local
rdate: [SRSRH3.domain.local]        Fri Sep 10 13:45:12 2010

Synchronisation des DTU firmware

[root@SRSRH1 ~]# cd /opt/SUNWut/sbin
[root@SRSRH1 sbin]# ./utfwsync
[root@SRSRH1 sbin]# reboot

iptables

[root@SRSRH1 ~]# iptables -F

Iptables pour session X:

[root@SRSRH1 ~]# iptables -A INPUT -p UDP --dport 177 -j ACCEPT
[root@SRSRH1 ~]# iptables -A INPUT -p TCP --match multiport --dports 6000:6004 -j ACCEPT

Connexion ldap entre les srs:

[root@SRSRH1 ~]#iptables -A INPUT -p TCP --dport 389 -j ACCEPT
[root@SRSRH1 ~]# iptables -A INPUT -p TCP --match multiport --dports 7000:7015 -j ACCEPT
[root@SRSRH1 ~]# /etc/init.d/iptables save
[root@SRSRH1 ~]# chkconfig iptables on

Problemes rencontrés

Erreur 26D sur les Sunray

[root@SRSRH1 ~]# tail -1000 /var/log/messages
Sep 13 17:15:26 SRSRH1 gdm[4792]: deal_with_x_crashes : exécution du script XKeepsCrashing
Sep 13 17:15:26 SRSRH1 XKeepsCrashing.sunray: GDM can't start X server.
Sep 13 17:15:27 SRSRH1 gdm[4792]: deal_with_x_crashes : exécution du script XKeepsCrashing
Sep 13 17:15:27 SRSRH1 XKeepsCrashing.sunray: GDM can't start X server.
Sep 13 17:15:28 SRSRH1 gdm[4792]: deal_with_x_crashes : exécution du script XKeepsCrashing
Sep 13 17:15:28 SRSRH1 XKeepsCrashing.sunray: GDM can't start X server.
Sep 13 17:15:29 SRSRH1 gdm[4792]: deal_with_x_crashes : exécution du script XKeepsCrashing
Sep 13 17:15:29 SRSRH1 XKeepsCrashing.sunray: GDM can't start X server.
Sep 13 17:15:30 SRSRH1 gdm[4792]: deal_with_x_crashes : exécution du script XKeepsCrashing
Sep 13 17:15:30 SRSRH1 XKeepsCrashing.sunray: GDM can't start X server.
Sep 13 17:15:33 SRSRH1 gdm[4792]: deal_with_x_crashes : exécution du script XKeepsCrashing
Sep 13 17:15:33 SRSRH1 XKeepsCrashing.sunray: GDM can't start X server.
[root@SRSRH1 ~]# tail -1000 /var/log/gdm/:xx.log
/opt/SUNWut/lib/Xnewt: error while loading shared libraries: libXfont.so.1: cannot open shared object file: No such file or directory

A faire sur les tout les serveurs srs

[root@SRSRH1 ~]# yum install libXfont
[root@SRSRH1 ~]# gdm-restart

Erreur Firefox depuis les Sunray

Firefox ne fonctionne pas depuis les Sunray pour coriger cela:

[root@SRSRH1 ~]# vi /etc/profile
unset LD_preload

Web interface

https://srsrh1.domain.local:1661 login: admin password: celui indiquer lors du utconfig

Srss1