Contents Trying OpenSolaris
OpenSolaris is distributed as a Live CD, which means that it can be booted into RAM, causing zero impact on your existing operating system. Once it is loaded, experiment with OpenSolaris to determine whether it is something that you would like to install. You can obtain the OpenSolaris Live CD by downloading the roughly 700 MB image file and using a CD burner to create the disk. If downloading the file to burn the CD is not an option, you can order the CD to be delivered to you for free. The Live CD is not intended for long-term use. For example, any changes that you make to the system will be lost when the system is shut down. Therefore, the next logical step is to install OpenSolaris on the system, which the Live CD makes easy by placing an Install OpenSolaris icon right on the desktop. But before we head down that road, let's step back a bit and consider the installation options. You have several alternatives on where to install OpenSolaris: inside a virtual machine on top of your existing operating system, on the bare metal alongside your existing operating system(s), or on the bare metal as a stand-alone operating system. Virtual Machine
The easiest way to start using OpenSolaris is to install it into a virtual machine on top of your existing operating system. Figure 1 shows OpenSolaris installed on Windows Vista.
You are guaranteed that OpenSolaris will recognize the virtualized devices that the virtual machine provides. If you run OpenSolaris in full-screen mode, you may actually forget that there's another operating system underneath. The one drawback to this approach is that you need enough memory to run two operating systems simultaneously -- a minimum of 2 GB is recommended. VirtualBox is a free and open-source hypervisor that supports Windows, OS X, Linux, and Solaris as host platforms, and, of course, OpenSolaris, as one of its many guests. If you decide to take this approach, watch this screencast, which covers all the details. Stand-Alone System
If you have a machine to dedicate to OpenSolaris, the installation process is straightforward. The biggest question mark with this approach is whether OpenSolaris has the proper drivers for your hardware devices. If you've run the Live CD, you may already have an indicator of how well your devices are supported. On the desktop of the Live CD is an icon for the Device Driver Utility, as shown in Figure 2. Double-click on the desktop icon and wait for the scan to complete.
Note: It is possible to test your hardware devices even before downloading or ordering the Live CD. You can launch the Sun Device Detection Tool, as shown in Figure 3, from any browser on your existing operating system. The application is written in the Java programming language and starts with Java Web Start, which is included in the Java Runtime Environment (JRE) as part of Java SE 6. As long as you have the JRE, the application will run on any system.
If drivers are missing, both tools will provide pointers on where to look for help. Google is also your friend here, but if you truly hit a dead end, VirtualBox may be a better solution until the driver you need becomes available or until you buy a new machine. Assuming that you have no driver issues, simply boot the Live CD and click the InstallOpenSolaris icon on the desktop to launch the installer, as shown in Figure 4.
As you can see from Figure 4, the installation process is simple and asks the user some basic questions before laying down the bits. Multiboot
In a multiboot scenario, you install OpenSolaris on the bare metal alongside your existing operating system(s). This scenario is the most complicated and requires some preparation. For starters, OpenSolaris does not yet include a partitioning tool, so it's up to you to create a partition in which to install OpenSolaris. You should create the partition as a primary partition of the type Linux swap, which the OpenSolaris installer will recognize. As of this writing, it is not possible to install OpenSolaris into an extended partition, but that issue is also being addressed. Although you can use any partitioning tool, the GNOME Partition Editor, known as GParted, is a great open-source option. If Windows is your existing OS, the OpenSolaris boot loader will recognize it without difficulty. If Linux is your existing OS, be sure to back up your Now that you have OpenSolaris installed in some form, let's discuss how the privileges assigned to the user ID that you created during installation allow you to administer your system. If you recall, during installation you assigned a root password and created a user account, as shown in Figure 5.
If you look at the
However, you will be frustrated if you try to log in as
You can also see in Figure 7 that the user ID created by the installer was assigned the
By using this approach, you're guaranteed to have an audit trail of who did what on the system as OpenSolaris also includes a collection of rights profiles. One of the rights profiles is named
Notice that the The
To run commands against your rights profile, use the
For example, if you try to remove the
However, if you prefix that same command with
Note, the GUI shown in Figure 11 is available to administer these configuration files. Go to the System > Administration > Users and Groups menu.
The bottom line here is that everything is set up for you "out of the box" with the default installation of OpenSolaris. The user ID you created at install time is able to fully administer the system. With the right privileges, you can properly administer your system, such as managing system services, which we address in the next section. OpenSolaris manages system services through the Service Management Facility (SMF). Although a GUI is available, the more common and powerful way to manage the services is to use these command-line commands:
SMF has many advantages relative to the old way of using Unix services through startup scripts. The key advantage is the specification of metadata about each service in a manifest file. This allows users to specify dependencies between services, which then enables independent services to be started in parallel, which speeds up the system boot. Also, when services fail, they can be restarted in the correct order relative to each other. For example, take a look at the
At the bottom of this listing, you can see the services on which You can also easily disable, enable, and restart services by using the
Using the
Note that this output also provides links to further information about the service state ( One of the first services that users need to administer is the network. OpenSolaris uses a service known as Network Auto-Magic (NWAM) to manage the network. The service works with both wired and wireless network connections and provides all the features that you expect from a network manager, such as the ability to identify and manage wireless networks. The service prefers a wired network by default, as shown in Figure 12, but you can easily change this preference.
You can disable NWAM either from the connection properties dialog box, as shown in Figure 13, or from the command line with the
So where is everything on OpenSolaris? The root directory is not hard to understand for those accustomed to Windows operating systems. It's like the top-level directory on a drive ( Table 1 shows directories available on OpenSolaris through the default
Table 2 shows three additional directories of note on OpenSolaris.
No matter what operating system you use, you already understand the concept of a home directory. OpenSolaris uses Because OpenSolaris is designed to fit on a CD, you'll discover very quickly the need to get additional software. A key differentiator from the Solaris OS is the new Image Packaging System (IPS) in OpenSolaris. One of the main goals of the IPS is to provide a network repository-based delivery mechanism. OpenSolaris comes with one repository preregistered, and you can easily add more. Finding and Installing Packages
You can use either the Package Manager GUI, as shown in Figure 14, or the command line to manage the packages.
From the command line, the main command is
To find a package, use the
And then to get more information on a particular package, use
To see the contents of the GlassFish package, use the
Here you can see that
To see other dependencies that a package may have, you can use the
What this means is that IPS will identify the packages on which GlassFish depends and install them if they are not already installed. Finally, when you are ready to install the package, use the
Note: Only authorized users can install packages to the system, which is why you must prefix the previous command with Repositories
Besides the default
You can install additional repositories by using the
One-Click Install
You may have noticed the Install link when you were browsing the repositories. Figure 16 shows the Package Catalog.
Clicking the Install link will launch the Package Manager and start the installation. It will also install the repository first if necessary. This is a nice feature, as anyone can promote a package. For example, here's a link to install GlassFish Boot Environments
A boot environment is a snapshot of the files that are critical to the operation of OpenSolaris. After installation, there is only a single boot environment, but over time, new boot environments will be created, either manually by you or automatically by the Update Manager (discussed next). A boot environment essentially allows you to roll back to an earlier snapshot of OpenSolaris in case something goes wrong in your current boot environment. Before you do anything risky on your system, such as installing a package from the
Update Manager
When updates to IPS packages are available, OpenSolaris will notify you by way of an icon in your top panel, as shown in Figure 18. The Update Manager will then create a new boot environment and install the updates, which will be active on the next boot. If an update corrupts your system, you can safely boot into the environment prior to the update.
Solaris Legacy Package Manager
For many years, the Solaris OS has used the SVR4 packaging system, so named because it was part of the System V, Release 4 version of Unix. OpenSolaris supports SVR4 packages and includes the commands needed to install and remove those packages. But no coordination exists between the IPS packages and the SVR4 packages. Conflicts may occur during package installation when you mix SVR4 and IPS packages that contain identical files, so don't install SVR4 packages unless absolutely necessary. If you run into this situation, cancel the installation and attempt to resolve the conflict before you continue. Moving to OpenSolaris can be exciting. However, it can also be frustrating as you begin to learn your way around. Hopefully, this article has given you enough of an introduction to make the move. Once up and running, you will surely come up with additional questions. A great benefit of open-source software is that the engineers who build OpenSolaris communicate in public forums. In most cases, your question has already been answered, so begin by searching the forum that most closely matches your question. For example, if you have a question about printing, start by searching the printing discussion forum, and post the question only if you cannot find the answer. Generally, you will receive a response within hours. Also, as a user of OpenSolaris, you've just joined the OpenSolaris community. Simply asking a question in a forum makes you a contributor to the community. If you find a bug in OpenSolaris, please notify the developers. Enjoy your journey with OpenSolaris. OpenSolaris
Comments
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Oracle is reviewing the Sun product roadmap and will provide guidance to customers in accordance with Oracle's standard product communication policies. Any resulting features and timing of release of such features as determined by Oracle's review of roadmaps, are at the sole discretion of Oracle. All product roadmap information, whether communicated by Sun Microsystems or by Oracle, does not represent a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. It is intended for information purposes only, and may not be incorporated into any contract.
|
| ||||||||||||