lxdm systemd service. Enable it to start LXDM at boot.
The configuration files for LXDM are all located in
/etc/lxdm/. The main configuration file is
lxdm.conf, and is well documented in its comments. Another file,
Xsession, is the systemwide x session configuration file and should generally not be edited. The other files in this folder are all shell scripts, which are run when certain events happen in LXDM.
LoginReadyis executed with root privileges when LXDM is ready to show the login window.
PreLoginis run as root before logging a user in.
PostLoginis run as the logged-in user right after he has logged in.
PostLogoutis run as the logged-in user right after he has logged out.
PreRebootis run as root before rebooting with LXDM.
PreShutdownis run as root before poweroff with LXDM.
It can be specified which session will be loaded when the users select the 'Default' session from the session list. Note that the user setting takes preference over global setting.
/etc/lxdm/lxdm.conf and change the session line to whatever session or DE is desired:
Example using Xfce:
Example using Openbox:
Example using GNOME:
This is useful for themes that have no visible session selection box, and if experiencing trouble using autologin.
To define an individual user's preferred session, simply edit his/her respective
~/.dmrc to define the selection.
Example: user1 wants Xfce4, user2 wants Cinnamon, and user3 wants GNOME:
To log in to one account automatically, without providing a password, find the line in
/etc/lxdm/lxdm.conf that looks like this:
Uncomment it, substituting the target user instead of "dgod".
This will cause LXDM to automatically login to the specified account when it first starts up. However, if one were to log out of that account, one would have to enter its password to log back into it. To avoid this, delete the password:
$ passwd -d username
Shutdown and reboot commands
Shutdown and reboot commands can be configured in
/etc/lxdm/lxdm.conf by adding the [cmd] section:
[cmd] # reboot command reboot=/usr/bin/systemctl reboot # shutdown command shutdown=/usr/bin/systemctl poweroff
Tips and tricks
Adding face icons
A 96x96 px image (jpg or png) can optionally be displayed on a per-user basis replacing the stock icon. Simply copy or symlink the target image to
$HOME/.FACE. The package supplies some default icons suitable for the lxdm screen. Look under
/usr/share/pixmaps/faces after installing that package.
Simultaneous users and switching users
LXDM allows multiple users to be logged into different ttys at the same time. The following command is used to allow another user to login without logging out the current user:
$ lxdm -c USER_SWITCH
If you use the Xfce desktop, the Switch User functionality of its Action Button panel item specifically looks for the gdmflexiserver executable in order to enable itself. If you provide it with an executable shell script
/usr/bin/gdmflexiserver consisting of
#!/bin/sh /usr/bin/lxdm -c USER_SWITCH
then user switching in Xfce should work fine also with LXDM.
The LXDM themes are localized in
There is only one theme provided with LXDM, namely Industrial. To display the background file
wave.svg which is part of this theme, make sure you have installed.
There are 2 themes provided with