Difference between revisions of "LXDM"
(→PulseAudio: fixed in the package) |
m |
||
(6 intermediate revisions by 3 users not shown) | |||
Line 6: | Line 6: | ||
{{Related articles end}} | {{Related articles end}} | ||
− | LXDM is | + | LXDM is a lightweight display manager for the [[LXDE]] [[desktop environment]]. The UI is implemented with GTK+ 2. It is still in the early stages of development. |
− | ==Installation== | + | == Installation == |
− | |||
− | + | The {{Pkg|lxdm}} package is available in the [[official repositories]]. The development package, {{AUR|lxdm-git}}, is available in the [[AUR]]. | |
− | Currently, {{ | + | |
− | + | Currently, {{Pkg|lxdm}} provides the {{ic|lxdm}} [[systemd]] service. Enable it to start LXDM at boot. | |
+ | |||
+ | == Configuration == | ||
− | |||
The configuration files for LXDM are all located in {{ic|/etc/lxdm/}}. The main configuration file is {{ic|lxdm.conf}}, and is well documented in its comments. Another file, {{ic|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. | The configuration files for LXDM are all located in {{ic|/etc/lxdm/}}. The main configuration file is {{ic|lxdm.conf}}, and is well documented in its comments. Another file, {{ic|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. | ||
Line 26: | Line 26: | ||
# {{ic|PreShutdown}} is run as root before poweroff with LXDM. | # {{ic|PreShutdown}} is run as root before poweroff with LXDM. | ||
− | ===Default session=== | + | === Default session === |
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. | 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. | ||
Line 34: | Line 34: | ||
Edit {{ic|/etc/lxdm/lxdm.conf}} and change the session line to whatever session or DE is desired: | Edit {{ic|/etc/lxdm/lxdm.conf}} and change the session line to whatever session or DE is desired: | ||
− | {{bc|session | + | {{bc|1=session=/usr/bin/startlxde}} |
Example using xfce: | Example using xfce: | ||
− | {{bc|session | + | {{bc|1=session=/usr/bin/startxfce4}} |
Example using openbox: | Example using openbox: | ||
− | {{bc|session | + | {{bc|1=session=/usr/bin/openbox-session}} |
Example using GNOME: | Example using GNOME: | ||
− | {{bc|session | + | {{bc|1=session=/usr/bin/gnome-session}} |
This is useful for themes that have no visible session selection box, and if experiencing trouble using autologin. | This is useful for themes that have no visible session selection box, and if experiencing trouble using autologin. | ||
Line 65: | Line 65: | ||
Session=gnome | Session=gnome | ||
− | ===Autologin=== | + | === Autologin === |
+ | |||
To log in to one account automatically, without providing a password, find the line in {{ic|/etc/lxdm/lxdm.conf}} that looks like this: | To log in to one account automatically, without providing a password, find the line in {{ic|/etc/lxdm/lxdm.conf}} that looks like this: | ||
− | #autologin= | + | #autologin=dgod |
− | Uncomment it, substituting the target user instead of " | + | 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 {{ic|/etc/lxdm/lxdm.conf}} by adding the [cmd] section: | Shutdown and reboot commands can be configured in {{ic|/etc/lxdm/lxdm.conf}} by adding the [cmd] section: | ||
Line 83: | Line 85: | ||
shutdown=/usr/bin/systemctl poweroff | shutdown=/usr/bin/systemctl poweroff | ||
− | ==Tips and tricks== | + | == Tips and tricks == |
=== Adding face icons === | === 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 {{ic|$HOME/.face}}. The {{Pkg|gnome-control-center}} package supplies some default icons suitable for the lxdm screen. Look under {{ic|/usr/share/pixmaps/faces}} after installing that package. |
− | + | {{Note|Users need not keep {{Pkg|gnome-control-center}} installed to use this images. Simply install it, copy them elsewhere, and remove it.}} | |
− | + | === 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 allows multiple users to be logged into different ttys at the same time. | ||
$ lxdm -c USER_SWITCH | $ lxdm -c USER_SWITCH | ||
Line 103: | Line 103: | ||
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 {{ic|/usr/bin/gdmflexiserver}} consisting of | 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 {{ic|/usr/bin/gdmflexiserver}} consisting of | ||
− | + | #!/bin/sh | |
− | + | /usr/bin/lxdm -c USER_SWITCH | |
then user switching in Xfce should work fine also with LXDM. | then user switching in Xfce should work fine also with LXDM. | ||
− | [[Xscreensaver]] can also perform this task. | + | [[Xscreensaver]] can also perform this task. For more, see the [[Xscreensaver#LXDM]] article. |
=== Themes === | === Themes === | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | The LXDM themes are localized in {{ic|/usr/share/lxdm/themes}}. | |
− | {{ | ||
− | + | There is only one theme provided with LXDM, namely Industrial. To display the background file {{ic|wave.svg}} which is part of this theme, make sure you have {{Pkg|librsvg}} installed. | |
− | {{ | + | There are 2 themes provided with {{AUR|lxdm-git}}. ArchStripes and ArchDark. |
+ | You can configure them on {{ic|/etc/lxdm/lxdm.conf}} in {{ic|1=theme=''theme_name''}} |
Revision as of 10:39, 19 January 2014
LXDM is a lightweight display manager for the LXDE desktop environment. The UI is implemented with GTK+ 2. It is still in the early stages of development.
Contents
Installation
The lxdm package is available in the official repositories. The development package, lxdm-gitAUR, is available in the AUR.
Currently, lxdm provides the lxdm
systemd service. Enable it to start LXDM at boot.
Configuration
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.
These are:
-
LoginReady
is executed with root privileges when LXDM is ready to show the login window. -
PreLogin
is run as root before logging a user in. -
PostLogin
is run as the logged-in user right after he has logged in. -
PostLogout
is run as the logged-in user right after he has logged out. -
PreReboot
is run as root before rebooting with LXDM. -
PreShutdown
is run as root before poweroff with LXDM.
Default session
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.
Globally
Edit /etc/lxdm/lxdm.conf
and change the session line to whatever session or DE is desired:
session=/usr/bin/startlxde
Example using xfce:
session=/usr/bin/startxfce4
Example using openbox:
session=/usr/bin/openbox-session
Example using GNOME:
session=/usr/bin/gnome-session
This is useful for themes that have no visible session selection box, and if experiencing trouble using autologin.
Per user
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:
For user1:
[Desktop] Session=xfce
For user2:
[Desktop] Session=cinnamon
For user3:
[Desktop] Session=gnome
Autologin
To log in to one account automatically, without providing a password, find the line in /etc/lxdm/lxdm.conf
that looks like this:
#autologin=dgod
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 gnome-control-center 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.
Xscreensaver can also perform this task. For more, see the Xscreensaver#LXDM article.
Themes
The LXDM themes are localized in /usr/share/lxdm/themes
.
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 librsvg installed.
There are 2 themes provided with lxdm-gitAUR. ArchStripes and ArchDark.
You can configure them on /etc/lxdm/lxdm.conf
in theme=theme_name