Sun Ray Server Software 3.1.1 on Fedora Core 6

From Sun Ray User Group Wiki

Jump to: navigation, search

Sun Ray Session Server Software 3.1.1 4.0 and 4.1 on Fedora Core 6 or Fedora 8

Double Note: Hotdesking seems to go into a cycle of 26D to 14D and then it goes back to 26D on Sun Ray Session server 4.1 10/08. This is described in http://www.mail-archive.com/sunray-users@filibeto.org/msg10806.html and solutions are suggested. The solution being used right now is to go to the Advanced System Policy on the Web Administration pages, and under Session Access when Hotdesking select Direct Session Access Allowed.

Note: Testing has not been completed on the x86_64 which involve modification to the modules code and information is not available at this time. Please note the patches for x86_64 bit were obtained from the Installing Sun Ray Server on Debian instructions.

Note: Please make sure SELinux is disabled unless you are savy with it as it will cause problems prior to starting installation.


Note: Please make sure your firewall is disabled or configured to allow for Sun Ray traffic prior to installation. A partial list of ports, not verified is: 4040/tcp;7007/tcp;7010/tcp;7014/tcp;7015/tcp

Note: For running openoffice the environment variable SAL_NOOPENGL=true

  env SAL_NOOPENGL=true ooffice

Otherwise you will get soffice.bin: xcb_io.c:452: _XRead: Assertion `dpy->xcb->reply_data != 0' failed. soffice.bin: xcb_io.c:182: process_responses: Assertion `((int) (((dpy->last_request_read)) - ((dpy->request))) <= 0)' failed.

Note: utwho and utfwload in SRSS 3.1.1 and SRSS 4.0 use sort +1. This needs to be changed to be sort -k 1.


1. Ensure you have ALL updates to Fedora, especially kernel updates. Disable SELinux and the Linux Firewall.

2. Download and unpack the SRSS 3.1.1, 4.0, or 4.1 software bundle.

3. Install packages needed by SRSS

         yum install mksh compat-openldap glib-1.2.10 tftp-server dhcp openldap*

4. Change out the ksh implementation:

           cd /bin && mv ksh ksh.fedora && ln -s mksh ksh && cd -

if ksh does not exist already then

            ln -s /bin/mksh /bin/ksh && ln -s /bin/mksh /usr/bin/ksh

4a. Add a link for nawk *currently in testing for SRSS 4.1*

            cd /bin && ln -s awk nawk && cd -

6. Install Java and Apache from the Supplemental Directory in SRSS distribution.

7. Make it easy for the SRSS to find Java

               cd /usr && ln -s /opt/jre1.5.0_11/ j2se
               cd /opt && ln -s /opt/apache-tomcat-5.5.20 apache-tomcat

8. Setup symbolic links:

     mkdir -p /usr/X11R6 && cd /usr/X11R6 && mkdir -p lib && rm -rf bin && ln -s ../bin && cd lib && ln -s ../../share/X11
     cd /usr/lib && ln -s libldap-2.2.so.7 libldap.so.199 && ln -s liblber-2.2.so.7 liblber.so.199 && ln -s libgdbm.so.2 libgdbm.so.3

9. Add packages

         rpm -i --nodeps Sun_Ray_Core_Services_*/Linux/Packages/* 
         rpm -i --nodeps Sun_Ray_Data_Store_*/Linux/Packages/*
         rpm -i --nodeps Kiosk_Mode_*/Linux/Packages/*i386*

10. Ensure that the link /etc/opt/SUNWut/jre points to your java installation directory such that /etc/opt/SUNWut/jre/bin/java resolves.

11. See http://wiki.sun-rays.org/index.php/SRSS-4.1-28_on_Linux-2.6.26 Any remaining #include linux/config.h need to be commented out of the module source code. Use this script derived from this step File:Change modules.sh.txt


12. Edit /etc/inittab, change the following line:

     x:5:once:/etc/X11/prefdm -nodaemon

to

     x:5:once:/usr/sbin/gdm

13. Replace /etc/gdm/custom.conf with the attached File:Gdm-custom.txt file (rename to custom.conf). Run

     /opt/SUNWut/sbin/utquery 

and you should get the command line instructions. if you receive a relocation error, SELinux is not disabled or configured properly. The custom.conf file specfies Init, Pre and Post execution scripts provided by the SunRay installation. These scripts now live in /etc/opt/SUNWut/gdm or can be found in the 3.1.1 installation in /etc/X11/gdm directory.

13a. Add a .sh to the following 2 files:

      cd /etc/X11/xinit/xinitrc.d  &&  ln -s 0010.SUNWut.xdmEnv 0010.SUNWut.xdmEnv.sh && ln -s 0100.SUNWut 0100.SUNWut.sh

14. reboot

15 & 16. configure SRSS as per normal. NOTE: only tested with utadm -L on method (utadm, utconfig, utrestart). utadm -c to create the interconnect, etc.

17. on the Sun Ray terminal, once logged in:

        a. Check the environment variables (will not be exact) with   
                 env | grep SUN

If things aren't working as expected, the first place to look is in the log files under /var/opt/SUNWut/log.

UTDEVROOT=/tmp/SUNWut/sessions/11/unit SUN_SUNRAY_TOKEN=XXXXXXXXXXXXXXX DTDEVROOT=/tmp/SUNWut/sessions/11 AUDIODEV=/tmp/SUNWut/dev/utaudio/utdsp-0 PATH=/usr/kerberos/bin:/usr/local/bin:/usr/local/sbin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/bin/X11:/usr/games:/opt/SUNWut/bin UTAUDIODEV=/tmp/SUNWut/dev/utaudio/utdsp-0

Personal tools