Ubuntu login as root automatically

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