Security aside….under some circumstances it can be useful to have a system boot directly to a command prompt. This method works on Ubuntu 16.04 and 18.04+:
Create the folder:
1 | mkdir /etc/systemd/system/getty@tty1.service.d |
Create the file:
1 | vi /etc/systemd/system/getty@tty1.service.d/override.conf |
Open the file with your favorite editor and add this:
1 2 3 4 | [Service] ExecStart= ExecStart=-/sbin/agetty --noissue --autologin myusername %I $TERM Type=idle |
Comments