Monday, September 17, 2012

Adding GDM to Solaris 11

To add the required packages to the system, the slim_install package has to be added. This adds an additional 368 packages to the system.

root@orion pkg install slim_install
           Packages to install:   368
       Create boot environment:    No
Create backup boot environment:   Yes
           Services to restart:    13
DOWNLOAD                                  PKGS       FILES    XFER (MB)
Completed                              368/368 42204/42204  410.5/410.5
PHASE                                        ACTIONS
Install Phase                            67952/67952
PHASE                                          ITEMS
Package State Update Phase                   368/368
Image State Update Phase                         2/2

root@orion# pkg uninstall slim_install
     Packages to remove:     1
Create boot environment:    No
PHASE                                        ACTIONS
Removal Phase                                828/828
PHASE                                          ITEMS
Package State Update Phase                       1/1
Package Cache Update Phase                       1/1
Image State Update Phase                         2/2

root@orion# svcs gdm
STATE          STIME    FMRI
disabled       12:26:40 svc:/application/graphical-login/gdm:default

root@orion# svcadm enable gdm
root@orion# svcs gdm
STATE STIME FMRI online 12:38:11 svc:/application/graphical-login/gdm:default
After this, reboot. Next uninstall the slim_install package, which removes only one package. The other 367 packages are dependencies of slim_install. Once GDM is enabled, the screen shows some activity, and then the familiar GUI login prompt.