Ubuntu – How to restore LightDM settings

defaultlightdmsettings

I've been playing with some of the settings on simple LightDM manager, and I'm not really sure I like what I've done. I've uninstalled LightDM manager but settings remains.

How can I restore LightDM settings to their defaults?

Best Answer

I've had a look at this issue and it looks like simple-lightdm-manager affects one file called unity-greeter.conf.

  1. Lets start by opening up a terminal, start typing "terminal" in your unity dash to see the option or press ctrl+alt+t

  2. Lets go to the correct directory:

    cd /etc/lightdm
    
  3. Now lets make a backup of the file before we make any changes:

    sudo cp unity-greeter.conf unity-greeter.conf.bak 
    
  4. Now we need to open up this file and see whats changed, type/copy this:

    sudo gedit /etc/lightdm/unity-greeter.conf
    

    The file should look like below, but I'm guessing your background and logo lines will look different:

    #
    # background = Background file to use, either an image path or a color (e.g. #772953)
    # logo = Logo file to use
    # theme-name = GTK+ theme to use
    # font-name = Font to use
    # xft-antialias = Whether to antialias Xft fonts (true or false)
    # xft-dpi = Resolution for Xft in dots per inch (e.g. 96)
    # xft-hintstyle = What degree of hinting to use (hintnone, hintslight, hintmedium, or hintfull)
    # xft-rgba = Type of subpixel antialiasing (none, rgb, bgr, vrgb or vbgr)
    #
    [greeter]
    background=/usr/share/backgrounds/warty-final-ubuntu.png
    logo=/usr/share/unity-greeter/logo.png
    theme-name=Ambiance
    icon-theme-name=ubuntu-mono-dark
    font-name=Ubuntu 11
    xft-antialias=true
    xft-dpi=96
    xft-hintstyle=hintslight
    xft-rgba=rgb
    
  5. Now either replace everything in your file with the code above, or replace the background and logo lines with the ones above. Then save and log out.

Be careful not to add anything else to this file it could cause adverse effects to your log in screen or even prevent you from logging in

The code above is the default file that loads with a fresh install of Ubuntu 11.10.

Related Question