This document explains how to setup a basic Sun Ray Server on a public network.
NOTE: This configuration information herein is not supported by Sun Microsystems
See the "DON'T" section in INFODOC: 21168
Filesystem kbytes used avail capacity Mounted on /dev/dsk/c0t0d0s0 144172 43130 86625 34% / /dev/dsk/c0t0d0s6 1124452 762469 305761 72% /usr /dev/dsk/c0t0d0s3 963869 19102 886935 3% /var /dev/dsk/c0t0d0s5 1986439 193065 1733781 11% /cache /dev/dsk/c0t0d0s4 241403 40839 176424 19% /opt
Change to the directory that contains the Sun Ray server software media, typically /cdrom/sun_ray_12/ or the NFS share that might contain the media. As root enter the following command:
# ./utinstall
For all defaults and full server install, try:
# ./utinstall -f
The following command will setup the LDAP/WEB information along with the web admin passwords. Its ok to use the defaults. Don't forget your passwors that you set :)
# /opt/SUNWut/sbin/utconfig
set maxusers=2048 set maxuprc=150
set pt_cnt=1024 set npty=512
NOTE: be sure to only specify the -c. This will setup only the framework and not configure any private networks.
# /opt/SUNWut/sbin/utadm -c
SunRay m :LeaseTim=86400:LeaseNeg: AuthSrvr s Vendor=SUNW.NewT.SUNW,21,IP,1,1 AuthPort s Vendor=SUNW.NewT.SUNW,22,NUMBER,2,1 NewTVer s Vendor=SUNW.NewT.SUNW,23,ASCII,1,0 LogHost s Vendor=SUNW.NewT.SUNW,24,IP,1,1 LogKern s Vendor=SUNW.NewT.SUNW,25,NUMBER,1,1 LogNet s Vendor=SUNW.NewT.SUNW,26,NUMBER,1,1 LogUSB s Vendor=SUNW.NewT.SUNW,27,NUMBER,1,1 LogVid s Vendor=SUNW.NewT.SUNW,28,NUMBER,1,1 LogAppl s Vendor=SUNW.NewT.SUNW,29,NUMBER,1,1 FWSrvr s Vendor=SUNW.NewT.SUNW,31,IP,1,1 Intf s Vendor=SUNW.NewT.SUNW,33,ASCII,1,0
NOTE: Always stop in.dhcpd before hand editing any files in /var/dhcp
# /etc/init.d/dhcp stop
You will need to add two more entries. Change fields in blue to reflect your configuration.
mylab m :Include=SunRay:AuthSrvr=141.219.59.150:AuthPort=7009:LogHost=141.219.59.150:LogKern=6:LogNet=6:LogUSB=6:LogVid=6:LogAppl=6:
141.219.56.0 m :Broadcst=141.219.59.255:Subnet=255.255.252.0:MTU=1500:Router=141.219.56.1:FWSrvr=141.219.59.150:Intf=hme0:NewTVer=1.2_16.a,REV=2000.10.31.16.19:
| mylab | the name of the macro referenced from /var/dhcp/XXX_XXX_XXX_XXX (Step 7) |
| AuthSrvr=141.219.59.150 | Change to Sun Ray Server IP Address. |
| LogHost=141.219.59.150 | Change to syslog server IP Address. |
| 141.219.56.0 | Change to the name of the subnet network macro |
| Broadcst=141.219.59.255 | Change to subnet broadcast address. |
| Subnet=255.255.252.0 | Change to subnet netmask. |
| Router=141.219.56.1 | Change to subnet router IP address. |
| FWSrvr=141.219.59.150 | Change to Sun Ray firmware server IP address. |
| Intf=hme1 | Change to network interface serving the Sun Rays. |
The filename is derived from the subnet where the Sun Ray server resides, replacing "_" for ".". For example, Sun Rays in .cee.mtu.edu are on subnet 56. The filename we use would be 141_219_56_0. If you have two different Sun Ray servers on the same network they would have the same name for this file.
Entries in this file contain dhcp information for hosts requesting
dhcp packets from that network. In our setting, we do not use pools of
available addresses, so we hardcode each Sun Ray client to an IP
address.
For example:
Fields 1 2 3 4 5 6 01080020B584F8 03 141.219.59.52 141.219.59.150 -1 mylab 01080020B56D06 03 141.219.59.53 141.219.59.150 -1 mylab 01080020B5A7B8 02 141.219.59.54 141.219.59.150 0 mylab 01080020B5449F 02 141.219.59.55 141.219.59.150 0 mylab
| Field 1 | The ethernet address prepended with a "01". NOTE: all UPPER case for the ether address; mix the case and it won't work! |
| Field 2 | Lease definition. ('man pntadm' for more info on lease types) |
| Field 3 | IP address of the Sun Ray client requesting the lease |
| Field 4 | IP address of the DHCP server |
| Field 5 | When the lease assignment of the IP address expires. (-1 is never) |
| Field 6 | Macro assigment for rest of DHCP parameters, see /var/dhcp/dhcptab (Step 6) |
When finished with /var/dhcp/{dhcptab|141_219_x_x}, restart DHCP services.
# /etc/init.d/dhcp start
# /opt/SUNWut/sbin/utfwadm -a -A -n intf
# :0 Local local_uid@console root /usr/openwin/bin/Xsun :0 -nobanner
# BEGIN SUNRAY CONFIGURATION # END SUNRAY CONFIGURATION
# BEGIN SUNRAY CONFIGURATION # END SUNRAY CONFIGURATION
By default the Sun Ray server will not allow connections from a public network. This behavior can be altered by making a change in the file /etc/opt/SUNWut/auth.props
Change the parameter "allowLANConnections" to true. Be sure to uncomment the line for the paramter.
allowLANConnections = true
# /usr/sbin/reboot -- -r