如何在 Ubuntu 20.04 Focal Fossa 上启用自动登录
本指南的目标是使用 GDM 显示管理器在 Ubuntu 20.04 Focal Fossa Linux GNOME 桌面上启用自动登录。
在本教程中您将学习:
如何从 GUI 启用自动用户登录
如何从命令行启用自动用户登录
在 Ubuntu 20.04 Focal Fossa 上启用自动登录
如何在 Ubuntu 20.04 上启用自动登录分步说明
从 GNOME 桌面启用 GDM 自动登录
从命令行启用 GDM 自动登录
要以管理用户身份从命令行启用自动用户登录,请编辑 /etc/gdm3/custom.conf
文件:
[daemon]
# Uncoment the line below to force the login screen to use Xorg
#WaylandEnable=false
# Enabling automatic login
# AutomaticLoginEnable = true
# AutomaticLogin = user1
到 :
[daemon]
# Uncoment the line below to force the login screen to use Xorg
#WaylandEnable=false
# Enabling automatic login
AutomaticLoginEnable = true
AutomaticLogin = linuxconfig
准备就绪后,重新启动系统以确认设置:
$ sudo reboot
在 Ubuntu 20.04 Focal Fossa 上启用自动登录