#!/bin/bash
#

apt-get update
apt-get install -y --no-install-recommends ubuntu-desktop gnome-keyring
echo "
[SeatDefaults]
autologin-user=ubuntu
" > /etc/lightdm/lightdm.conf.d/autologin.conf

systemctl reboot

#!/bin/bash
#

apt-get update
apt-get install -y --no-install-recommends ubuntu-desktop gnome-keyring
echo "
[SeatDefaults]
autologin-user=ubuntu
" > /etc/lightdm/lightdm.conf.d/autologin.conf

echo "ubuntu:ubuntu" | chpasswd

systemctl reboot

Set the password of the default user
Set the password of the default user
