0

Sun Ray Server Software 4, Beta Update 2 – running on CentOS

Here’s my quick notes on getting SRSS 4, Beta Update 2 (the latest) running on Centos 4.4.

SRSS is supported on RHEL AS 4, Update 3, which should be very much like Centos 4.3. I tried first on Centos 5, but got nowhere, but the SRSS installer (utinstall) didn’t work.  I couldn’t find a DVD iso of 4.3 and I’m lazy, so I tried on 4.4. Did an “everything” install, and then did a yum update to get the 1200 patches needed for this old distro.

Install tomcat5

SRSS needs tomcat installed. No yum packages for CentOS 4.3, boo. Followed the instructions at https://www.tummy.com/Community/Articles/tomcat-centos/tomcat5.html. This appears to rebuild certain pre-installed rpm’s with the right versions to get tomcat to install. On my server, an x4200 (x86_64 AMD), you need to get the jdk-1_5_0_11-linux-amd64.bin file from somwehere. I googled around and got it here. The examples are for i586, so in lots of places you have to substitute the right architecture (x86_64) in place of i586.

It was pretty hairy, but it did seem to work. Who knows if it is REALLY working, but /sbin/service tomcat5 start didn’t complain when I ran it.

Install the right version of java

The install docs say Java 1.5 or better. CentOS 4.4 comes with 1.4. However, whatever I did with all the crazy rpm building stuff above magically updated the version. Yay. However the utinstall SRSS installer needs to know where the java is installed, and I don’t have a clue. The manual also says explicitly to use the 32 bit version. I’m pretty sure I installed a 64 bit server version. The SRSS zip file comes with a 32 bit jre1.5.0_11 installer in srss_4.0/Supplemental/Java_Runtime_Environment/Linux. I installed it in /usr/share.

Install SRSS

So next, I googled around for a howto of SRSS on CentOS 4.4. This one seemed promising.

Downloaded SRSS from Sun into /tmp. Unzipped them. Cd’d into srss_4.0. Started utinstall. Told it where the java was (see above, /usr/share/jre1.5.0_11). utinstall ran without apparent complaint!

#./utinstall
# utinstall   Version: 4.0     Thu Jul 19 14:35:37 PDT 2007
GDM 2.4.4.7.2                            not installed
Your system currently has gdm-2.6.0.5-7.rhel4.15 installed.
This rpm needs to be removed in order to install a new version of gdm.
Before removing, make sure gdm is not managing any displays and is stopped.
Remove gdm-2.6.0.5-7.rhel4.15? ([Y]/N): y
+++ gdm-2.6.0.5-7.rhel4.15
Sun Ray Server Software 4.0              not installed
Sun Ray Data Store 3.0                   not installed
Kiosk Mode                               not installed
Enter Java v1.5 (or later) location [/usr/j2se]: /usr/share/jre1.5.0_11
About to carry out the following operations:
Install  [ GDM 2.4.4.7.2 ]
Install  [ Sun Ray Server Software 4.0 ]
Install  [ Sun Ray Data Store 3.0 ]
Skip     [ Sun Ray Server Software 4.0 French Admin GUI is not available ]
Skip     [ Sun Ray Server Software 4.0 Japanese Admin GUI is not available ]
Skip     [ Sun Ray Server Software 4.0 Simplified Chinese Admin GUI is not available ]
Skip     [ Sun Ray Server Software not available ]
Install  [ Kiosk Mode 4.0 ]
Install  [ data for utslaunch ]
Continue? ([Y]/N): y
Installing GDM version 2.4.4.7.2 ...
+++ gdm-2.4.4.7.2-12.i386.rpm
Installing Sun Ray Server Software version 4.0 ...
+++ SUNWuti-4.0-26.i386.rpm
+++ SUNWuto-4.0-26.i386.rpm
+++ SUNWutfw-4.0-26.i386.rpm
+++ SUNWutr-4.0-26.i386.rpm
+++ SUNWutu-4.0-26.i386.rpm
+++ SUNWuta-4.0-26.i386.rpm
+++ SUNWutsto-4.0-26.i386.rpm
+++ SUNWutstr-4.0-26.i386.rpm
+++ SUNWutps-4.0-26.i386.rpm
+++ SUNWutkau-4.0-26.i386.rpm
+++ Making and installing Sun Ray Audio module ...
rm -rf .tmp_versions *.cmd *.ko *.o *.mod.c .*.cmd
make -C /lib/modules/2.6.9-55.0.2.ELsmp/build SUBDIRS=/usr/src/SUNWut/utadem modules
make[1]: Entering directory `/usr/src/kernels/2.6.9-55.0.2.EL-smp-x86_64'
CC [M]  /usr/src/SUNWut/utadem/utadem.o
Building modules, stage 2.
MODPOST
CC      /usr/src/SUNWut/utadem/utadem.mod.o
LD [M]  /usr/src/SUNWut/utadem/utadem.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.9-55.0.2.EL-smp-x86_64'
install -d /lib/modules/2.6.9-55.0.2.ELsmp/misc
install -c utadem.ko /lib/modules/2.6.9-55.0.2.ELsmp/misc
+++ Done.
+++ SUNWutio-4.0-26.i386.rpm
+++ Making and installing Sun Ray UTIO module ...
rm -rf .tmp_versions *.cmd *.ko *.o *.mod.c .*.cmd
make -C /lib/modules/2.6.9-55.0.2.ELsmp/build SUBDIRS=/usr/src/SUNWut/utio modules
make[1]: Entering directory `/usr/src/kernels/2.6.9-55.0.2.EL-smp-x86_64'
CC [M]  /usr/src/SUNWut/utio/utio.o
Building modules, stage 2.
MODPOST
CC      /usr/src/SUNWut/utio/utio.mod.o
LD [M]  /usr/src/SUNWut/utio/utio.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.9-55.0.2.EL-smp-x86_64'
install -d /lib/modules/2.6.9-55.0.2.ELsmp/misc
install -c utio.ko /lib/modules/2.6.9-55.0.2.ELsmp/misc
+++ Done.
+++ SUNWutdsk-4.0-26.i386.rpm
+++ Making and installing Sun Ray Mass Storage modules ...
rm -rf .tmp_versions *.cmd *.ko *.o *.mod.c .*.cmd
make -C /lib/modules/2.6.9-55.0.2.ELsmp/build SUBDIRS=/usr/src/SUNWut/utdisk modules
make[1]: Entering directory `/usr/src/kernels/2.6.9-55.0.2.EL-smp-x86_64'
CC [M]  /usr/src/SUNWut/utdisk/utdisk.o
CC [M]  /usr/src/SUNWut/utdisk/utdiskctl.o
Building modules, stage 2.
MODPOST
CC      /usr/src/SUNWut/utdisk/utdisk.mod.o
LD [M]  /usr/src/SUNWut/utdisk/utdisk.ko
CC      /usr/src/SUNWut/utdisk/utdiskctl.mod.o
LD [M]  /usr/src/SUNWut/utdisk/utdiskctl.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.9-55.0.2.EL-smp-x86_64'
install -d /lib/modules/2.6.9-55.0.2.ELsmp/misc
install -c utdisk.ko utdiskctl.ko /lib/modules/2.6.9-55.0.2.ELsmp/misc
+++ Done.
+++ SUNWutgsm-4.0-26.i386.rpm
+++ SUNWutref-4.0-26.i386.rpm
+++ SUNWlibusbut-4.0-26.i386.rpm
Installing Sun Ray Data Store version 3.0 ...
+++ SUNWutdso-3.0-03.i386.rpm
+++ SUNWutdsr-3.0-03.i386.rpm
Installing Sun Ray Server Software version 4.0 manpages ...
+++ SUNWutm-4.0-26.i386.rpm
+++ SUNWutwa-4.0-26.i386.rpm
+++ SUNWutwar-4.0-26.i386.rpm
+++ SUNWutwh-4.0-26.i386.rpm
+++ SUNWutwl-4.0-26.i386.rpm
Installing Kiosk Mode version 4.0 ...
+++ SUNWkior-4.0-26.i386.rpm
+++ SUNWkio-4.0-26.i386.rpm
+++ SUNWkiom-4.0-26.i386.rpm
Installation of Sun Ray Server Software has completed.
The system must be rebooted in order to complete this installation and
before starting the Sun Ray Server Software.

Restarted the box. Did the shared subnet config for my subnet, assigned a few ip’s to DHCP for the Sun Rays. Restarted the box. Connected a Sun Ray and success!

Get the admin GUI working

The manual talks a lot about the admin gui. It didn’t seem to be running. Read the install guide, didn’t see anything obvious. Googled a bit, hits said to run utconfig, which I don’t think was obviously in the manual. I did, like so:

[root@csl3 SUNWut]# utconfig
Configuration of Sun Ray Core Services Software
This script automates the configuration of the Sun Ray Core Services
software and related software products.  Before proceeding, you should
have read the Sun Ray Core Services 4.0 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)? y
Enter Apache Tomcat installation directory [/opt/apache-tomcat]: /usr/share/tomcat5
Enter HTTP port number [1660]:
Enable secure connections? ([y]/n)?
Enter HTTPS port number [1661]:
Enter Tomcat process username [utwww]: tomcat
Enable remote server administration? (y/[n])? y
Configure Sun Ray Kiosk Mode? (y/[n])? n
Configure this server for a failover group? (y/[n])? n
About to configure the following software products:
Sun Ray Data Store 3.0
Hostname: csl3.csc.calpoly.edu
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 Web Administration
Apache Tomcat installation directory: /usr/share/tomcat5
HTTP port number: 1660
HTTPS port number: 1661
Tomcat process username: tomcat
Remote server administration: Enabled
Sun Ray Core Services 4.0
Failover group: no
Sun Ray Kiosk Mode: no
Continue ([y]/n)?
Updating Sun Ray Data Store schema ...
Updating Sun Ray Data Store ACL's ...
Creating Sun Ray Data Store Datastore ...
Restarting Sun Ray Data Store ...
Starting Sun Ray Data Store daemon .
Thu Jul 19 19:58 : utdsd starting
Loading Sun Ray Data Store ...
Executing '/usr/bin/ldapadd -h csl3.csc.calpoly.edu -x -p 7012 -D cn=admin,o=utdata' ...
adding new entry "o=utdata"
adding new entry "o=v1,o=utdata"
adding new entry "utname=csl3.csc.calpoly.edu,o=v1,o=utdata"
adding new entry "utname=desktops,utname=csl3.csc.calpoly.edu,o=v1,o=utdata"
adding new entry "utname=users,utname=csl3.csc.calpoly.edu,o=v1,o=utdata"
adding new entry "utname=logicalTokens,utname=csl3.csc.calpoly.edu,o=v1,o=utdata"
adding new entry "utname=rawTokens,utname=csl3.csc.calpoly.edu,o=v1,o=utdata"
adding new entry "utname=multihead,utname=csl3.csc.calpoly.edu,o=v1,o=utdata"
adding new entry "utname=container,utname=csl3.csc.calpoly.edu,o=v1,o=utdata"
adding new entry "utname=properties,utname=csl3.csc.calpoly.edu,o=v1,o=utdata"
adding new entry "cn=utadmin,utname=csl3.csc.calpoly.edu,o=v1,o=utdata"
adding new entry "utname=smartCards,utname=csl3.csc.calpoly.edu,o=v1,o=utdata"
adding new entry "utordername=probeorder,utname=smartCards,utname=csl3.csc.calpoly.edu,o=v1,o=utdata"
adding new entry "utname=policy,utname=csl3.csc.calpoly.edu,o=v1,o=utdata"
adding new entry "utname=resDefs,utname=csl3.csc.calpoly.edu,o=v1,o=utdata"
adding new entry "utname=prefs,utname=csl3.csc.calpoly.edu,o=v1,o=utdata"
adding new entry "utPrefType=resolution,utname=prefs,utname=csl3.csc.calpoly.edu,o=v1,o=utdata"
adding new entry "utPrefClass=advisory,utPrefType=resolution,utname=prefs,utname=csl3.csc.calpoly.edu,o=v1,o=utdata"
Added 18 new LDAP entries.
Creating Sun Ray Core Services Configuration ...
Adding user account 'tomcat' to group 'utadmin'... done
Sun Ray Web Administration enabled to start at system boot.
Sun Ray Web Administration not running - /opt/SUNWut/webadmin/tmp/utwebadmin.pid does not exist
Starting Sun Ray Web Administration...
See /var/opt/SUNWut/log/utwebadmin.log for server logging information
Unique "/etc/opt/SUNWut/gmSignature" has been generated.
Restarting Sun Ray Data Store ...
Stopping Sun Ray Data Store daemon
.Sun Ray Data Store daemon stopped
Starting Sun Ray Data Store daemon .
Thu Jul 19 19:58 : utdsd starting
Adding user admin ...
User(s) added successfully!
***********************************************************
The current policy has been modified.  You must restart the
authentication manager to activate the changes.
***********************************************************
Configuration of Sun Ray Core Services has completed.  Please check
the log file, /var/log/SUNWut/utconfig.2007_07_19_19:50:29.log, for errors.

I then did a cold restart (utrestart –c). I could then get to localhost:1660 and localhost:1661.

It seems to be working… Time to kick the tires some more. Stay posted.

greg.porter

Leave a Reply

Your email address will not be published.