C H A P T E R  7

Configuration

This chapter describes how to configure the Sun Ray server. Procedures in this chapter include:


Configuring the Sun Ray Server


procedure icon  To Configure a Dedicated Sun Ray Interconnect Interface

1. Log in as the superuser of the Sun Ray server, either locally or remotely.

2. Open a shell window and change to the following directory:


# cd /opt/SUNWut/sbin



Note - Make sure that the /etc/hosts file contains the following entry:
ip-address of the system hostname



3. Configure the Sun Ray interconnect interface:


# ./utadm -a interface-name

where interface-name is the name of the interface to the Sun Ray interconnect, for example: eth1.

The utadm script begins configuring DHCP for the Sun Ray interconnect, restarts the DHCP daemon, and configures the interface. The script then lists the default values and asks if they are acceptable.



Caution - If the IP addresses and DHCP configuration data are not set up correctly when the interfaces are configured, the failover feature cannot work properly. In particular, configuring the Sun Ray server's interconnect IP address as a duplicate of any other server's interconnect IP address may cause the Sun Ray Authentication Manager to generate "Out of Memory" errors.



4. If you are satisfied with the default values, and the server is not part of a failover group, answer y.

5. Otherwise, answer n and accept whatever default values are shown by pressing return or provide the correct values from the worksheet.

The utadm script prompts for the following:

6. The utadm script again lists the configuration values and asks if they are acceptable. Answer appropriately.

The utadm script configures the Sun Ray DTU firmware versions and restarts the DHCP daemon.

7. Repeat Step 1 through Step 6 for each of the secondary servers in your failover group.

8. Go to Configuring the Sun Ray Server.


procedure icon  To Configure the Sun Ray Server on a LAN

1. Log in as the superuser of the Sun Ray server.

You can log in locally or remotely use the rlogin or telnet commands.

2. Open a shell window and change to the following directory:


# cd /opt/SUNWut/sbin

3. Configure the Sun Ray LAN subnet:


# ./utadm -A subnet#

Where subnet# is the name (really a number) of the subnet, such as 192.168.128.0.

The utadm script begins configuring DHCP for the Sun Ray interconnect, restarts the DHCP daemon, and configures the interface. The script then lists the default values and asks if they are acceptable.



Caution - If the IP addresses and DHCP configuration data are not set up correctly when the interfaces are configured, the failover feature cannot work properly. In particular, configuring the Sun Ray server's subnet IP address as a duplicate of any other server's subnet IP address may cause the Sun Ray Authentication Manager to throw "Out of Memory" errors.



4. If you are satisfied with the default values, and the server is not part of a failover group, answer y.

5. Otherwise, answer n and accept whatever default values are shown by pressing return or provide the correct values from the worksheet.

The utadm script prompts for the following:

6. The utadm script again lists the configuration values and asks if they are acceptable. Answer appropriately.

7. Repeat Step 1 through Step 6 for each of the secondary servers in your failover group. See To Configure Sun Ray Server Software.

8. Proceed to To Configure Sun Ray Server Software.


procedure icon  To Turn the Sun Ray LAN Connection On or Off

When you configure a Sun Ray server for a shared network, the utadm -A command enables the server's LAN connection. If you do not use utadm -A, however, and you still wish to enable or disable the LAN connection, use this procedure.

When the LAN connection is turned off, Sun Ray DTUs on the LAN cannot attach to the server.



Tip - If you plan to use an existing DHCP server to provide Sun Ray parameters, use this procedure to turn the LAN connection on or off on the Sun Ray server.



1. Log in as the superuser of the Sun Ray server, either locally or remotely.

2. Turn the Sun Ray LAN connection on:


# /opt/SUNWut/sbin/utadm -L on



Tip - Use utadm -l to verify the current setting for Sun Ray LAN connection. To disable all Sun Ray LAN connections, use utadm -L off.



3. Restart services as prompted:


# utrestart


procedure icon  To Configure Sun Ray Server Software

1. If you have not already done so, log in as the superuser of the Sun Ray server.

You can log in locally or remotely use the rlogin or telnet commands.

2. Open a shell window and change to the following directory:


# cd /opt/SUNWut/sbin

3. Configure Sun Ray Server Software


# ./utconfig

4. Accept the default utconfig values shown by pressing Return or provide the correct values from the worksheet.

The utconfig script prompts for the following:



Note - All servers in a failover group must use the same administration password.





Note - You may not want to use the existing Apache Web Server if it is already configured for another purpose



The utconfig script begins configuring Sun Ray Server Software.

The Sun Ray Data Store is restarted.



Note - The utconfig script states that you must restart the authentication manager. This happens automatically when you reboot the Sun Ray server.



The utconfig script ends, indicating a log file is available at the following locations:


/var/log/SUNWut/utconfig.year_month_date_hour:minute:second.log

Where the year, month, etc are represented by numeric values reflecting the time utconfig was started.

5. Repeat Step 1 through Step 4 for each secondary server if in a failover group.

6. Do one of the following:


procedure icon  To Configure the Sun Ray Server Hierarchy

Perform this task after all servers in the failover group have been configured.



Note - If a common home directory is mounted on machines with different Gnome versions, conflicts between or among the versions cause unpredictable behavior. Do not try to use multiple Gnome versions with a common home directory.



1. If you have not already done so, log in as the superuser of the primary Sun Ray server.

You can log in locally or remotely use the rlogin or telnet commands.

2. Open a shell window and change to the following directory:


# cd /opt/SUNWut/sbin

3. Configure this server as the primary Sun Ray server and identify all secondary servers.


# ./utreplica -p secondary-server1 secondary-server2 ...

Where secondary-server1, secondary-server2, ... identifies the host names of the secondary servers. Include all secondary servers in this command.

The utreplica script:

4. Log in as the superuser of a secondary Sun Ray server.

You can log in locally or remotely using the rlogin or telnet commands.

5. Open a shell window and change to the following directory:


# cd /opt/SUNWut/sbin

6. Configure the server as a secondary Sun Ray server and identify the primary server.


# ./utreplica -s primary-server

Where primary-server is the host name of the primary server configured in Step 3.

7. Repeat Step 4 through Step 6 for all remaining secondary servers.

8. When you are finished, go to To Synchronize the Sun Ray DTU Firmware.


procedure icon  To Synchronize Primary and Secondary Sun Ray Servers

Log files for Sun Ray servers contain time-stamped error messages which are difficult to interpret if the time is out of sync. To make troubleshooting easier, please make sure that all secondary servers periodically synchronize with their primary server. For instance:


# rdate <primary-server>


procedure icon  To Synchronize the Sun Ray DTU Firmware



Note - This task is performed on standalone Sun Ray servers or the last Sun Ray server configured in a failover group. If your server is not one of these, see To Reboot the Sun Ray Server.



1. If you have not already done so, log in as the superuser of the Sun Ray server.

You can log in locally or remotely using the rlogin or telnet commands.

2. Open a shell window and change to the following directory:


# cd /opt/SUNWut/sbin

3. Synchronize the Sun Ray DTU firmware:


# ./utfwsync

The Sun Ray DTUs will reboot themselves and load the new firmware.

4. When you are finished, go to To Reboot the Sun Ray Server for instructions how to reboot the server.


procedure icon  To Configure an HTTP Server Manually

To successfully configure an HTTP server to host the Sun Ray Administration Tool (Admin GUI), you must choose to configure the web server manually in utconfig. The utconfig script creates the directories, symbolic links, and user/group identities required to operate the Admin GUI.

Any web server can be manually configured to host the Admin GUI as long as:

The best way to manually configure a web server is to look at /etc/opt/SUNWut/http/http.conf after running utconfig. This file contains all the specific parameters and values you will need to manipulate in order to properly configure the web server.

For manual configuration, the key components needed to make a web server work with the Sun Ray Admin GUI are:


Component

Description

Comments

port number

Port number that the web server should listen on

The administrator can decide which port number to use.
The default is 1660.

document root

The root to the document tree structure (HTML, images, JavaScript, etc.)

The document root must be set to:

/var/opt/SUNWut/http/docroot - document root

server name

The name of the server the web server is running on

The name of the server where SRSS and the web
server are running.

cgi-bin

The directory where files are to be executed as cgi scripts

The cgi-bin directory is:

/var/opt/SUNWut/http/docroot/cgi-bin

user id

The user id that the web server should be run as

The user to run the web server as.
The default value is utwww.

group

The user group the web server should be run as

The group to run the web server as.
Only utadmin is used at this time.

aliases id

Any other directory aliases used by the HTML or CGI to point to specific directories

Some HTML and CGI files use aliases to access directories
in the document tree. These aliases need to be created
in order for everything to function properly:

/docroot

/var/opt/SUNWut/http/docroot/

/images/
/var/opt/SUNWut/http/docroot/public/images/

/javascript/
/var/opt/SUNWut/http/docroot/public/javascript/

homepage

The page where the server should start

Set to /var/opt/SUNWut/http/docroot/cgi-bin/start



procedure icon  To Reboot the Sun Ray Server

After following the configuration procedures, reboot the Sun Ray server(s).

1. If you have not already done so, log in as the superuser of the Sun Ray server.

You can log in locally or remotely use the rlogin or telnet commands.

2. Open a shell window and reboot the Sun Ray server:


# sync;sync;init 6

The Sun Ray server is rebooted.

3. Repeat Step 1 and Step 2 for each Sun Ray server.

See Appendix A for more information and procedures.