LightDM

Differences between revisions 1 and 2
Revision 1 as of 2011-06-02 06:28:13
Size: 2772
Editor: ppp121-44-220-245
Comment:
Revision 2 as of 2011-06-02 06:35:51
Size: 2922
Editor: ppp121-44-220-245
Comment:
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:
Oneric is scheduled to use LightDM by default in Alpha 2.  Before that you can test by installing it from universe (package name ''lightdm''). Ubuntu 11.04 (Natty) users can also install LightDM using the [[https://launchpad.net/~lightdm-team/+archive/ppa|LightDM PPA]]. When installing the package you will be prompted to choose your default display manager. You can either run LightDM by default or on demand. Oneric is scheduled to use LightDM by default in Alpha 2 but before that you can test by installing it from Universe:.
{{{
$ sudo apt-get install lightdm lightdm-greeter-example-gtk
}}}
I
f using Ubuntu 11.04 (Natty) then use the the [[https://launchpad.net/~lightdm-team/+archive/ppa|LightDM PPA]]:
{{{
$ sudo apt-add-repository ppa:lightdm-team/pp
$ sudo apt-get install lightdm lightdm-greeter-example-gtk
}}}

When installing the package you will be prompted to choose your default display manager. You can either run LightDM by default or on demand.

What is LightDM?

LightDM is a display manager. The most user visible aspect of the display manager is the login screen, however it also manages the X servers and facilitates remote logins using the XDMCP protocol. It is proposed to be the display manager in Ubuntu 11.10 (Oneric) replacing GDM which has been the display manager since the beginning. See the blueprint for more details.

Testing LightDM

Oneric is scheduled to use LightDM by default in Alpha 2 but before that you can test by installing it from Universe:.

$ sudo apt-get install lightdm lightdm-greeter-example-gtk

If using Ubuntu 11.04 (Natty) then use the the LightDM PPA:

$ sudo apt-add-repository ppa:lightdm-team/pp
$ sudo apt-get install lightdm lightdm-greeter-example-gtk

When installing the package you will be prompted to choose your default display manager. You can either run LightDM by default or on demand.

Running LightDM on demand

If you are using another display manager by default (e.g. GDM) then you will have to stop that and run LightDM on demand. Log out of any graphical sessions, go to a text terminal (alt-ctrl-F1) then switch display managers with the following commands:

$ sudo stop gdm
$ sudo start lightdm

Running LightDM in test mode

You can also run LightDM in a test mode to try out the greeters (you cannot log into any accounts except your own). You do not need root access to do this. Open a terminal and enter:

$ lightdm --test-mode

Debugging LightDM

LightDM writes verbose logs to /var/log/lightdm. Please check these if there appears to be a problem. If you are running it from the command line (e.g. in test mode) you can also get debugging information by running with the --debug flag.

What to do if things go wrong

If things go horribly wrong (we promise to try very hard to avoid this) you may need switch back to GDM. Some tricks to do this:

  • If you have no graphics, go to a text terminal using alt-ctrl-F1
  • Stop LightDM with sudo stop lightdm

  • Start GDM with sudo start gdm

  • Edit /etc/X11/default-display-manager and set it to /usr/sbin/gdm then reboot
  • Uninstall LightDM and GDM will replace it after a reboot
  • If things go really bad, you may need to remote login using SSH or by using grub to enter a recovery mode (It should never get this bad and if it does then blame X).

Reporting problems, feature requests

Use the Launchpad project and file bugs please.

Developing greeters

Install liblightdm-gobject-0-dev or liblightdm-qt-0-dev for the LightDM greeter API. Look at the LightDM source for example greeters in greeters/.

LightDM (last edited 2018-05-06 20:31:49 by gunnarhj)