[conspire] launching LXDE :-)

Paul Zander pazander at pacbell.net
Fri Nov 15 20:40:40 PST 2013


First I found several dead ends:


* Lightdm can start several session managers, including lxde, and gnome.
* All of the packages for lxde and gnome were installed on my computer.
* Having two computers available, I compared several files related to lightdm, but couldn't find anything helpful.

* Documentation for lightdm, indicates that the selection can be made from the login screen.  I do recall such a selection some time before Wheezy.  


The answer was at:

http://www.linuxquestions.org/questions/linux-newbie-8/lightdm-cannot-figure-out-how-to-change-default-xsession-debian-wheezy-943468/


Following that advise, this is what I did:

root> update-alternatives --config x-session-manager

There are 5 choices for the alternative x-session-manager (providing /usr/bin/x-session-manager).

  Selection    Path                             Priority   Status
------------------------------------------------------------
* 0            /usr/bin/gnome-session            50        auto mode
  1            /usr/bin/gnome-session            50        manual mode
  2            /usr/bin/gnome-session-fallback   40        manual mode
  3            /usr/bin/lxsession                49        manual mode
  4            /usr/bin/openbox-session          40        manual mode
  5            /usr/bin/startlxde                50        manual mode

Press enter to keep the current choice[*], or type selection number: 5

Some other time, I will ask what happened to the ability to choose session manager during login.

Meanwhile, I now understand some of the shouting about the new gnome.   IMHO, it is not appropriate for a typical desktop user.


Paul


----- Original Message -----
From: Rick Moen <rick at linuxmafia.com>
To: conspire at linuxmafia.com
Cc: 
Sent: Friday, November 15, 2013 11:44 AM
Subject: Re: [conspire] launching LXDE

Quoting Paul Zander (paulz at ieee.org):

> So how to run LXDE not gnome.
>    /usr/sbin/lightdm
> 
> That is obviously not gdm, and is also what a different computer has.
> That machine runs LXDE.

(Quick answer is in the closing paragraphs, below.)

Lightdm is a display manager from Canonical.  As the name suggests, it's
more lightweight than gdm is.

As a review, if you are running a graphical login screen that screen is
provided by a special type of X11 client (application) called a display
manager.  The old-school, basic, plain display manager is xdm.  KDE,
GNOME, Enlightenment, and a whole lot of other DE and window manager
projects have created alternative display managers, some plain and
others fancy.  LXDE itself has one:  Predictably, it's calle lxdm.

Most display managers fancier than xdm have controls to select what DE
or window manager to use for the current login, and sometimes to change
what will be the default selection for the future.  Lightdm is like
that, I (very) vaguely recall.

(Bear in mind, I'm trying to answer your question without installing and
running Lightdm.  I'm an xdm guy.)

https://wiki.ubuntu.com/LightDM says some useful things about asserting
control over Lightdm.  I gather that Lightdm picks the DE to start by 
specifying a 'session' to run.  That's another X11 concept, the 'X
session manager':  The X session manager is another specialised X11 app
(client) whose job it is to make sure a bunch of DE service processes
get launched at login time.  (You may notice that most DEs default to
restarting at next login whatever apps you had running at the end of
your prior login session.  That's the X session manager that does that.)

Looks like you do:

lightdm-set-defaults --session [session name]

What's the session name to specify for LXDE?  Not sure, maybe 'lxde'?
There is also an Lightdm conffile, something like
/etc/x11/lightdm/lightdm.conf , that may be worth looking at.


> Other source say to edit /etc/X11/default-display-manager.

Random Internet advice is risky.  ;-> 

That file, among many others, is best managed using your distro tools.
In Debian/Ubuntu-family distros, the right way to select among your
available X Display Managers is like so:

update-alternatives --configure x-display-manager

You'll find many other useful update-* administrative tools usable by
the root user.   They will manage your system in an orderly fashion. 



The above discourse about Lightdm assumes that you have some reason to
want to continue to run Lightdm, which may in your case not be true.  If
you'd rather not wrestle with Lightdm, then do:

apt-get remove lightdm notification-daemon
(This gets rid of Lightdm and other related crud, notifcation-daemon
being a GNOME thing implementing the Desktop Notificaitons
Specification, if you care.)

apt-get install lxdm
That's why I personally would do, and should Just Work.

You can select among available X window managers by doing:

update-alternatives --configure x-window-manager

_______________________________________________
conspire mailing list
conspire at linuxmafia.com
http://linuxmafia.com/mailman/listinfo/conspire




More information about the conspire mailing list