I have a problem with autologin at startup in Ubuntu Server 16.04.1 LTS.
I use this server only for listening internet radio so I do not care about security.
I was able to create a bash script to auto start mplayer but can't configure autologin.
I've tried at least 4 solutions (always editing the file /etc/init/tty1.conf and of course replacing USERNAME with actual user name):
change the line from
exec /sbin/getty -8 38400 tty1to
exec /sbin/getty -8 38400 tty1 -a USERNAMEchange the line from
exec /sbin/getty -8 38400 tty1to
exec /bin/login -f USERNAME < /dev/tty1 > /dev/tty1 2>&1Install
rungetty, comment the lineexec /sbin/getty -8 38400 tty1and add the line
exec /sbin/rungetty --autologin USERNAME tty1Install
mingetty, comment the lineexec /sbin/getty -8 38400 tty1and add the line
exec /sbin/mingetty --autologin USERNAME tty1
Nothing helps - I have to input my login and password at startup - any ideas what to do?
[OK] Started Update UTMP about System Runlevel Changes.during boot – Patrizio Bertoni Sep 19 '17 at 08:46.ddirectory and theoverride.conffile we can also simply saysudo systemctl edit getty@tty1.service. It will the create the file (if neccessary) and open it an editor. Simply save the file under the suggested name when finished. – PerlDuck Jul 25 '18 at 11:23systemctltool which is less prone to error and chooses a text editor automatically, alleviating doubt. I've preserved the OP's documentation about the files that it creates so it doesn't lose informational value. Thanks kindly! – tresf Apr 15 '20 at 18:09sudo systemctl edit getty@tty1.serviceand added the file contents then rebooted. On reboot, the user had logged in. – TabsNotSpaces Mar 04 '21 at 03:42