在 Xenial 上使用 LightDM 自动登录 (16.04)

Pat*_* B. 5 lightdm auto-login 16.04

如何从终端(即使用编辑器)使用 lightdm 在 Xenial 上设置自动登录?

这是我目前所做的。

首先,我创建了我的安装中不存在的 conf.d-dir:

sudo mkdir /etc/lightdm/lightdm.conf.d/
Run Code Online (Sandbox Code Playgroud)

然后我添加到 /etc/lightdm/lightdm.conf.d/12-autologin

[Seat:*]
autologin-user=<username>
autologin-user-timeout=0
Run Code Online (Sandbox Code Playgroud)

(使用[Seat:*]我从Wiki 中获取的)。

但是,它不起作用。

小智 2

重命名文件/etc/lightdm/lightdm.conf.d/12-autologin/etc/lightdm/lightdm.conf.d/12-autologin.conf允许自动登录。


Mar*_*ark 0

难道是您没有使用 *.conf 作为文件的扩展名?

根据您的参考:

/usr/share/lightdm/lightdm.conf.d/*.conf
/etc/lightdm/lightdm.conf.d/*.conf
/etc/lightdm/lightdm.conf
Run Code Online (Sandbox Code Playgroud)