在使用lightdm的Ubuntu16.04和一个自动帐户上,我可以使用命令重新启动图形会话:
sudo service lightdm restart帐户自动登录。
在Ubuntu18.04(也在19.04)上,设置了相同的autologin帐户,但是命令:
sudo service gdm3 restart无法自动登录,并将显示带到登录页面。
在gdm日志中,我可以找到
systemd[1]: gdm.service: Succeeded.
systemd[1]: Stopped GNOME Display Manager.
systemd[1]: Starting GNOME Display Manager...
systemd[1]: Started GNOME Display Manager.
gdm-autologin][4091]: gkr-pam: no password is available for user
gdm-autologin][4091]: pam_unix(gdm-autologin:session): session opened for user screen by (uid=0)
gdm-autologin][4091]: gkr-pam: couldn't unlock the login keyring.如何正确地重新启动用户会话,使用autologin用户登录ubuntu18.04?
发布于 2019-05-02 17:28:44
有同样的问题,我通过启用/etc/gdm3 3/custom.conf文件中的“Timed”来解决这个问题。我的看上去像:
# GDM configuration storage
#
# See /usr/share/gdm/gdm.schemas for a list of available options.
[daemon]
AutomaticLoginEnable=true
AutomaticLogin=username
# Uncoment the line below to force the login screen to use Xorg
#WaylandEnable=false
# Enabling automatic login
# Enabling timed login
TimedLoginEnable = true
TimedLogin = username
TimedLoginDelay = 10
[security]
[xdmcp]
[chooser]
[debug]
# Uncomment the line below to turn on debugging
# More verbose logs
# Additionally lets the X server dump core if it crashes
#Enable=true发布于 2020-03-26 15:53:48
上面对塞莉的回答略有改变。默认的,或OOB,custom.conf文件有注释掉AutomaticLoginEnable和AutomaticLogin参数。我保留了这些参数注释掉,未注释/设置TimedLoginEnable、TimedLogin和TimedLoginDelay。还能用。谢谢你,塞莉!
发布于 2020-05-06 16:01:53
这似乎是固定在Ubuntu20.04: gdm3服务重新启动将导致成功的自动操作系统。
https://askubuntu.com/questions/1136457
复制相似问题