- Get SunRay Server Software 3.0 Beta (srss_3.0.tar.Z) from SUN (it seems to be gone from SUNs site, 2004-11-09)
- Extract it to a temporary working directory with tar xzf srss_3.0.tar.Z
- Execute the following snippet in a bash-shell:
for i in srss_3.0/Sun_Ray_Core_Services_3.0/Linux/Packages/* srss_3.0/Sun_Ray_Data_Store_2.0/Linux/Packages/* srss_3.0/GDM_2.4.4.7.1/Linux/Packages/*; do
alien -d "$i"
done
- Install all resulting sunw*deb-packages: dpkg -i sunw*deb
- Fix the ownership of the files (only on woody, not on sarge and up): chown -R root:root /opt/SUNWut /opt/SUNWutref /etc/opt/SUNWut
- Download and apply the following Patch: cd / && patch -p0 </path/to/sray-debian.patch
- Put the init-script into /etc/init.d, and run chmod 755 /etc/init.d/zsunray-init && update-rc.d zsunray-init defaults 99 20
- apt-get install ldap-utils dhcp3-server
- If your are using woody, get the libfreetype.so.6, put it into /opt/SUNWut/freetype (mkdir), rename /usr/X11R6/bin/Xnewt to /usr/X11R6/bin/Xnewt.bin,
get my Xnewt-script and put it into /usr/X11R6/bin/. Finally do a chmod 755 /opt/SUNWut/freetype/libfreetype.so.6 /usr/X11R6/bin/Xnewt
- Now you need a current java in /etc/opt/SUNWut/jre. Simply run /path/to/srss_3.0/Supplemental/Java_Runtime_Environment/Linux/j2re-1_4_2_03-linux-i586.bin in /etc/opt/SUNWut/ and mv j2re* jre
- You can now configure the server with /opt/SUNWut/sbin/utconfig and /opt/SUNWut/sbin/utadm and finally start it with /etc/init.d/zsunray-init start
- You have to manually configure the dhcp-server in /etc/dhcp3/dhcpd.conf. Example:
# dhcpd.conf
#Sun Ray
option space SunRay;
option SunRay.AuthSrvr code 21 = ip-address;
option SunRay.AuthSrvr 192.168.30.6;
option SunRay.FWSrvr code 31 = ip-address;
option SunRay.FWSrvr 192.168.30.6;
option SunRay.NewTVer code 23 = text;
option SunRay.NewTVer "3.0_34,REV=2004.07.23.14.21";
option SunRay.Intf code 33 = text;
option SunRay.Intf "eth2";
option SunRay.LogHost code 24 = ip-address;
option SunRay.LogHost 192.168.30.6;
option SunRay.LogKern code 25 = integer 8;
option SunRay.LogKern 6;
option SunRay.LogNet code 26 = integer 8;
option SunRay.LogNet 6;
option SunRay.LogUSB code 27 = integer 8;
option SunRay.LogUSB 6;
option SunRay.LogVid code 28 = integer 8;
option SunRay.LogVid 6;
option SunRay.LogAppl code 29 = integer 8;
option SunRay.LogAppl 6;
group
{
vendor-option-space SunRay;
subnet 192.168.30.0 netmask 255.255.255.128 {
default-lease-time 720000;
max-lease-time 1440000;
authoritative;
option routers 192.168.100.6;
range 192.168.30.11 192.168.30.111;
}
}
- You also need to manually assign the IP-addresses in /etc/network/interfaces (If you don't want to use only LAN-mode). Example (only sunray-interconnect):
auto eth2
iface eth2 inet static
address 192.168.30.6
netmask 255.255.255.128
network 192.168.30.0
broadcast 192.168.30.127
- If you have no /etc/X11/XF86Config, but a XF86Config-4, simply do
ln -s XF86Config-4 /etc/X11/XF86Config
- To get the SunRAY variables set upon login, add the following to /etc/X11/Xsession:
if [ -x /etc/X11/xinit/xinitrc.d/0100.SUNWut ]; then
SUN_SUNRAY_UTXLOCK_PREF=
export SUN_SUNRAY_UTXLOCK_PREF
set +e
. /etc/X11/xinit/xinitrc.d/0100.SUNWut
set -e
fi
- We use wdm to manage our logins, if you wish to do the same, get xmgr-wdm.tar and extract it to /opt/SUNWut/lib/xmgr and do the following:
apt-get install wdm
cd /etc/opt/SUNWut
rm xmgr
ln -s /opt/SUNWut/lib/xmgr/wdm xmgr
ln -s /tmp/SUNWut/config/xconfig/Xservers /etc/X11/wdm/Xservers
- Now finally copy wdm-config to /etc/X11/wdm and restart wdm.