Tag Archives: 11

Configuring X-Server Display For Oracle Solaris 11

What is X Window ?

The X Window System, commonly referred to as X, is a network-based graphical window system.
The X Window System uses a client-server architecture. It enables multiple programs to share and access a common set of hardware.
This hardware includes both input and display devices such as mouse, keyboards, video adapters, and monitors that are connected to the server.

The X Window System consists of X server and X clients.
The X clients are application programs that do not have direct access to the display.
They communicate with the X server which provides the display.

A proper X client-server setup is requires for Oracle’s Universal Installer ,because OUI is a X-window client which
requires a X-Server display to connect to, for its GUI.

What Packages are required ?

 

Packages Description
pkg://solaris/x11/x11-server-utilities X11 server state utilities
pkg://solaris/x11/session/xauth X authority file utility
pkg://solaris/library/motif Used for Motif-based Toolkit
pkg:/system/library/c++-runtime Sun Workshop Compilers Bundled libC
pkg:/system/library/math Math Libraries
pkg:/desktop/window-manager/twm Tab Window Manager for the X Window
pkg:/system/library System Lib files
pkg:/library/zlib The Zip compression library
pkg:/x11/library/libx11 X11 core protocol client library
pkg:/x11/library/libxau X authorization database library
pkg:/x11/library/libxdmcp X Display Manager Control Protocol
pkg:/x11/library/libxext X11 protocol common extensions client
pkg:/x11/library/libxtst libXtst – X Test and Record library
pkg:x11/library/toolkit/libxt X Toolkit Intrinsics library
pkg://solaris/terminal/xterm Terminal emulator for X
pkg://solaris/x11/xclock Displays the time in analog or digital form.

How to configure Xorg included in the Oracle Solaris OS ?

Xorg: Is installed by default .Present in directory /usr/bin/Xorg .
The Xorg server is designed to configure automatically and can run in most situations without the need to edit configuration files.
When configuration is needed, the Xorg server gathers configuration details from xorg.conf the Xorg server configuration file /etc/X11/ directory.

Note :
Xorg packages are included on the Live Media, but not with the text installer.Symbolic links for
X Window System software compatibility with other releases is also present in the directory /usr/X11R6 .

pkg info x11/server/xorg

Name: x11/server/xorg
Summary: Xorg – X11R7 X server
Publisher: solaris
Version: 1.12.2
Build Release: 5.11

How to Configure Xming ?

Download xming, install it on your windows pc system.You can go to http://sourceforge.net/projects/xming/files/ to download.

Do the following changes for Xming configuration on you windows pc:

Add a new entry in C:\Program Files\Xming\X0.hosts

ex. :

localhost
<IP address of server>

Login through putty client to the server :
export DISPLAY=<windows-pc-IP>:0.0
xhost +

To check if the X Window server-client is working You can use either of the applications :

XCLOCK-Displays the time in analog or digital form.

You will then see a clock gui pop up in your windows pc.

Which Toolkit does OUI use ?

Solaris will continue to use the MToolkit (Motif-based Toolkit) as the default in J2SE 5.0, but eventually will be replaced with XToolkit in JDK7.

The new XToolkit implementation provides the following advantages:
-Removes the dependency on Motif and Xt libraries.
-Interoperates better with other GUI Toolkits.
-Provides better performance and quality.

Setting the toolkit for an application:
Using an environment variable. This needs to be set before starting the VM.
csh:
setenv AWT_TOOLKIT XToolkit #selects the XToolkit
setenv AWT_TOOLKIT MToolkit #selects the MToolkit (Motif-based Toolkit)

export AWT_TOOLKIT=XToolkit
export AWT_TOOLKIT=MToolkit

How to configure VNC if the Xorg does not work ?

However for some reason the above method doesnot work the easiest is doing this via VNC as
it removes the requirement of having to have a X-Server installed on your client platform.
Install VNC server on your Oracle server platform as described in next step.
Xvnc:
Runs a VNC session that can be connected by using a VNC client. Virtual Network Computing (VNC) is a
remote software application that enables you to view and interact with one computer desktop,
the Xvnc server, by using the VNC viewer on another computer desktop.
The two computers do not have to be running the same type of operating system. Xvnc provides a guest domain graphical login.

pkg install xvnc

pkg info xvnc – Would list the package installed .
How to Start VNC Manually ?

Run VNC server as the oracle user .
Start the VNC server.
$ /usr/bin/vncserver
Enter the VNC server password.
Password:
Verify:
New ‘myhost:2 ()’ desktop is myhost:2

Creating default startup script /home/oracle/.vnc/xstartup
Creating default startup script /home/oracle/.vnc/xstartup
Starting applications specified in /home/oracle/.vnc/xstartup
Log file is /home/oracle/.vnc/myhost:2.log

From your client (likely Windows), run VNC viewer and connect to oracle’s VNC server display.
# vncviewer hostname:portnumber
For example:

# vncviewer myhost:2
Type the password you provided to the vncserver script.

How to Enable / Disable Multipathing Solaris 11 ?

How to Enable Multipathing

  1. Become an administrator.
  2. Confirm that the multipathing software package is installed.
    # pkg info system/storage/multipath-utilities
              Name: system/storage/multipath-utilities
           Summary: Solaris Multipathing CLI
       Description: Path Administration Utility for a Solaris Multipathing device
          Category: Applications/System Utilities
             State: Installed
         Publisher: solaris
           Version: 0.5.11
     Build Release: 5.11
            Branch: 0.175.0.0.0.0.0
    Packaging Date: Tue Sep 27 01:40:01 2011
              Size: 77.29 kB
              FMRI: pkg://solaris/system/storage/multipath-utilities@
    0.5.11,5.11-0.175.0.0.0.0.0:20110927T014001Z

    If not, install it.

    # pkg install system/storage/multipath-utilities
  3. Enable device multipathing.
    # stmsboot -e
    WARNING: stmsboot operates on each supported multipath-capable controller
                 detected in a host. In your system, these controllers are
    
        /devices/pci@780/pci@0/pci@8/SUNW,qlc@0/fp@0,0
        /devices/pci@780/pci@0/pci@8/SUNW,qlc@0,1/fp@0,0
        /devices/pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@1
        /devices/pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@1
        /devices/pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2
        /devices/pci@7c0/pci@0/pci@9/LSILogic,sas@0
        /devices/pci@7c0/pci@0/pci@9/LSILogic,sas@0
    
        If you do NOT wish to operate on these controllers, please quit stmsboot
        and re-invoke with -D { fp | mpt } to specify which controllers you wish
        to modify your multipathing configuration for.
    
        Do you wish to continue? [y/n] (default: y) y
        Checking mpxio status for driver fp
        Checking mpxio status for driver mpt
        WARNING: This operation will require a reboot.
        Do you want to continue ? [y/n] (default: y) y
        The changes will come into effect after rebooting the system.
        Reboot the system now ? [y/n] (default: y) y

    Note – During the reboot, /etc/vfstab and the dump configuration are updated to reflect the device name changes.


How to Disable Multipathing

  1. Disable device multipathing.
    # stmsboot -d
    WARNING: stmsboot operates on each supported multipath-capable controller
                 detected in a host. In your system, these controllers are
    
        /devices/pci@780/pci@0/pci@8/SUNW,qlc@0/fp@0,0
        /devices/pci@780/pci@0/pci@8/SUNW,qlc@0,1/fp@0,0
        /devices/pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@1
        /devices/pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@1
        /devices/pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2
        /devices/pci@7c0/pci@0/pci@9/LSILogic,sas@0
        /devices/pci@7c0/pci@0/pci@9/LSILogic,sas@0
    
        If you do NOT wish to operate on these controllers, please quit stmsboot
        and re-invoke with -D { fp | mpt } to specify which controllers you wish
        to modify your multipathing configuration for.
    
        Do you wish to continue? [y/n] (default: y) y
        Checking mpxio status for driver fp
        Checking mpxio status for driver mpt
        WARNING: This operation will require a reboot.
        Do you want to continue ? [y/n] (default: y) y
        The changes will come into effect after rebooting the system.
        Reboot the system now ? [y/n] (default: y) y

    Note – During the reboot, /etc/vfstab and the dump configuration are updated to reflect the device name changes.