SRSS 4.1 (part of SRS4 10/08) on Debian/unstable
From Sun Ray User Group Wiki
Contents |
Installation
Note 1: This version of SRSS includes 64bit versions of the PAM modules. So it should also run on a Linux installation with 64bit userland. I didn't test this, we use 64bit kernel + 32bit userland.
Note 2: All commands should be executed as root. Ubuntu users can use "sudo -i" to get a root prompt.
Note 3: For another recipe, see http://wwwcip.informatik.uni-erlangen.de/~simigern/sunray-debian/4.1.html
Note 4: I only tested this on headless servers. There may be problems in this setup with Non-SunRay X sessions.
- Install some necessary packages:
apt-get install alien atftpd dhcp3-server gawk gdm iputils-ping ldap-utils libfreetype6 libgdbm3 \ libldap-2.4-2 libmotif3 module-assistant pdksh tk8.4 tomcat5.5 sun-java6-jre unzip xfonts-base xkb-data
- Unpack SRSS into some temporary directory:
unzip srss_4.1_linux.zip
- Convert the 32bit packages to deb packages:
find . -name SUNW*i386.rpm | xargs alien -d
- Install all resulting sunw*-packages:
dpkg -i sunw*deb
- Install Java for SRSS:
ln -s /usr/lib/jvm/java-6-sun/jre /etc/opt/SUNWut
- Download and apply the following patches: Media:Patch-SUNWut41-1.txt, Media:Patch-SUNWutref.txt, Media:Patch-SUNWkio.txt (SUNWut41 patch corrected 22th Dec.)
cd /opt patch -p0 < /path/to/Patch-SUNWut41-1.txt patch -p0 < /path/to/Patch-SUNWutref.txt patch -p0 < /path/to/Patch-SUNWkio.txt
- Put the Media:Zsunray-init41.sh into /etc/init.d/zsunray-init, and run
chmod 755 /etc/init.d/zsunray-init && update-rc.d zsunray-init defaults 99 01
- If you have no /etc/lsb-release file generate it with
echo "DISTRIB_ID=Debian" > /etc/lsb-release
- Some more preparations:
mkdir -p /var/dt rm -f /etc/opt/SUNWut/gmSignature touch /etc/opt/SUNWut/gmSignature umask 022 /etc/opt/SUNWut/gmSignature mkdir -p /var/lib/xkb ln -s /var/lib/xkb /opt/SUNWut/lib/xkb/compiled ln -s /usr/bin/xkbcomp /opt/SUNWut/lib/xkb/xkbcomp cd /usr/share/X11/ mv xkb xkb.bak ln -s /opt/SUNWut/lib/xkb . ln -s /etc/gdm/gdm.conf /etc/gdm/custom.conf mkdir -p /etc/sysconfig echo -e "DHCPD_CONF_INCLUDE_FILES\nDHCPD_INTERFACE" >/etc/sysconfig/dhcpd
- Create some library symlinks, patch pam configuration etc. (Ignore warnings about missing 64bit libraries.)
/etc/init.d/utsyscfg start sed -i -e 's/\$PLATFORM/i686/' /etc/opt/SUNWut/xinitrc.d/0100.SUNWut sed -i -e 's/\$PLATFORM/i686/' /etc/pam.d/gdm
- Edit /etc/pam.d/gdm. The SunRay entries should go first, but the utsyscfg script puts them after the @include ... statements.
Correct this.
- The utsyscfg script should have added the lines
VTAllocation=false DynamicXServers=true Greeter=/usr/lib/gdm/gdmgreeter RebootCommand= HaltCommand= XKeepsCrashing=/etc/opt/SUNWut/gdm/XKeepsCrashing.sunray
to the [daemon] section of /etc/gdm/custom.conf. In any case, here Media:Gdm41.txt is my working version.
- If you have not already configured the DHCP-server on your machine for other clients, you should empty the current config, so the Sun Ray Server Software adds its entries to a clean config and not the debian example one:
mv /etc/dhcp3/dhcpd.conf /etc/dhcp3/dhcpd.conf.sample; touch /etc/dhcp3/dhcpd.conf
If you have already configured the dhcp-server, make a backup-copy of your old config, just in case.
ln -s /opt/SUNWut/lib/libutdev.so.1 /usr/lib; ldconfig
- You can now configure the server with /opt/SUNWut/sbin/utconfig and /opt/SUNWut/sbin/utadm. See the SRSS documentation for possible options.
When you want to use the SRSS Web administration tool and utconfig asks for the "Apache Tomcat installation directory", answer /usr/share/tomcat5.5.
- For dhcp to work, the utadm script should have added some lines to your /etc/dhcp3/dhcpd.conf and restarted the dhcp-server. Example:
include "/etc/opt/SUNWut/net/dhcp/SunRay-options"; include "/etc/opt/SUNWut/net/dhcp/SunRay-interface-eth2";
- Use Debian's module-assistant to prepare the system for kernel module builds:
m-a -t prepare
- Apply the patch Media:Modulepatch41.txt and compile the kernel modules:
cd /usr/src/SUNWut patch -p1 < /path/to/Modulepatch41.txt make -C /usr/src/SUNWut/utadem clean default install make -C /usr/src/SUNWut/utio clean default install make -C /usr/src/SUNWut/utdisk clean default install depmod -a
The patch above includes the one from http://article.gmane.org/gmane.comp.audio.pulseaudio.general/495
For very new (2.6.28) kernels, see Niki Waibels patches: SRSS-4.1-50_on_Linux-2.6.18_.._-2.6.28-rc6-git1
- Put Media:10SUNWut.41b.sh into /etc/X11/Xsession.d/10SUNWut (Without the .sh suffix!)
- Remember: After (re-)starting GDM, you also need to restart the SunRay server software:
/etc/init.d/zsunray-init stop; /etc/init.d/zsunray-init start
- You are now ready to start the Sun Ray Server Software with: /etc/init.d/zsunray-init start
Some odds and ends
- Debian man should find all the SRSS manpages: add the lines
MANDATORY_MANPATH /opt/SUNWut/share/man MANDATORY_MANPATH /opt/SUNWuttsc/share/man MANDATORY_MANPATH /opt/SUNWkio/share/man
to /etc/manpath.config.
- Activate the XKB extension of the Sun Ray X server
/opt/SUNWut/bin/utxconfig -a -k on
Audio support via Pulseaudio
I decided to give pulseaudio a try and it seems to work very good. I could drop the LD_PRELOAD hack.
apt-get install pavucontrol pavumeter paman padevchooser paprefs pulseaudio \ pulseaudio-utils pulseaudio-module-gconf pulseaudio-module-hal \ pulseaudio-module-x11 libasound2-plugins gstreamer0.10-pulseaudio \ gnome-audio pulseaudio-esound-compat alsaplayer-alsa \ libgstreamer-plugins-pulse0.10-0
(This will remove esound.)
The following is a slight variation of http://www.mail-archive.com/sunray-users@filibeto.org/msg09965.html :
Drop Media:Utpulse.pa.txt into /usr/local/bin/utpulse.pa and Media:95SUNW-pulseaudio.txt into /etc/X11/Xsession.d/95SUNW-pulseaudio.
More hints about pulseaudio are at [1].
Installation of the Sun Ray Connector for Windows
unzip srwc_2.1_linux.zip cd srwc_2.1 find . -name *.rpm | xargs alien -d dpkg -i sunw*.deb /opt/SUNWuttsc/sbin/uttscadm -c
When the last command asks for the location of libcrypto.so.0.9.7, answer /usr/lib/libcrypto.so.0.9.8
Installation of patch 139550-01
unzip 139550-01.zip cd 139550-01
Read the Readme file. It contains additional instructions. Download and apply the following patches: Media:Patch-patch.txt, Media:Patch-SUNWutref.txt
/etc/init.d/zsunray-init stop find . -name SUNW*.rpm| xargs alien -d dpkg -i sunw*.deb cd /opt patch -p0 < /path/to/Patch-SUNWutref.txt patch -p0 < /path/to/Patch-patch.txt /opt/SUNWut/sbin/utfwadm -A -a -n all /etc/init.d/zsunray-init start
Meik 15:52, 29 December 2008 (EET)

