Sun Ray Server Software 4.0 on openSUSE 10.2

From Sun Ray User Group Wiki

Jump to: navigation, search

To install SRSS 4.0 on openSUSE 10.2 some adjustments must be made. Thanks to Jörg Barfurth, who gave me some hints to get the gdm started.

Contents

Before running utinstall

  • Replace ksh with pdksh
rpm -e ksh-93r-41
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 gdm-2.16.1-36.4
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


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 gdm-2.4.4.7.2-10
rpm -i gdm-2.16.1-36.4.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


  • Set a couple of links
ln -s /opt/gnome/share/pixmaps /usr/share/pixmaps/gnome
ln -s /opt/gnome/bin/gdmdynamic /usr/bin/gdmdynamic
mv /opt/gnome/lib/gdm/gdmlogin /opt/gnome/lib/gdm/gdmlogin.original
ln -s /opt/gnome/lib/gdm/gdmgreeter /opt/gnome/lib/gdm/gdmlogin


  • 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/opt/gnome/gdm/gdm.conf
cp /etc/X11/gdm/gdm.conf.rpmsave /etc/opt/gnome/gdm/gdm.conf
  • and configure /etc/opt/gnome/gdm/gdm.conf to work with SRSS

This patch can be used to adjust gdm.conf

patch /etc/opt/gnome/gdm/gdm.conf < patch-gdm.conf

patch-gdm.conf:

40c40
< Configurator=/usr/bin/gdmsetup --disable-sound --disable-crash-dialog
---
> Configurator=/opt/gnome/sbin/gdmsetup --disable-sound --disable-crash-dialog
43c43
< Chooser=/usr/bin/gdmchooser
---
> Chooser=/opt/gnome/lib/gdm/gdmchooser
46c46
< Greeter=/usr/bin/gdmgreeter
---
> Greeter=/opt/gnome/lib/gdm/gdmgreeter
49c49
< RemoteGreeter=/usr/bin/gdmlogin
---
> RemoteGreeter=/opt/gnome/lib/gdm/gdmlogin
99c99
< ServAuthDir=/var/gdm
---
> ServAuthDir=/var/lib/gdm
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=/opt/gnome/share/gdm/themes

Reboot server and configure Sun Ray Server Software

  • 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


--Erik 02:10, 1 September 2007 (EEST)

Getting the 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.

  • 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 04:29, 11 September 2007 (EEST)


Patch 127555-01 installation

After following the patch README instructions, applying all RPMs:

rpm --nodeps -F --noscripts SUNWlibusbut-4.0-48.07.i386.rpm
rpm --nodeps -F --noscripts SUNWuta-4.0-48.07.i386.rpm
rpm --nodeps -F --noscripts SUNWutfw-4.0-48.07.i386.rpm
rpm --nodeps -F --noscripts SUNWuto-4.0-48.07.i386.rpm

the two files /etc/opt/SUNWut/xmgr/notify and /etc/opt/SUNWut/xmgr/reset-dpy have to be changed before rebooting.

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


More to change after patch installation:

Following files will be changed after patch installation. One has to readjust if necessary:


  • /opt/SUNWut/lib/keytables/keytable.map

If keyboard layout was modified before, like described in http://blogs.sun.com/ThinkThin/entry/using_sun_rays_with_non


  • /etc/SunRay-interface-eth1

If MTU was altered before, like described in http://blogs.sun.com/ThinkThin/entry/the_importance_of_mtu

Personal tools