Solaris Handbook for Sun Frame Buffers

Starting the Desktop Environment

This section describes how to start the OpenWindows environment, Common Desktop Environment (CDE), and the X Display Manager on the PGX32 card.

OpenWindows Environment

The following sections describe how to start the OpenWindows environment as a console or with multiple PGX32 cards. The PGX32 device name is gfxp#.

Using the PGX32 Card as the Console

  1. If the PGX32 card is the console, type:


    # openwin
    

Using Multiple PGX32 Cards

  1. To start the OpenWindows environment on two PGX32 devices, gfxp0 and gfxp1, type:


    # openwin -dev /dev/fbs/gfxp0 -dev /dev/fbs/gfxp1
    


Note -

In the above example, the gfxp device numbers are 0 and 1. These may be different in your configuration. Please check /dev/fbs/ or dmesg for correct device numbers.


Common Desktop Environment (CDE)

If you have installed CDE and would like CDE to appear on the PGX32 display, you need to modify your /etc/dt/config/Xservers file. If the SunForum card is the console device, you do not need to modify the Xservers file.

The following sample Xservers.gfx file assumes that the SunForum card is the only frame buffer on which to start CDE:


:0 Local Local_uid@console root /usr/openwin/bin/Xsun \
:0 -dev /dev/fbs/gfxp0 -nobanner


Note -

If for some reason the name of your SunForum device is something other than gfxp0, you need to substitute the correct name in the file.


You can add any other desired command line arguments to the end of this line. For example, you can start CDE on multiple displays.

  1. To do this, list each display device following the convention above.

The following example configuration displays CDE on the display named /dev/fbs/gfxp0 and uses the device named /dev/fbs/m640 (the built-in graphics device on the Sun Ultra 5 and Sun Ultra 10 systems) as a secondary frame buffer.


:0 Local Local_uid@console root /usr/openwin/bin/Xsun \
:0 -dev /dev/fbs/gfxp0 -dev /dev/fbs/m640

X Display Manager

The SunForum card also supports the X display manager (xdm). A simple configuration file is provided as /usr/openwin/lib/X11/xdm/Xservers.

If you had an Xservers file already in place, the SunForum software installation will have saved it as /usr/openwin/lib/X11/xdm/Xservers.nogfx.

By default, the installation will have added the following line, which assumes that the SunForum is the only frame buffer on which to start xdm:


:0 Local Local /usr/openwin/lib/xdm/StartOW \
:0 -dev /dev/fbs/gfxp0

You can add any other desired command line arguments to the end of this line. For example, you can start xdm on multiple displays.

  1. To do this, list each display device following the convention above.

The following example configuration displays xdm on the display named /dev/fbs/gfxp0 and uses the device named /dev/fbs/m640 (the built-in graphics device on the Sun Ultra 5 and Sun Ultra 10 systems) as a secondary frame buffer:


:0 Local Local_uid@console root /usr/openwin/bin/Xsun \
:0 -dev /dev/fbs/gfxp0 -dev /dev/fbs/m640