Setup GOK preferences in Solaris

From MozillaWiki
Jump to: navigation, search

All the steps should be executed as root.

  • 1. Find the correct configuration file in system:
    • For Solaris10 and its update, this file should be "/etc/X11/gdm/gdm.conf"
    • For Solaris Nevada, this file should be "/usr/share/gdm/default.conf"
  • 2. Back up this file before you change it.
    • For Solaris10 and its update, there will be two configuration files, "factory-gdm.conf" and "gdm.conf", they are different from each other. Back up the "gdm.conf" which will be modified.
    • For Solaris Nevada, there will be two configuration files too, "factory-default.conf" and "default.conf", they are same. You can modify the "default.conf" directly, and recover this file at any time with commandl "$ cp factory-default.conf default.conf".
  • 3. Open this file with editor, search for "Greeter". Change "Greeter=/usr/lib/gdmgreeter" to "Greeter=/usr/lib/gdmlogin".
  • 4. Arrow down to the line "#AddGtkModules=false", change "false" to "true", then un-comment this line.
  • 5. Arrow down to the line "#GtkModulesList=gail:atk-bridge:/usr/lib/gtk-2.0/modules/libdwellmouselistener:/usr/lib/gtk-2.0/modules/libkeymouselistener", un-comment it.
  • 6. Search for "Definition", add "+kb +accessx" parameter at the end of "command=..." line if these two parameters were absent.
  • 7. Save changes and close this file.
  • 8. Change login manager from "dtlogin" to "GDM login" with following commands:
    • For Solaris10 and its update, type the commands
   $ /usr/dt/bin/dtconfig -d
   $ svcadm enable application/gdm2-login
    • For Solaris Nevada, type the commands
   $ /usr/dt/bin/dtconfig -d
   $ svcadm enable svc:application/graphical-login/gdm:default
  • 9. This step is necessary for Solaris10 and its update only, for Nevada, please ignore it and go forward to 10 directly.
Go to "/etc/X11/gdm/modules"
Backup the files "AccessDwellMouseEvents" and "AccessKeyMouseEvents"
Change "factory-AccessDwellMouseEvents" to "AccessDwellMouseEvents"
Change " factory-AccessKeyMouseEvents" to "AccessKeyMouseEvents"
  • 10. Backup the file "/etc/passwd", then open this file with editor.
Search for "gdm", change this line to "gdm:x:50:50:GDM Reserved UID:/etc/X11/gdm/home:".
Save the changes and close this file.
Go to directory /etc/X11/gdm, type the following commands in terminal:
   $ mkdir home
   $ chown gdm:gdm home
  • 11. Reboot the machine.
  • 12. At gdmlogin manager window, move the mouse cursor from top in and bottom out, then from left in and right out to invoke the GOK at login window.

Tips:

To enable "userid" desktop a11y support:

  • 1. su (userid)
  • 2. gconftool-2 -t bool -s /desktop/gnome/interface/accessibility true