Installing the LXDE Desktop Environment on Debian 7.5

Desktop Environments

Debian supports a number of graphical environments from fully-featured desktop environments like Gnome and KDE to lighter environments like Xfce and LXDE to even lighter window managers like Openbox and tiling window managers like Wmii.

Installing the Desktop Environment

LXDE is designed to work well with computers on the lower end of the performance spectrum.

To install the complete set of elements of the LXDE Desktop Environment, we execute the following command in a “root” shell.

apt-get install lxde

This will install the recommended environment for Debian.

To install the minimum elements of the LXDE Desktop Environment, we execute the following command in a “root” shell.

apt-get install lxde-core

When opting to install only the minimum set of elements, no X server or X display manager is installed.

Running the Desktop Environment

GDM / KDM / LightDM

For either GDM, KDM and LightDM, no additional configuration is needed and you can just select the LXDE option at the login screen.

XDM

For XDM, you will be required to have the ~/.xsession file in your home directory. If such a file does not exist, create it by executing the following command:

touch ~/.xsession

XDM reads this file as a script – for more information, see the XDM documentation. The final line in your ~/.xsession file should read:

exec startlxde

If you are starting X with startx, the same line would go in your ~/.xinitrc file.

An alternative way to change the default session manager system-wide is to update the link defined in /etc/alternatives/ by executing the following command:

update-alternatives --config x-session-manager

You will be given a list of options. Select startlxde to select LXDE as your default session manager.

Advertisements

2 thoughts on “Installing the LXDE Desktop Environment on Debian 7.5

Comments are closed.