1- create a directory

 sudo mkdir /etc/systemd/system/getty@tty1.service.d/

2-inside that directory create a file  override.conf

sudo vim /etc/systemd/system/getty@tty1.service.d/override.conf

3-  Type the following in override.conf file

[Service]
 ExecStart= 
ExecStart=-/sbin/agetty --noissue --autologin yourusername %I $TERM 
Type=idle

Note :to show what tty you use just type tty in Terminal and you will see:

Auto login Ubuntu Server

Leave a Reply