为上次保存的用户或默认用户配置Lightdm(GTK),并关注密码?


9

我查看了手册页和配置文件,但一无所获(但也许我缺少了一些东西)。我仅看到许多自动登录选项。

从一些Google中,我已经读到KDE版本确实可以这种方式工作,但是我想继续使用GTK版本。

更新

我仍然没有找到解决方案,有时我又回到这个问题,环顾四周,看到了一些lightdm-gtk-greeter支持主题的屏幕截图以及用户列表的弹出菜单。

我肯定在配置中缺少某些内容,或者需要安装一些软件包。

在我可怜的问候者的照片下面,我使用的是openbox而不是gnome。

如何使它记住上一个用户并专注于密码?

在此处输入图片说明

更新2

我正在使用GNU / Debian /不稳定(jessie / sid)

这里安装的一些细节 lightdm*

$ dpkg -l "*lightdm*" | grep ^ii
ii  liblightdm-gobject-1-0 1.10.0-3     i386         simple display manager (gobject library)
ii  lightdm                1.10.0-3     i386         simple display manager
ii  lightdm-gtk-greeter    1.8.4-1      i386         simple display manager (GTK+ greeter)

$ apt-cache show lightdm-gtk-greeter|grep Homepage
Homepage: https://launchpad.net/lightdm-gtk-greeter

和调试日志(最终从桌面启动,我可以从添加版本/var/log

$ /usr/sbin/lightdm --test-mode --debug
[+0.00s] DEBUG: Logging to /home/alex/.cache/lightdm/log/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.10.0, UID=1000 PID=477
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/01_debian.conf
[+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.00s] DEBUG: Running in user mode
[+0.00s] DEBUG: Using Xephyr for X servers
[+0.00s] DEBUG: Registered seat module xlocal
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Registered seat module unity
[+0.00s] DEBUG: Registered seat module surfaceflinger
[+0.01s] DEBUG: Adding default seat
[+0.01s] DEBUG: Seat: Starting
[+0.01s] DEBUG: Seat: Creating greeter session
[+0.01s] WARNING: Error getting user list from org.freedesktop.Accounts: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Accounts was not provided by any .service files
[+0.01s] DEBUG: Loading user config from /etc/lightdm/users.conf
[+0.01s] DEBUG: User alex added
[+0.01s] DEBUG: User trustno1 added
[+0.01s] DEBUG: Seat: Creating display server of type x
[+0.01s] DEBUG: Could not run plymouth --ping: Failed to execute child process "plymouth" (No such file or directory)
[+0.01s] DEBUG: Seat: Starting local X display
[+0.01s] DEBUG: DisplayServer x-1: Logging to /home/alex/.cache/lightdm/log/x-1.log
[+0.01s] DEBUG: DisplayServer x-1: Writing X server authority to /home/alex/.cache/lightdm/run/root/:1
[+0.06s] DEBUG: DisplayServer x-1: Launching X Server
[+0.08s] DEBUG: Launching process 482: /usr/bin/Xephyr :1 -seat seat0 -auth /home/alex/.cache/lightdm/run/root/:1 -nolisten tcp
[+0.08s] DEBUG: DisplayServer x-1: Waiting for ready signal from X server :1
[+0.08s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.08s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
/bin/rm: impossibile rimuovere "/var/lib/lightdm-data/lightdm": Permesso negato
[+0.16s] DEBUG: Got signal 10 from process 482
[+0.16s] DEBUG: DisplayServer x-1: Got signal from X server :1
[+0.16s] DEBUG: DisplayServer x-1: Connecting to XServer :1
[+0.16s] DEBUG: Seat: Display server ready, starting session authentication
[+0.16s] DEBUG: Session: Not setting XDG_VTNR
[+0.16s] DEBUG: Session pid=487: Started with service 'lightdm-greeter', username 'alex'

** (process:487): WARNING **: Error getting user list from org.freedesktop.Accounts: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Accounts was not provided by any .service files
[+0.18s] DEBUG: Session pid=487: Authentication complete with return value 0: Success
[+0.18s] DEBUG: Seat: Session authenticated, running command
[+0.18s] DEBUG: Session pid=487: Not setting XDG_VTNR
[+0.18s] DEBUG: Session pid=487: Running command /usr/sbin/lightdm-gtk-greeter
[+0.18s] DEBUG: Creating shared data directory /var/lib/lightdm-data/alex
[+0.18s] DEBUG: Session pid=487: Logging to /home/alex/.cache/lightdm/log/x-1-greeter.log
[+0.26s] DEBUG: Session pid=487: Greeter connected version=1.10.0
[+0.79s] DEBUG: Session pid=487: Greeter start authentication
[+0.79s] DEBUG: Session: Not setting XDG_VTNR
[+0.79s] DEBUG: Session pid=504: Started with service 'lightdm', username '(null)'
[+0.79s] DEBUG: Session pid=504: Got 1 message(s) from PAM
[+0.79s] DEBUG: Session pid=487: Prompt greeter with 1 message(s)
[+3.23s] DEBUG: Got signal 2 from process 0
[+3.23s] DEBUG: Caught Interrupt signal, shutting down
[+3.23s] DEBUG: Stopping display manager
[+3.23s] DEBUG: Seat: Stopping
[+3.23s] DEBUG: Seat: Stopping display server
[+3.23s] DEBUG: Sending signal 15 to process 482
[+3.23s] DEBUG: Seat: Stopping session
[+3.23s] DEBUG: Session pid=487: Sending SIGTERM
[+3.23s] DEBUG: Seat: Stopping session
[+3.23s] DEBUG: Session pid=504: Sending SIGTERM
[+3.23s] DEBUG: Session pid=504: Terminated with signal 2
[+3.23s] DEBUG: Session: Failed during authentication
[+3.23s] DEBUG: Seat: Session stopped
[+3.23s] DEBUG: Session pid=487: Terminated with signal 2
[+3.23s] DEBUG: Seat: Session stopped
[+3.23s] DEBUG: Process 482 exited with return value 0
[+3.23s] DEBUG: DisplayServer x-1: X server stopped
[+3.23s] DEBUG: DisplayServer x-1: Removing X server authority /home/alex/.cache/lightdm/run/root/:1
[+3.23s] DEBUG: Seat: Display server stopped
[+3.23s] DEBUG: Seat: Stopped
[+3.23s] DEBUG: Display manager stopped
[+3.23s] DEBUG: Stopping daemon
[+3.23s] DEBUG: Exiting with return value 0

这里的/etc配置文件

$ grep -v ^# /etc/lightdm/*.conf
/etc/lightdm/keys.conf:[keyring]
/etc/lightdm/lightdm.conf:[LightDM]
/etc/lightdm/lightdm.conf:[SeatDefaults]
/etc/lightdm/lightdm.conf:greeter-session=lightdm-gtk-greeter
/etc/lightdm/lightdm.conf:greeter-hide-users=true
/etc/lightdm/lightdm.conf:greeter-allow-guest=false
/etc/lightdm/lightdm.conf:[XDMCPServer]
/etc/lightdm/lightdm.conf:[VNCServer]
/etc/lightdm/lightdm-gtk-greeter.conf:[greeter]
/etc/lightdm/lightdm-gtk-greeter.conf:background=/usr/share/images/desktop-base/login-background.svg
/etc/lightdm/lightdm-gtk-greeter.conf:theme-name=Adwaita
/etc/lightdm/lightdm-gtk-greeter.conf:xft-antialias=true
/etc/lightdm/lightdm-gtk-greeter.conf:xft-hintstyle=hintfull
/etc/lightdm/lightdm-gtk-greeter.conf:xft-rgba=rgb
/etc/lightdm/lightdm-gtk-greeter.conf:show-indicators=~language;~session;~power
/etc/lightdm/users.conf:[UserAccounts]
/etc/lightdm/users.conf:minimum-uid=500
/etc/lightdm/users.conf:hidden-users=nobody nobody4 noaccess
/etc/lightdm/users.conf:hidden-shells=/bin/false /usr/sbin/nologin

更新3

我已经检查了1.1.6-2 / stable版本,没有结果。

已安装accountsservice

(同时从lightdm-gtk-greeterdist升级到1.8.5-1)

下面 /usr/share/lightdm/lightdm.conf.d/01_debian.conf

注释掉的值来自Debian安装,我对其进行了更改(但似乎已被覆盖/etc/lightdm/lighdm.conf

[SeatDefaults]
#greeter-session=lightdm-greeter
#greeter-hide-users=true
greeter-session=lightdm-gtk-greeter
greeter-hide-users=false
session-wrapper=/etc/X11/Xsession

也改变greeter-hide-users/etc/lightdm/lightdm.conf,在弹出菜单中现在出现,这表明others...,用户alex是大胆的,就好像它是当前或默认,但弹出下面仍然有重点用户输入文本字段和空(我会更新的截图和测试/稍后调试日志)。


你能澄清一下吗?您要设置自动登录吗?您要lightdm记住上一个用户吗?还是上一届?
terdon

最好的办法是记住最后一个使用过的用户,但默认设置会很好,并且将焦点放在密码字段上,以便只需要密码即可登录。目前,我必须始终输入用户名和密码。
亚历克斯

Answers:


7

更新:(在评论后)

尝试修改 /etc/lightdm/lightdm.conf:

 greeter-hide-users=true

 greeter-hide-users=false

似乎所有lightdm .conf文件都需要它。您可能需要使用 lightdm-set-defaults [OPTION...]它来修复它。可用的完整选项在文件中:( /usr/share/doc/lightdm/lightdm.conf.gz如果已安装)。

更新

在Debian中,重要的是在正确的部分 进行设置[][SeatDefaults]/etc/lightdm/lightdm.conf应该,用于lightdm --show-config查看更改的设置以及文件所在的位置(相对于默认值)


原始文件:也许您可以尝试添加此ppa
ppa:lightdm-gtk-greeter-team/daily
并安装LightDM GTK + Greeter 1.6.0。
看来它可以自动解决您的问题,您可以在这里看到

我在启动板博客文章的此页面上找到了ppa 。

您可以从这里直接下载 祝您好运。


谢谢@Hastur,但我想我已经在使用该版本,即使是从官方Debian仓库(至少是相同的主流版本)中安装+1来指出我错过了很多安装细节,请参见update 2
Alex

谢谢。在第一个链接中,您可以看到可以通过菜单选择用户。您安装了更新的版本。
哈斯图尔2014年

一个想法:尝试在中修改/etc/lightdm/lightdm.conf:greeter-hide-users=true greeter-hide-users=**false**
哈斯图尔2014年

update 3,向前迈进了一小步,即使似乎没有解决,但我更多的测试做,我不能这样做,现在,我要让你知道,谢谢你
亚历克斯

1
@Joril也许,当需要为你的状态,就足以(以注销和)重启lightdmsudo service lightdm restart。(建议注销以避免进程因突然超时而中断...)
Hastur
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.