Difference between revisions of "KDM"

From ArchWiki
Jump to: navigation, search
(add merge template)
 
(22 intermediate revisions by 16 users not shown)
Line 1: Line 1:
 
[[Category:KDE]]
 
[[Category:KDE]]
 +
[[Category:Display managers]]
 
[[cs:KDM]]
 
[[cs:KDM]]
 
[[it:KDM]]
 
[[it:KDM]]
 +
[[ja:KDM]]
 
[[ru:KDM]]
 
[[ru:KDM]]
{{Article summary start}}
+
{{Merge|Display manager|No longer maintained, users should choose other display manager instread.}}
{{Article summary text|Provides an overview of the default display manager for the KDE.}}
+
{{Out of date|KDM is no longer available in the official repositories.[https://www.archlinux.org/news/dropping-plasma-4/]}}
{{Article summary heading|Related}}
+
{{Related articles start}}
{{Article summary wiki|Display Manager}}
+
{{Related|Display manager}}
{{Article summary wiki|KDE}}
+
{{Related|KDE}}
{{Article summary end}}
+
{{Related articles end}}
 
+
== Introduction ==
+
 
KDM (KDE Display Manager) is the login manager of [[KDE]]. It supports themes, auto-logging, session type choice, and numerous other features.
 
KDM (KDE Display Manager) is the login manager of [[KDE]]. It supports themes, auto-logging, session type choice, and numerous other features.
 +
{{Note| [[KDM]] is not available anymore in Plasma 5. Using [[SDDM]] as DM is recommended, as it provides better integration with the Plasma 5 theme.}}
  
 
== Installation ==
 
== Installation ==
Install the {{Pkg|kdebase-workspace}} package:
+
 
# pacman -S kdebase-workspace
+
[[Install]] the {{AUR|kdebase-workspace}}.
 +
 
 +
Then follow [[Display manager#Loading the display manager]] to start KDM at boot.
  
 
== Configuration ==
 
== Configuration ==
An example configuration for KDM can be found at {{ic|/usr/share/config/kdm/kdmrc}}. See {{ic|/usr/share/doc/HTML/en/kdm/kdmrc-ref.docbook}} for all options.
 
  
You can visit '''System Settings > Login Screen''' and make your changes. Whenever you press "Apply", a '''KDE Polkit authorization''' window appears which will ask you to give your root password in order to finish the changes.
+
The configuration file for KDM can be found at {{ic|/usr/share/config/kdm/kdmrc}}. See {{ic|/usr/share/doc/HTML/en/kdm/kdmrc-ref.docbook}} for all options.
 +
 
 +
You can visit ''System Settings > Login Screen'' and make your changes. Whenever you press ''Apply'', a ''KDE Polkit authorization'' window appears which will ask you to give your root password in order to finish the changes.
  
If you seem not to be able to edit KDM's settings when launching System Settings as user, you can use kdesu:  
+
If you seem not to be able to edit KDM's settings when launching System Settings as user, you can use ''kdesu'':  
 
  $ kdesu kcmshell4 kdm
 
  $ kdesu kcmshell4 kdm
  
In the pop-up kdesu window, enter your root password and wait for System Settings to be launched. Then go to Login Screen.
+
In the pop-up ''kdesu'' window, enter your root password and wait for System Settings to be launched. Then go to "Login Screen".
  
{{Note| Since you have launched it as root, be careful when changing your settings. All settings configuration in root-launched System Settings are saved under {{ic|/root/.kde4}} and not under {{ic|~/.kde4}} (your home location).}}
+
{{Note|Since you have launched it as root, be careful when changing your settings. All settings configuration in root-launched System Settings are saved under {{ic|/root/.kde4}} and not under {{ic|~/.kde4}} (your home location).}}
  
 
=== Themes ===
 
=== Themes ===
Archlinux KDM themes can be installed with:
 
  
# pacman -S archlinux-themes-kdm
+
Arch Linux KDM themes can be installed through {{Pkg|archlinux-themes-kdm}} package.
  
 
Many other KDM 4 themes are available at http://kde-look.org/index.php?xcontentmode=41.
 
Many other KDM 4 themes are available at http://kde-look.org/index.php?xcontentmode=41.
Line 38: Line 41:
  
 
=== Themes creation ===
 
=== Themes creation ===
 +
 
Themes files are in {{ic|/usr/share/apps/kdm/themes}}.
 
Themes files are in {{ic|/usr/share/apps/kdm/themes}}.
  
Line 43: Line 47:
  
 
==== ServerArgsLocal ====
 
==== ServerArgsLocal ====
 +
 
To force the number of dots per inch of the X server, add a -dpi option to ServerArgsLocal. A commonly used value is 96 dpi.
 
To force the number of dots per inch of the X server, add a -dpi option to ServerArgsLocal. A commonly used value is 96 dpi.
  
Line 51: Line 56:
 
}}
 
}}
  
==== Allow Root login ====
+
==== Allow root login ====
 +
 
 
To allow root login in KDM do:
 
To allow root login in KDM do:
  
Line 57: Line 63:
  
 
==== SessionsDirs ====
 
==== SessionsDirs ====
This variable stores a list of directories containing session type definitions in {{ic|.desktop}} format, ordered by falling priority. In Arch Linux some [[Window_Manager|window managers]] install such files in {{ic|/usr/share/xsessions}}. Add that to the list in order to be able to select them in KDM:
+
 
 +
This variable stores a list of directories containing session type definitions in {{ic|.desktop}} format, ordered by falling priority. In Arch Linux some [[window managers]] install such files in {{ic|/usr/share/xsessions}}. Add that to the list in order to be able to select them in KDM:
  
 
{{hc|/usr/share/config/kdm/kdmrc|
 
{{hc|/usr/share/config/kdm/kdmrc|
Line 66: Line 73:
  
 
==== Session ====
 
==== Session ====
 +
 
The Session variable is the name of a program which is run as the user who logs in.
 
The Session variable is the name of a program which is run as the user who logs in.
 
It is supposed to interpret the session argument (see SessionsDirs) and start the
 
It is supposed to interpret the session argument (see SessionsDirs) and start the
Line 81: Line 89:
  
 
==== Restart X server menu option ====
 
==== Restart X server menu option ====
 +
 
To allow users to restart the X server from KDM, edit this option in {{ic|kdmrc}}:
 
To allow users to restart the X server from KDM, edit this option in {{ic|kdmrc}}:
 
{{hc|/usr/share/config/kdm/kdmrc|
 
{{hc|/usr/share/config/kdm/kdmrc|
Line 91: Line 100:
 
[...]
 
[...]
 
}}
 
}}
This feature will be available in the menu drop-down options. The option also includes a hotkey of {{Keypress|Alt+E}}.
+
This feature will be available in the menu drop-down options. The option also includes a hotkey of {{ic|Alt+e}}.
  
 
== Troubleshooting ==
 
== Troubleshooting ==
  
 
=== Keyboard maps ===
 
=== Keyboard maps ===
 +
 
KDM keyboard keymap can be set through the configuration system (login screen section).
 
KDM keyboard keymap can be set through the configuration system (login screen section).
  
 
If setting the language in the configuration system does not affect keyboard map, you can try to edit /usr/share/config/kdm/Xsetup and add command:
 
If setting the language in the configuration system does not affect keyboard map, you can try to edit /usr/share/config/kdm/Xsetup and add command:
 
  setxkbmap cz
 
  setxkbmap cz
where cz is the Czech keyboard layout. Since the file may get overwritten on the next upgrade, you may want to protect it in /etc/pacman.conf:
+
where {{ic|cz}} is the Czech keyboard layout. Since the file may get overwritten on the next upgrade, you may want to protect it in /etc/pacman.conf:
 
  NoUpgrade = usr/share/config/kdm/Xsetup
 
  NoUpgrade = usr/share/config/kdm/Xsetup
  
NB that the leading slash / must not be there.
+
{{Note|The leading slash ({{ic|/}}) must not be there.}}
 +
 
 +
=== Slow KDM start ===
  
=== Slow KDM Start ===
 
 
If KDM is taking a long time to display the login screen (e.g. 15-30 seconds) you may try rebuilding the X font caches:
 
If KDM is taking a long time to display the login screen (e.g. 15-30 seconds) you may try rebuilding the X font caches:
 
  # fc-cache -fv
 
  # fc-cache -fv
 +
 +
=== KDM and Gnome-keyring ===
 +
 +
To automatically unlock the [[Gnome-keyring]] upon login in KDM
 +
add the following line to your {{ic|/etc/pam.d/kde}} right after the {{ic|auth            include        system-login}} line:
 +
auth            optional        pam_gnome_keyring.so
 +
and add
 +
session        optional        pam_gnome_keyring.so auto_start
 +
after {{ic|session        include        system-login}}
 +
 +
To automatically re-unlock the keyring when you unlock your screensaver open {{ic|/etc/pam.d/kscreensaver}} and add
 +
auth            optional        pam_gnome_keyring.so
 +
as the last line.
 +
 +
=== User picture not displayed ===
 +
 +
For KDM to able to display user picture set in Account Information, proper source must be set in {{ic|System Settings > Login Screen > Users > User Image Source}}, user's home directory must be world executable and {{ic|~/.face.icon}} must be world readable [http://docs.kde.org/stable/en/kde-workspace/kdm/kdm-files.html#option-facesource]:
 +
$ chmod o+x ~/
 +
$ chmod o+r ~/.face.icon

Latest revision as of 21:43, 15 March 2016

Merge-arrows-2.pngThis article or section is a candidate for merging with Display manager.Merge-arrows-2.png

Notes: No longer maintained, users should choose other display manager instread. (Discuss in Talk:KDM#)

Tango-view-refresh-red.pngThis article or section is out of date.Tango-view-refresh-red.png

Reason: KDM is no longer available in the official repositories.[1] (Discuss in Talk:KDM#)

Related articles

KDM (KDE Display Manager) is the login manager of KDE. It supports themes, auto-logging, session type choice, and numerous other features.

Note: KDM is not available anymore in Plasma 5. Using SDDM as DM is recommended, as it provides better integration with the Plasma 5 theme.

Installation

Install the kdebase-workspaceAUR.

Then follow Display manager#Loading the display manager to start KDM at boot.

Configuration

The configuration file for KDM can be found at /usr/share/config/kdm/kdmrc. See /usr/share/doc/HTML/en/kdm/kdmrc-ref.docbook for all options.

You can visit System Settings > Login Screen and make your changes. Whenever you press Apply, a KDE Polkit authorization window appears which will ask you to give your root password in order to finish the changes.

If you seem not to be able to edit KDM's settings when launching System Settings as user, you can use kdesu:

$ kdesu kcmshell4 kdm

In the pop-up kdesu window, enter your root password and wait for System Settings to be launched. Then go to "Login Screen".

Note: Since you have launched it as root, be careful when changing your settings. All settings configuration in root-launched System Settings are saved under /root/.kde4 and not under ~/.kde4 (your home location).

Themes

Arch Linux KDM themes can be installed through archlinux-themes-kdm package.

Many other KDM 4 themes are available at http://kde-look.org/index.php?xcontentmode=41. Choose between the installed themes in System Settings (run as root) as described above.

Themes creation

Themes files are in /usr/share/apps/kdm/themes.

The theme format is the same one as GDM, a documentation can be found here: Detailed Description of Theme XML format.

ServerArgsLocal

To force the number of dots per inch of the X server, add a -dpi option to ServerArgsLocal. A commonly used value is 96 dpi.

/usr/share/config/kdm/kdmrc
[...]
ServerArgsLocal=-dpi 96 -nolisten tcp
[...]

Allow root login

To allow root login in KDM do:

# sed -ie 's/AllowRootLogin=false/AllowRootLogin=true/' /usr/share/config/kdm/kdmrc

SessionsDirs

This variable stores a list of directories containing session type definitions in .desktop format, ordered by falling priority. In Arch Linux some window managers install such files in /usr/share/xsessions. Add that to the list in order to be able to select them in KDM:

/usr/share/config/kdm/kdmrc
[...]
SessionsDirs=/usr/share/config/kdm/sessions,/usr/share/apps/kdm/sessions,/usr/share/xsessions
[...]

Session

The Session variable is the name of a program which is run as the user who logs in. It is supposed to interpret the session argument (see SessionsDirs) and start the session as desired for that argument. One may wish to customize this for window manager sessions, for example to set a wallpaper and start a screensaver. To do this in a way which will survive pacman updates (which clobber Xsession) do as follows:

# cp /usr/share/config/kdm/Xsession /usr/share/config/kdm/Xsession.custom

In kdmrc set:

/usr/share/config/kdm/kdmrc
[...]
Session=/usr/share/config/kdm/Xsession.custom
[...]

And then edit Xsession.custom as desired.

Restart X server menu option

To allow users to restart the X server from KDM, edit this option in kdmrc:

/usr/share/config/kdm/kdmrc
[X-:*-Greeter]
[...]
# Show the "Restart X Server"/"Close Connection" action in the greeter.
# Default is true
AllowClose=true
[...]

This feature will be available in the menu drop-down options. The option also includes a hotkey of Alt+e.

Troubleshooting

Keyboard maps

KDM keyboard keymap can be set through the configuration system (login screen section).

If setting the language in the configuration system does not affect keyboard map, you can try to edit /usr/share/config/kdm/Xsetup and add command:

setxkbmap cz

where cz is the Czech keyboard layout. Since the file may get overwritten on the next upgrade, you may want to protect it in /etc/pacman.conf:

NoUpgrade = usr/share/config/kdm/Xsetup
Note: The leading slash (/) must not be there.

Slow KDM start

If KDM is taking a long time to display the login screen (e.g. 15-30 seconds) you may try rebuilding the X font caches:

# fc-cache -fv

KDM and Gnome-keyring

To automatically unlock the Gnome-keyring upon login in KDM add the following line to your /etc/pam.d/kde right after the auth include system-login line:

auth            optional        pam_gnome_keyring.so

and add

session         optional        pam_gnome_keyring.so auto_start

after session include system-login

To automatically re-unlock the keyring when you unlock your screensaver open /etc/pam.d/kscreensaver and add

auth            optional        pam_gnome_keyring.so

as the last line.

User picture not displayed

For KDM to able to display user picture set in Account Information, proper source must be set in System Settings > Login Screen > Users > User Image Source, user's home directory must be world executable and ~/.face.icon must be world readable [2]:

$ chmod o+x ~/
$ chmod o+r ~/.face.icon