A hot Sunny affair

March 26th, 2009 at 3:03 · Filed Under Ada, Computing, Linux, Mac OS X, Solaris 

I have been hesitating for another hot Sunny affair since the last one about three years ago. This is just another one I have been longing since then. The recent eclipse of Sun resurrects my overwhelming but sleeping desire. Although this happened near the time when Sun is setting, but it is never too late to do it again because Sunset is beautiful and romantic.

Will Sun set and never rise again? Here is my encounter of the hot Sunny affair.

In October 2006, I installed Solaris 10 on an Intel box code-named, Pyxis1 (I love to name my computers after the name of a planet, a star or a constellation). The installation was successful but I could not get it to configured to work correctly. Some of the configuration would disappear every time I restarted the server. I could not find the reasons and I was on tight schedule to get the server up and running. I replaced Solaris 10 with Debian and eventually with Ubuntu. Read the story here.

Solaris 10, in my opinion, is by far a better and more robust operating system than Linux. The fallback was the lack of installation information on older machines. That’s the bottom line of the configuration problem I had three years ago.

Last May, I began the virtualization of my MacBook and I had Ubuntu installed and ran parallel with Mac OS X. I tried to install Solaris 10 on VMware Fusion. Installation was successful but I never got it to boot after the installation. Again, I gave up and went on with Ubuntu.

On Sunday, I upgraded VMware Fusion 1.1.3 to 2.0.2 and read about successful installation of OpenSolaris on Mac. I decided to give it another try.

OpenSolaris is a community-driven open source version of Solaris. Solaris is a proprietary UNIX operating system by Sun Microsystems. Sun plays an active role in open source software such as OpenOffice, MySQL and OpenSolaris.

VMware Fusion 2.x has many major improvements. One obvious change is the Virtual Machine Library window. It shows you the snapshots of your virtual machines.

The Virtual Machine Library window showing the snapshots of OpenSolaris and Windows XP

The Virtual Machine Library window showing the snapshots of OpenSolaris and Windows XP

Ok, ok. I have a Windows XP installed. For those who know I have ditched all Windows since 1998, I have some inevitable reasons. First, I need it to support my clients on some hardware and software configurations. Second, I needed it to support my Garmin GPS device. And thirdly, I need it for some non-appealing reasons. I have it installed to avoid having the need to hunt for a Windows desktop for some petty simple jobs. I used the Windows virtual machine under 10 times since last May. Simple put it, I just need it to get some simple jobs done, otherwise it is just a piece of shit occupying 5GB of disk space on my MacBook.

Installation of OpenSolaris was quite pleasant and simple (although it took about half hour). During the installation, I was surprised to learn that OpenSolaris has something called Time Slider which is an automated backup software similar to Apple’s Time Machine.

My hardware configuration:

  1. MacBook White, 2.16GHz Intel Core 2 Duo
  2. 2GB 667MHz DDR2 SDRAM
  3. 160GB hard disk
  4. Mac OS X 10.5.6

My virtual machine configuration:

  1. VMware Fusion 2.0.2
  2. 2 virtual CPU, 720MB RAM
  3. 15GB hard disk space
Installation screen showing Time Slider

Installation screen showing Time Slider

I will never need Time Slider on my Mac Book but I may need it after I switch from Ubuntu to OpenSolaris on Pyxis1. Until then, I am unable to tell if Time Slider is as good as Time Machine.

There are a few patches and manual installation after the first boot to solve some problems:

  1. The sound is not working.
  2. No networking (you may not experience this).
  3. The Apple’s menu bar is not appearing when virtual machine is running in full screen mode.
  4. Need some packages from OpenSolaris repository in order to get the Ada compiler working (for Ada programmers only).
OpenSolaris running at full screen on MacBook White.

OpenSolaris running at full screen on MacBook White.

First thing after restarting from installation is to install VMware Tools. At window mode, click on the Virtual Machine menu bar and select Install VMware Tools. A CD icon will appear on the OpenSolaris desktop. Open it and copy the zipped file to the desktop then extract and follow the steps below:

# cd Desktop/vmware-tools-distrib
# ./vmware-install.pl
OpenSolaris virtual machine running in window mode

OpenSolaris virtual machine running in window mode

After installing VMware Tools, you will be able to access to Mac OS X menu bar when virtual machine is running full screen mode. Move the mouse pointer to top of the screen and the menu bar will drop down.

If the two networking icons on the top right do not show green badge as in the screenshot below, then make sure your Virtual Machine Network Settings is connected and set to NAT (share the Mac’s network connection). The network should also work in Bridged mode. Also make sure the OpenSolaris network interface is connected to e1000g0 and is active.

Two networking status icons with green badge

Two networking status icons with green badge

Otherwise, click on System > Administration > Network to set it to auto configure. Your network should be up and running. 

Next is to activate the sound. Download OSS (Open Sound System) driver at http://4front-tech.com/download.cgi and install it as follow:

# pkgadd -d oss-solaris-v4.0-123-i386.pkg
# osstest

After the installation, run osstest to test the sound system. You will hear a tune playing on your speakers. You may need to reboot your system to allow the driver to properly load.

There are a few more packages to be downloaded and installed from OpenSolaris.org repository. To install gcc4ada from BlastWave, you will need SUNWgnu-libiconv and SUNWarc. Start Package Manager to download and install them from OpenSolaris repository. If you need source code management, you will need SUNWsvn as well.

The OpenSolaris repository does not have Ada compiler (gccada) and only supports gcc 3.4.3. You will have to install Ada compiler from another repository at Blastwave.

To download and install software packages from Blastwave, you need pkgutil. Download and install pkgutil and other necessary packages by following the instruction at Blastwave site. You can obtain a list of software packages that you need from Blastwave. After installing pkgutil, you may want to include /opt/csw/bin to your path.

If you need an Ada 2005 compiler, then download and install gcc4ada:

# pkgutil --install gcc4ada

Include /opt/csw/gcc/bin to your path and the Ada compiler is ready. I checked out a project from my svn repository and compiled. Viola! I am happy with the performance which I find is better than Ubuntu and any other Linux distros. One drawback of OpenSolaris or Solaris is the limited software packages. There are more than a thousand ready-built software packages to download in every Linux distros. That means you will have to build some of the software you need on Solaris (and OpenSolaris).

I removed and re-installed OpenSolaris yesterday after I found some broken links due to not following the instructions correctly. Always read installation instructions from various sources carefully before installing. I find the trouble is worthy otherwise I will not have a clear summarized steps to write about here.

With the recent IBM’s announcement to acquire Sun Microsystems, I hope Sun will not be cannibalized after the acquisition. And I hope that Sun is not setting but if it must, it will rise again. OpenSolaris and UltraSPARC processors are one of the leading technologies available.

I hope to find time on a weekend to install OpenSolaris on the Sun Blade 100. It is still running Solaris 9 since 2003.

Comments

5 Responses to “A hot Sunny affair”

  • dragon on March 26th, 2009 22:54 1

    It’s tough to keep abreast with your in computing! Have you compiled AWS and GtkAda on OpenSolaris?

    Any good reasons to switch from Ubuntu to OpenSolaris? Convince me please…

    dragon

  • Adrian Hoe on March 27th, 2009 21:19 2

    Solaris is a full UNIX compliant operating system unlike Linux which is UNIX-liked. It is very stable and my Sun SB (Sun Blade) 100 has proven its up time, 24 x 7. It has been running for the past six years without fail and an upgrade.

    But of course, I stopped developing on Solaris since 2006. Compilers have been outdated since then. I have downloaded AWS but have not got a time to build. Will do it next week.

  • Syafrudin on May 12th, 2009 21:53 3

    I am glad to meet with same blend of OpenSolaris + GNAT Ada close to me.

    Solaris is not only more reliable, we can said as another BSD, backed up by Sun.
    SOlaris is proven scalable and give higher performance than Linux.
    http://www.sun.com/servers/coolthreads/t5440/benchmarks.jsp?display=2#2

    We have developed one application with GNAT Ada on Windows 2000. The development is finished on time, we are satisfied with application performance. Definitely it is worthy for company or software engineer to invest in Ada.

    Currently we are porting another application from C++ to Ada, and also migrate the OS from Windows 2000 to Linux. But Linux will be stepping stone only, because then we will switch again from Linux to OpenSolaris. Why not migrate directly to OpenSolaris ? (1) To reduce the risk, because we expect that migration support from Windows to Linux is more available. After that we believe that migration from Linux to OpenSolaris will be easy. (2) We wait stable (version 1.0) OpenSolaris distribution, especially that suitable for embedded application.

    Salut from Bandung, Indonesia.

  • Adrian Hoe on May 12th, 2009 22:19 4

    I am glad to meet you too. I am totally surprised to hear from an Ada developer from close by Indonesia.

    Let’s keep in touch.

  • Karim on June 30th, 2009 5:51 5

    Hi,
    please be aware that you can now dual-boot your MacBook with OpenSolaris, and get all the memory for it :)

    HowTo:
    http://wikis.sun.com/display/chosug/OpenSolaris+2009.06+on+a+MacBook+Pro

    Cheers
    Karim

Leave a Reply