Ubuntu

From Sun Ray User Group Wiki

Jump to: navigation, search

Contents

SRSS on Ubuntu

Getting SRSS installed on the unsupported Ubuntu distribution has been a hit and miss experience for many users. This page tries to make this a much simpler install.

To install SRSS 3.1.1 on Ubuntu you will need to download the following two files:

ubuntu-srss-install-2.sh - The install helper. Installs SRSS, converts packages, adds file system changes, etc. This updated version fixes some color error messages.
srss311-Debian-Ubuntu-patch-2007.04.05 - The installer will use this patch to patch the SRSS scripts/etc, so that it functions properly on Ubuntu. This patch should work for all Debian distributions, but I've only tested on Ubuntu Dapper and Edgy.

All changes to the code as to not clobber existing logic or file names, but I added checking/switching to the locations/names/etc found in Debian based distributions.

To Install

  1. Make sure that you have universe and metaverse repositories enabled.
  2. Get all updates (apt-get update; apt-get -Y upgrade)
  3. Give your system a static host name and IP address for at least one if its interfaces
  4. Put the above referenced files and srss_3.1.1.zip in the same directory
  5. sudo ubuntu-srss-install.sh
  6. When the script finishes, *reboot*.
  7. You may now do your SRSS configuration (utconfig, utadm, etc)

Everything seems to work at the moment, TFTP, DHCP, Apache2 Admin interface, utadm, utxlock on card removal, sound, etc. Note that there is a problem with sound from SRSS running on Linux under VMWare Server.

The following pages were a great help to get started, but were terribly complex for most folks, and were missing some key components and functionality:

UbuntuOnSunRay
Sun Ray on Debian

Gory Details

The following tries to outline the major differences in the Debian distributions vs. the SRSS supported distributions and the SRSS components it affects.

  • Packages are in deb format, not RPM - Affects the installer, utprodinfo, and /opt/SUNWut/sbin/utconfig, /opt/SUNWut/sbin/utreplica . The install helper converts the RPMs to debs using alien which doesn't convert the post/pre install scripts which need to be performed immediately.
  • Default Apache is apache2. Apache home is /etc/apache2/apache.conf - This required changes to /opt/SUNWut/lib/support_lib/sras_config and required the creation of another .tpl template apache.conf
  • dhcp server package is called dhcp3-server, and it's configuration files live in /etc/dhcp3/dhcpd.conf, the lock file, example files, init files are in different locations- Affects /opt/SUNWut/lib/dhcp/isc/dhcp_config_linux, /opt/SUNWut/lib/dhcp/isc/utdhcpservice, /opt/SUNWut/sbin/utadm, /opt/SUNWut/sbin/utconfig
  • The sort command now requires different switches for the same behavior - Affects utselect
  • screensaver command is gnome-screensaver-command - affects utxlock
  • There is no /etc/sysconfig directory, there is no setting for CHROOTED dhcp server - Affects /opt/SUNWut/lib/dhcp/isc/dhcp_config_linux
  • gdm is called gdm-binary - affects /opt/SUNWut/lib/xmgr/gdm/notify, and /opt/SUNWut/lib/xmgr/gdm/reset-dpy
  • Binaries live in /usr/bin, not /bin - /opt/SUNWut/lib/utadmingid, /opt/SUNWut/lib/utdmsession
  • The default Xorg config files is Xorg.conf, no XF86config - /opt/SUNWut/lib/utxsun
  • Network configuration lives in /etc/network/intervaces and not in ifcfg- files - /opt/SUNWut/sbin/utadm
  • Debian/ubuntu uses update-rc.d and not chkconfig for installing init.d scripts
  • Debian/Ubuntu does not parse xinitrc.d, instead it uses /etc/X11/Xsession.d. The whole startup sequence is different. the $command variable isn't passed the same way through the setup files
  • gnome-secreensaver command uses dbus to control the screensaver. Since utaction/utxlock is started before the dbus, it didn't have the right env to find the dbus.
  • Xnewt has hard coded pointers to XKeysymDB and rgb.txt which are in different locations on Ubuntu
  • utaudio kernel modules can't be used by libesd-alsa. - I don't think that they are alsa compliant
  • Good News.... GDM as delivered with Ubuntu Edgy works perfectly with SRSS - gdmdynamic is all good.
  • with ipv6 utseclect is broken
  • an update of the gdm will kill the Displays and the terminals remain stuck in 26C if there is no active session

Files Changed with the Patch

/etc/init.d/utsvc
/etc/opt/SUNWut/http/templates/apache.tpl.debian
/opt/SUNWut/bin/utselect
/opt/SUNWut/bin/utxlock
/opt/SUNWut/lib/dhcp/isc/dhcp_config_linux
/opt/SUNWut/lib/dhcp/isc/utdhcpservice
/opt/SUNWut/lib/support_lib/sras_config
/opt/SUNWut/lib/xmgr/gdm/notify
/opt/SUNWut/lib/xmgr/gdm/reset-dpy
/opt/SUNWut/lib/utadmingid
/opt/SUNWut/lib/utdmsession
/opt/SUNWut/lib/utprodinfo
/opt/SUNWut/lib/utxsun
/opt/SUNWut/sbin/utadm
/opt/SUNWut/sbin/utconfig
/opt/SUNWut/sbin/utreplica
Personal tools