How to make GDM/GNOME setting changes in kickstart scripts?
Environment
- Red Hat Enterprise Linux 6
Issue
- How to make GDM/GNOME setting changes in kickstart scripts?
- How can I make gconftool-2 to work and make changes to GDM/GNOME in kickstart or post scripts?
- How to incorporated the following into kickstart.
- Change the GDM login logo to out company logo.
- Change the GDM background.
- Change the default GNOME background ( but different from GDM)
- Disable user list from GDM.
Resolution
- Set-up
%postinstall script in the kickstart and it can be treated like any otherbashscript.
%post --interpreter=bash
#!/bin/bash
# Run any additional gconf* commands you want here in this block.
sudo -u gdm gconftool-2 --set --type boolean /apps/gdm/simple-greeter/disable_user_list true
echo "GDM - /apps/gdm/simple-greeter/disable_user_list true"
sudo -u gdm gconftool-2 --set --type bollean /apps/gdm/simple-greeter/banner_message_enable true
echo "GDM - /apps/gdm/simple-greeter/banner_message_enable true"
sudo -u gdm gconftool-2 --set --type string /apps/gdm/simple-greeter/banner_message_text "Anadarko Exploration Linux Desktop"
echo "GDM - /apps/gdm/simple-greeter/banner_message_text "Modified Linux Distribution Banner" "
gtk-update-icon-cache --force /usr/share/icons/System/
echo "GDM - gtk-update-icon-cache --force /usr/share/icons/System/"
sudo -u gdm gconftool-2 --set --type string /apps/gdm/simple-greeter/logo_icon_name start-here
echo "GDM - /apps/gdm/simple-greeter/logo_icon_name start-here"
sudo -u gdm gconftool-2 --set --type string /desktop/gnome/background/picture_filename /usr/share/backgrounds/APCBackgroundLogin1920.png
echo " GDM - /desktop/gnome/background/picture_filename"
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
