Initialization about GNOME desktop
If the system is configured to boot to run level 3 (console mode) the X-Windows is started by the command xinit. If configured to boot to run level 5 then the gdm will be executed at system start-up. The choice of using the KDE (kdm) or GNOME (gdm) login manager is set in the config file /etc/sysconfig/desktop. There are two options:
- DESKTOP="GNOME"
(Configure with: /usr/sbin/gdmsetup)
or - DISPLAYMANAGER="KDE"
- X-Windows command xinit:
- /etc/X11/xinit/xinitrc
which sets the environment and calls: - /etc/X11/xinit/xinitrc-common
which set the root window, sets resource files for the:- keyboard (/etc/X11/Xmodmap)
- fonts (/etc/X11/Xresources)
- ...
- /etc/X11/xinit/xinput.d/...
language configurations ...
- /etc/X11/xinit/xinitrc
- The login screen: /usr/bin/gdm
- X-windows script /etc/X11/xdm/Xsession starts X-windows session and then calls /usr/bin/gnome-session
- gnome-session :
This sets up GNOME desktop environment.
Config file: /usr/share/gnome/default.session
-
This config file lists the GNOME processes to start. GUI configuration tools:01# This is the default session that is launched if the user doesn't02# already have a session.03# The RestartCommand specifies the command to run from the $PATH.04# The Priority determines the order in which the commands are started05# (with Priority = 0 first) and defaults to 50.06# The id provides a name that is unique within this file and passed to the07# app as the client id which it must use to register with gnome-session.08# The clients must be numbered from 0 to the value of num_clients - 1.0910[Default]11num_clients=7120,id=default0130,Priority=60140,RestartCommand=<b>pam-panel-icon</b> --sm-client-iddefault0151,id=default1161,Priority=10171,RestartCommand=<b>gnome-wm</b> --default-wm gnome-wm --sm-client-iddefault1182,id=default2192,Priority=40202,RestartCommand=<b>gnome-panel</b> --sm-client-iddefault2213,id=default3223,Priority=40233,RestartCommand=<b>nautilus</b> --no-default-window --sm-client-iddefault3244,id=default4254,Priority=60264,RestartCommand=<b>rhn-applet-gui</b> --sm-client-iddefault4275,id=default5285,Priority=50295,RestartCommand=<b>eggcups</b> --sm-client-iddefault5306,id=default6316,Priority=40326,RestartCommand=<b>magicdev</b> --sm-client-iddefault6
- /usr/bin/gnome-session-properties
-
- /usr/bin/gnome-session-remove
- /usr/bin/gnome-session-save
- /usr/bin/gnome-session-properties
- pam-panel-icon
- gnome-wm
(Script /usr/bin/gnome-wm to start window manager)
Script also identified in config file: /usr/share/gnome/default.wm-
1[Default]2WM=gnome-wm
Gnome-wm also uses environment variable: WINDOW_MANAGER
Script then uses gconftool to set gconf key. (gconf key: /desktop/gnome/applications/window_manager/default) Also starts omf
Configure with /usr/bin/gnome-session-properties -
- gnome-panel
(toolbar)
Configure with gnome-panel-properties-capplet
Add launcher with gnome-panel-add-launcher - nautilus : Manages desktop icons and provides a file manager.
- rhn-applet-gui : up2date and network alert notification tool.
- eggcups : printer support
- magicdev
CD and DVD mounter. Config tool: gnome-cd-properties
Config files:- /etc/gconf/schemas/magicdev.schemas
- /usr/share/applications/gnome-cd-properties.desktop
Can save with save-session for later start-up. -
- GDM Configuration GUI: /usr/sbin/gdmconfig (same as gdmsetup)
- Re-Start:
- Red Hat/Fedora Core: /usr/sbin/gdm-restart
/usr/sbin/gdm-safe-restart - S.u.S.e.: /opt/gnome/sbin/gdm-restart
/opt/gnome/sbin/gdm-safe-restart
- Red Hat/Fedora Core: /usr/sbin/gdm-restart
- Stop:
- Red Hat/Fedora Core: /usr/sbin/gdm-stop
- S.u.S.e.: /opt/gnome/sbin/gdm-stop
Red Hat / Fedora Packages: usermode-gtk gnome-session magicdev gnome-panel
No comments:
Post a Comment