Add Sunray to lan and configure multihead

Sunray No Comments

In a previous post i showed how to install the Sunray server and setup a dedicated interconnect, that is the Sunray plugs into the back of the Sunray server. Not very useful. To setup a Sunray so you can plug the terminals into the lan is just as easy.

# ./opt/SUNWut/sbin/utadm -A <subnet address>

Then just follow the couple of prompts, which will not differ greatly from the entries with the utadm command given in the previous post.

I also mentioned multihead in the last post. So let’s get multihead setup. First let’s check it’s configured.

heineken:/opt/SUNWut/sbin # ./utpolicy
# Current Policy:
-a -g -z both

I don’t see a ‘-m’, so i know multihead is not configured. Let’s configure it. By the way, if you run utpolicy with -h flag you will see what the options are and what they mean.

heineken:/opt/SUNWut/sbin # ./utpolicy -a -m -z both

And it will tell you a restart is required, and in this case a warm restart is sufficient.

heineken:/opt/SUNWut/sbin # ./utrestart

heineken:/opt/SUNWut/sbin # ./utpolicy
# Current Policy:
-a -m -z both

We now can create a multihead group. Note that the commands are different if you are using smart cards or not. This example will presume there are no smart cards.

heineken:/opt/SUNWut/sbin # ./utmhadm
no group(s) for multihead found.

Run the utdesktop -l command to determine the identifier of the Sunray terminals.

heineken:/opt/SUNWut/sbin # ./utdesktop -l

Desktop ID Location Other Info
————— ————————- ———————————–
0003baffa206 Wall desk
0003baffa2b9 Middle desk

2 desktops total.

heineken:/opt/SUNWut/sbin # ./utmhadm -a test-mh -g 2×1 -p 0003baffa2b9 -l 0003baffa2b9,0003baffa206
1 Group for multihead added.

heineken:/opt/SUNWut/sbin # ./utmhadm

Multihead Group Geometry CIDs
—————— —————— ——————————–
test-mh geometry=2×1 IEEE802.0003baffa2b9 (P)
IEEE802.0003baffa206

1 group total.

You will now see that only primary specified Sunray has a login screen. If i login to it then the other screen becomes the secondary.  To cancel it you just reverse the process.  First disable multihead:

heineken:/opt/SUNWut/sbin # ./utpolicy -a -g -z both

And restart:

heineken:/opt/SUNWut/sbin # ./utrestart

To delete the multihead group:

heineken:/opt/SUNWut/sbin # ./utmhadm -d test-mh
group deleted.

If you want to use smartcards then the utmhconfig command is used instead of utmhadm.

How to install and configure a Sunray server

Sunray No Comments

 

The hardware requirements for a Sunray server are at least 95mb of disk space shared across /, /opt and /var. Another 50-100mb approximately per user is required.

The software requirements are Java 1.5, Solaris 10 11/06, Apache Tomcat 5.5 and the latest recommended patch cluster.

heineken:/ # java -version
java version “1.5.0_12″
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_12-b04)
Java HotSpot(TM) Client VM (build 1.5.0_12-b04, mixed mode, sharing)

So my Java is ok, but i may as well download the newest version from www.java.com.

heineken:/ # cat /etc/release
Solaris 10 8/07 s10s_u4wos_12b SPARC
Copyright 2007 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 16 August 2007

My Solaris is ok as well, however i will download the latest recommended patch cluster from www.sunsolve.sun.com. And i will download Apache Tomcat from www.apache.org to round off the software requirements. So a bit of work required pre-install.

As root, cd to the directory where the Sunray server is. If you do not yet have it you can download it from http://www.sun.com/sunray.

heineken:/srss_4.0 # ./utinstall

And accept the license agreement. Presumably you do not want the French, Japanese or Chinese admin gui so answer no. Accept default for Java 1.5 location and then ‘y’ to commence the installation.

The install log with errors/warnings can be found at /var/adm/log/utinstall.2008_02_14_10:55:39.log. The system MUST now be rebooted.

heineken:/srss_4.0 # sync ; sync ; init 6

We will be setting up a dedicated private non-routed sunray network, which means the sunray terminals will plug into the back of the sunray server.

heineken:/ # cd /opt/SUNWut/sbin

Configure the sunray interconnect interface:
heineken:/opt/SUNWut/sbin # ./utadm -a qfe0

If you are happy with these values enter ‘y’, else enter ‘n’ to provide these values yourself.

Repeat these steps for every Sunray terminal in the environment. The documentation is excellent and will also provide other configuration options.

Now to configure the sunray server software:

heineken:/opt/SUNWut/sbin # ./utconfig

I mostly went with the defaults, but i did say no to kiosk mode. After this i can browse to http://localhost:1660 enter username/password as specified in previous steps and you can configure the sunray server via a web browser. There is another logfile which is /var/adm/log/utconfig.2008_02_14_12:29:51.log.

And that’s it, you should now see a login box on your Sunray terminal. Next time we will look at some more advanced sunray configuration options, such as using smartcards, user management and multi-head support. Also a more interesting option to install a Sunray from a router rather than from the server, which is very limiting.