LXDM Configuration
Views
Actions
Namespaces
Variants
Tools
Overview
LXDM is responsible for providing the login screen, where your preferred language and desktop environment may be selected for your personal user account(s). It also functions as a protective security barrier to prevent unauthorized access to your system. LXDM can still be easily customized to suit personal taste and preference, including the ability to enable auto-login, change the background image, remove the language menu, and disable the user list. |
Option 1: Using the Customisation Tool
The LXDM Configuration application may be found under System in the XFCE and Cinnamon Menus. Openbox users will also find it under System if using the Openbox AppFinder application. Alternatively, searching for lxdm in Synapse will yield the correct result.
To launch from the commandline use user $ sudo lxdm-config
|
Option 2: Manually Editing the Configuration File
To undertake any or all of these tasks, it will be necessary to first open the LXDM configuration file (lxdm.conf) using the terminal. The syntax of the command to open the LXDM configuration file is:
For example, if you wish to edit the file within the terminal using nano (a standard terminal-based text editor) then enter:
Otherwise - if you have installed the full version of Manjaro (i.e. not the NET-Edition) - you may find it easier to use the pre-installed gedit text editor instead. This will open the configuration file up as a document, making it easier to read and edit. To use gedit instead, enter:
Enabling Auto-Login
It is possible to bypass the login screen completely and go straight into your chosen desktop environment upon booting up Manjaro. To do so, two basic steps are required: first, it will be necessary to set the user account to be automatically logged into, and second, it will then be necessary to state the particular desktop environment to be started.
Step 1: Set the User
The first step is to set your personal account to be automatically logged in. This is undertaken in the following section, located at the top of the LXDM configuration file:
[base] ## uncomment and set autologin username to enable autologin # autologin=dgod
As an example, LXDM has been configured below to enable a personal user account named 'carl' to be logged in automatically:
[base] ## uncomment and set autologin username to enable autologin autologin=carl
Ensure that there are no spaces between the autologin= command and the name of your personal user account. Once complete, the second and final step of setting the default desktop environment to be automatically started must be undertaken.
Step 2: Set the Desktop Environment
It is necessary to ensure what desktop environment is to be booted into, and/or if having installed multiple desktop environments. This is set in the following section, located near the top of the configuration file:
## default session or desktop used when no systemwide config session=/usr/bin/startxfce4
In this example, the default desktop environment has already been set to XFCE as this was the Manjaro edition installed. If you have installed a different edition (e.g. Gnome/Cinnamon or KDE), then the session listed will be different. Where there is not a hash ('#') at the beginning of session= (meaning this command won't be ignored), and the desired desktop environment has been listed, then you may save your changes and close the configuration file by:
- nano: Press CTRL and 'x' to exit, 'y' to save, and <enter> to finish, or
- gedit: Select the 'save' option and then close the window.
Otherwise, to set the desired desktop environment:
- If present, remove the hash ('#') at the beginning of session=
- Remove the existing desktop environment listed (or any other text such as 'lxdm') from session=/usr/bin/[text to be removed], and
- Add the command to start your chosen / installed desktop envrionment at the end of session=/usr/bin/.
Examples for different desktop environments has been listed below:
- To start XFCE:
## default session or desktop used when no systemwide config session=/usr/bin/startxfce4
- To start KDE:
## default session or desktop used when no systemwide config session=/usr/bin/startplasma-x11
- To start Gnome:
## default session or desktop used when no systemwide config session=/usr/bin/gnome-session
- To start Cinnamon:
## default session or desktop used when no systemwide config session=/usr/bin/gnome-session-cinnamon
- To start Razor-QT:
## default session or desktop used when no systemwide config session=/usr/bin/razor-session
- To start Openbox:
## default session or desktop used when no systemwide config session=/usr/bin/openbox-session
- To start LXDE:
## default session or desktop used when no systemwide config session=/usr/bin/lxsession
Once your amendments have been completed, you can save your changes and close the configuration file by:
- nano: Press CTRL and 'x' to exit, 'y' to save, and <enter> to finish, or
- gedit: Select the 'save' option and then close the window.
Reboot your system for the changes to take effect.
Optional: Enable Timeout Auto-Login
In addition to bypassing the login screen completely, it is also possible to be automatically logged in after waiting a certain period of time as well. In this instance, after booting into the login screen, it will wait for a set period of time before automatically logging you in. This is set in the following section, located near the top of the configuration file:
## uncomment and set timeout to enable timeout autologin, ## the value should >=5 #timeout=10
- Remove the hash ('#') from the beginning of timeout= to activate it, and
- Set the number of seconds to wait at the login screen, if different from the default value of 10. As stated above the command, the number of seconds specified must be no less than 5.
As an example, LXDM has been configured below to enable timeout auto login after waiting 30 seconds:
## uncomment and set timeout to enable timeout autologin, ## the value should >=5 timeout=30
Once your amendments have been completed, you can save your changes and close the configuration file by:
- nano: Press CTRL and 'x' to exit, 'y' to save, and <enter> to finish, or
- gedit: Select the 'save' option and then close the window.
Reboot your system for the changes to take effect.
Disable Auto-Login
To restore the login screen, edit the LXDM configuration file once again and comment out the lines beginning with autologin= and session=. An example has provided below.
[base] ## uncomment and set autologin username to enable autologin #session=/usr/bin/startxfce4 ... ## default session or desktop used when no systemwide config #session=/usr/bin/openbox
Once your amendments have been completed save your changes and close the configuration file by:
- nano: Press CTRL and 'x' to exit, 'y' to save, and <enter> to finish, or
- gedit: Select the 'save' option and then close the window.
Changing The Background Image
Once your chosen desktop environmet has been downloaded (e.g. a .png or .jpg image file), it can be set in the following section, located near the top of the configuration file:
## background of the greeter # bg=/usr/share/backgrounds/default.png
As illustrated, it will be necessary to specify the exact location of the background image to use. Although it is possible to copy the new background images to the existing backgrounds folder using Root privilages, in this instance a new folder location will be specified:
|
As an example, the author has activated the ability to set backgrounds, and used a background image (abstractgreen.jpg) located in their Pictures folder. Again, note the correct use of capitalisation where required (e.g. Pictures):
/etc/lxdm/lxdm.conf ## background of the greeter bg=/home/carl/Pictures/abstractgreen.jpg Once your amendments have been completed, you can save your changes and close the configuration file by:
The change will be immediate, and may be viewed by simply logging out. |
Removing The Language Menu
By default the drop-down Language Menu is located in the top bar. As this may serve no purpose for many users it can easily be removed. Doing so may also improve the appearance of the login screen by consequently providing a cleaner, less cluttered appearance. This is undertaken in the following section, located at the bottom of the LXDM configuration file:
/etc/lxdm/lxdm.conf ## if show language select control lang=1 All that is required to replace the '1' after the lang= command with a '0': /etc/lxdm/lxdm.conf ## if show language select control lang=0 Once your amendments have been completed, you can save your changes and close the configuration file by:
The change will be immediate, and may be viewed by simply logging out. |
Disabling The User List
By default, available username(s) will already be listed for selection on the login screen. For added security - and (at least for some users) to improve the appearance of the login screen - this feature can be disabled. In this instance, it will consequently be necessary to manually enter both the username and password to log on. This is undertaken in the following section, located at the bottom of the LXDM configuration file:
/etc/lxdm/lxdm.conf ## if disable the user list control at greeter disable=0 All that is required to replace the '0' after the disable= command with a '1': /etc/lxdm/lxdm.conf ## if disable the user list control at greeter disable=1 Once your amendments have been completed, you can save your changes and close the configuration file by:
|