Sun Ray Server Software 4.0 on openSUSE 10.3
From Sun Ray User Group Wiki
To install SRSS 4.0 on openSUSE 10.3 following adjustments have to be made.
Contents |
Before running utinstall
- Replace ksh with pdksh
rpm -e ksh-93s-48.2 rpm -i pdksh-5.2.14-822.i586.rpm
I found the package at http://lisa.gov.pt/ftp/suse/update/10.2/rpm/i586. But it should be available on every openSUSE mirror.
- Enable tftp with yast2
- tftp will be switched on at Network Services->Network Services (xinetd)
- Copy file gnome.desktop for later use
cp /usr/share/xsessions/gnome.desktop /usr/share/xsessions/gnome.desktop.original
- Remove the installed gdm package and replace it with the SRSS gdm package
rpm -e --nodeps gdm-2.20.0-7 rpm -i --force --nodeps GDM_2.4.4.7.2/Linux/Packages/gdm-2.4.4.7.2-10.i386.rpm
- Save file Xsession for later
cp /etc/X11/gdm/Xsession /etc/X11/gdm/Xsession.original
- Set a couple of links that openSUSE gdm works with SRSS 4.0
ln -s /usr/share/X11 /usr/X11R6/lib/X11 ln -s /usr/lib/xserver /usr/X11R6/lib/X11/xserver ln -s /usr/bin/Xorg /usr/X11R6/bin/X ln -s /usr/bin/xdpyinfo /usr/X11R6/bin/xdpyinfo ln -s /usr/bin/xrdb /usr/X11R6/bin/xrdb ln -s /usr/bin/xset /usr/X11R6/bin/xset
- Set these links to get ldap work correctly
ln -s /usr/lib/liblber-2.3.so.0.2.25 /usr/lib/liblber.so.199 ln -s /usr/lib/libldap-2.3.so.0.2.25 /usr/lib/libldap.so.199
Install SRSS 4.0 with utinstall
Before rebooting the server, after using utinstall perform following steps:
After running utinstall (before reboot)
- Yet again, replace the gdm package. This time remove SSRS gdm and install the newest gdm package
rpm -e --nodeps gdm-2.4.4.7.2-10 rpm -i /media/SU1030.001/suse/i586/gdm-2.20.0-7.i586.rpm
- Copy back gnome.desktop and Xsession
cp /usr/share/xsessions/gnome.desktop.original /usr/share/xsessions/gnome.desktop cp /etc/X11/gdm/Xsession.original /etc/X11/gdm/Xsession mv /etc/gdm/Xsession /etc/gdm/Xsession.orig ln -s /etc/X11/gdm/Xsession /etc/gdm/Xsession
- Move xmodmap away (Thanks to Frank Müller)
mv /usr/bin/xmodmap /usr/bin/xmodmap.orig
- Set a couple of links
ln -s /usr/share/pixmaps /usr/share/pixmaps/gnome
mv /usr/lib/gdm/gdmlogin /usr/lib/gdm/gdmlogin.original ln -s /usr/lib/gdm/gdmgreeter /usr/lib/gdm/gdmlogin
ln -s /etc/X11/xinit/xinitrc.d/0010.SUNWut.xdmEnv /etc/X11/xinit/xinitrc.d/0010.SUNWut.xdmEnv.sh ln -s /etc/X11/xinit/xinitrc.d/0100.SUNWut /etc/X11/xinit/xinitrc.d/0100.SUNWut.sh
- Needed for Xnewt
ln -s /usr/share/fonts /usr/X11R6/lib/X11/fonts
- Change one line in files /etc/opt/SUNWut/xmgr/notify and /etc/opt/SUNWut/xmgr/reset-dpy
patch /etc/opt/SUNWut/xmgr/notify < patch-notify patch /etc/opt/SUNWut/xmgr/reset-dpy < patch-notify
This patch can be used to adjust notify and reset-dpy
patch-notify:
12c12 < DMNAME=gdm-binary --- > DMNAME=gdm
- Copy file /etc/X11/gdm/gdm.conf.rpmsave to /etc/gdm/custom.conf
cp /etc/X11/gdm/gdm.conf.rpmsave /etc/gdm/custom.conf
- and configure /etc/gdm/custom.conf to work with SRSS
This patch can be used to adjust custom.conf
patch /etc/gdm/custom.conf < patch-gdm.conf
patch-gdm.conf:
40c40 < Configurator=/usr/bin/gdmsetup --disable-sound --disable-crash-dialog --- > Configurator=/usr/sbin/gdmsetup --disable-sound --disable-crash-dialog 43c43 < Chooser=/usr/bin/gdmchooser --- > Chooser=/usr/lib/gdm/gdmchooser 46c46 < Greeter=/usr/bin/gdmgreeter --- > Greeter=/usr/lib/gdm/gdmgreeter 49c49 < RemoteGreeter=/usr/bin/gdmlogin --- > RemoteGreeter=/usr/lib/gdm/gdmlogin 99c99 < ServAuthDir=/var/gdm --- > ServAuthDir=/var/lib/gdm 103c103 < BaseXsession=/etc/X11/gdm/Xsession --- > BaseXsession=/etc/gdm/Xsession 123c123 < FlexibleXServers=0 --- > FlexibleXServers=5 133a134,135 > # SunRay access > DynamicXServers=true 240c242 < LocaleFile=/etc/X11/gdm/locale.alias --- > LocaleFile=/usr/share/locale/locale.alias 309,310c311,312 < GraphicalTheme=circles < GraphicalThemeDir=/usr/share/gdm/themes/ --- > GraphicalTheme=GDM-SuSE > GraphicalThemeDir=/usr/share/gdm/themes
Reboot server and configure Sun Ray Server Software
- Change /opt/SUNWut/lib/utwebadmin to get WebAdmin running (Thanks to Frank Müller, who figured that out)
This patch can be used to adjust utwebadmin
patch /opt/SUNWut/lib/utwebadmin < patch-utwebadmin
patch-utwebadmin:
796c796
< su ${SU_SHELL} ${PROCESS_USERNAME} -c "pwd >/dev/null 2>&1" >/dev/null 2>&1
---
> su ${PROCESS_USERNAME} -c "pwd >/dev/null 2>&1" >/dev/null 2>&1
814c814
< su ${SU_SHELL} ${PROCESS_USERNAME} -c "$ECHO \"\" > $touchFile 2>&1" >/dev/null 2>&1
---
> su ${PROCESS_USERNAME} -c "$ECHO \"\" > $touchFile 2>&1" >/dev/null 2>&1
824c824
< su ${SU_SHELL} ${PROCESS_USERNAME} -c "nohup ${TMP_SH} >/dev/null 2>&1"
---
> su ${PROCESS_USERNAME} -c "nohup ${TMP_SH} >/dev/null 2>&1"
- Install Apache Tomcat:
tar xzf Supplemental/Apache_Tomcat/apache-tomcat-5.5.20.tar.gz
- utconfig
- utadm -a eth1
- (make sure your firewall settings are correct after enabling the network interface)
- utadm -L on
- utrestart
Getting utadem, utio, and utdisk modules to work
The modules which are included with SRSS 4.0 don't work correctly on "newer" 2.6 kernels (> 2.6.10 for 64bit mode, > 2.6.16 for USB storage). In order to get them to work with openSUSE 10.2 apply patch: Media:Patch-modules-SRSS4-0907.txt. The patch was adjusted by Meik Hellmund to work with SRSS 4.0. The original patch for SRSS 3.1.1 could be found at the page of Michael Gernoth and Thomas Glanzmann. Thanks to Michael Gernoth, Thomas Glanzmann and Meik Hellmund for their excellent work.
Note: The packages "kernel-source" and "gcc" needs to be installed in order to perform this.
- patch all modules:
# patch -p0 -d /usr/src < Patch-modules-SRSS4-0907.txt
- recompile and install them:
make -C /usr/src/SUNWut/utadem clean default install make -C /usr/src/SUNWut/utdisk clean default install make -C /usr/src/SUNWut/utio clean default install depmod -a
- reboot if necessary
--Erik 23:27, 28 October 2007 (EET)
What to do after Online Update
After performing an online update your SunRay greets you with the dreaded 26D error code and the Xserver fails to load. This is because when various X.org packages, namely xorg-x11-server and xorg-x11-libX11, were upgraded a few of the soft link created at == After running utinstall (before reboot) == were removed and need to be recreated. At a minimum recreate the following soft links will need to be recreated. On multi-user production systems disabling automatic Online Updates is recommended.
- Recreate soft links
ln -s /usr/share/X11 /usr/X11R6/lib/X11 ln -s /usr/lib/xserver /usr/X11R6/lib/X11/xserver ln -s /usr/share/fonts /usr/X11R6/lib/X11/fonts
- Disabling Online update
rm /etc/cron.d/yast2-online-update
-- Darinper 17:29, 2008-05-28 (EDT)

