Edit GDM (Gnome Display Manager) using terminal and gedit

NOTE:  For those wanting to change the sound in Ubuntu 10.10, Maverick Meerkat, http://aprivatebeach.com/blog/2011/04/ubuntu-maverick-meerkat-change-the-login-system-ready-sounds/ is the link.

I have found that Ubuntu 8.04 crashes when trying to goto System -> Administration -> Login Window.  Furthermore, the computer beeps when you get to the login screen.

There is only one option left when this happens.

  • Open a terminal window.  Applications -> Accessories -> Terminal
  • Type sudo gedit /etc/gdm/gdm.conf-custom or

sudo gedit /etc/gdm/gdm.conf (for older Ubuntu OS’s)

david@home-laptop:~$ sudo gedit /etc/gdm/gdm.conf-custom
press Enter key

Be careful when editing this file.  This is used by the Gnome graphical greeter.  The lines that you need to add or edit are shown below.  The rest are what mine uses.  If you want to make some changes, the line after the # are ignored by the computer.  Therefore, removing the # will make the computer process the line.  Putting in the # will make the computer ignore the line.:

# SoundOnLogin=false (will get rid of the annoying beep)
SoundOnLogin=false

This is what mine looks like.

Note:  You will have to reboot the computer to get this to take affect.  Simply logging off will not work.  Furthermore, running gdm-restart or gdm-safe-restart does not work on the command line in 8.04.  It did not work on my computer.

# in /etc/gdm/gdm.conf-custom
# you will have to reboot for this to take affect
# e.g, the “Enable” key in the “[debug]” section would be “debug/Enable”.
#
# You can also run gdm-restart or gdm-safe-restart to cause GDM to restart and
# re-read the new configuration settings.  You can also restart GDM by sending
# a HUP or USR1 signal to the daemon.  HUP behaves like gdm-restart and causes
# any user session started by GDM to exit immediately while USR1 behaves like
# gdm-safe-restart and will wait until all users log out before restarting GDM.
#
# For full reference documentation see the gnome help browser under
# GNOME|System category.  You can also find the docs in HTML form on
# http://www.gnome.org/projects/gdm/
#
# NOTE: Lines that begin with “#” are considered comments.
#
# Have fun!

[daemon]

[security]

RetryDelay=0

[xdmcp]

[gui]

[greeter]

DefaultFace=

GlobalFaceDir=//

GraphicalTheme=Linux_Crystal

GraphicalThemes=Linux_Crystal

DefaultWelcome=false

Welcome=Hello sexy

GraphicalThemedColor=#7e68e1

# SoundOnLogin=false will get rid of the annoying beep
SoundOnLogin=false

# comment the previous line, and
# uncomment the following line to play a sound instead.
# SoundOnLoginFile=/usr/share/sounds/login.wav

SoundOnLoginSuccess=false
# SoundOnLoginSuccessFile=/usr/share/sounds/AccessGranted.wav

For those wanting to be able to edit files as root through the menu, the following will help.  http://aprivatebeach.com/blog/2008/10/create-new-menu-item/

Leave a Reply