Sun Ray Server Software 3.1.1 on Fedora Core 6
From Sun Ray User Group Wiki
Reposted with thanks to the individual who made this possible with updates.
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 make sure SELinux is disabled unless you are savy with it as it will cause problems.
Openoffice 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.
Note1: Please note the patches for x86_64 bit were obtained from the Installing Sun Ray Server on Debian instructions.
1. Ensure you have ALL updates to Fedora, especially kernel updates.
2. Download and unpack the SRSS software bunlde
3. Install the required packages:
yum install mksh compat-openldap glib-1.2.10 tftp-server dhcp openldap*
4. cd /bin && mv ksh ksh.fedora && ln -s mksh ksh && cd -
(note: if ksh does not exist, ln -s /bin/mksh /bin/ksh and ln -s /bin/mksh /usr/bin/ksh)
5. telinit 3, relogin as root. Edit /etc/inittab make default runlevel 3 (can revert once
gdm working at end of install)
6. Install Java as per normal:
In this example I used Sun JDK 1.5.0_12 and needed:
cd /usr && ln -s java/jdk1.5.0_12 j2se
(if you don't want to download it, it comes as part of the Supplemental directory
along with apache tomcat. both can be installed in /opt if desired)
Ensure that the link /etc/opt/SUNWut/jre points to your java installation
directory such that /etc/opt/SUNWut/jre/bin/java resolves. Check this following
the RPM installations in step 9.
7. mkdir /usr/X11R6 && cd /usr/X11R6 && mkdir lib && rm -rf bin && ln -s ../bin && cd lib && ln -s ../../share/X11
8. cd /usr/lib and....
* ln -s libldap-2.2.so.7 libldap.so.199
* ln -s liblber-2.2.so.7 liblber.so.199
* ln -s libgdbm.so libgdbm.so.3
9. Add packages
-- you will get some failures in audio device compilation
and utio module compilation. Ignore for now.
On kernel 2.6.24, bio_endio needs to be adapted and
the __WORDSIZE needs to be set. diff will be included later.
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/*
(note if you want to skip steps 10 and 11, create an empty config.h in the
kernel-headers include/linux directory.)
10. cd /usr/src/SUNWut/utio Edit utio.c to remove #include line. make && make install
11. cd /usr/src/SUNWut/utadem Edit utadem.c to remove #include line. make && make install
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 Image:Gdm-custom.txt file (rename to
custom.conf).
at this point 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.
13a. Add a .sh to the following 2 files in /etc/X11/xinit/xinitrc.d
ln -s 0010.SUNWut.xdmEnv 0010.SUNWut.xdmEnv.sh
ln -s 0100.SUNWut 0100.SUNWut.sh
14. reboot
15. telinit 5. Ensure gdm runs normally on local console. You may re-enable default
runlevel 5 here if you want.
16. configure SRSS as per normal. NOTE: only tested with utadm -L on method (utadm,
utconfig, utrestart)
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:/home/bisgrs/bin UTAUDIODEV=/tmp/SUNWut/dev/utaudio/utdsp-0

