vim /etc/lightdm/lightdm.conf
Finally, edit the file as shown below and save it.
autologin-user=<username>
autologin-user-timeout=0
vim /etc/lightdm/lightdm.conf
Finally, edit the file as shown below and save it.
autologin-user=<username>
autologin-user-timeout=0
转载于:https://www.cnblogs.com/bittorrent/p/3753142.html