I try to build a VM with packer and ubuntu 20.4 server focal edition.
After building, we will start the VM without manually login and we take some
settings.
echo "### [INFO] - Configuring autologin..."
sudo sed '/AutomaticLogin/s/^#//' -i /etc/gdm3/custom.conf
sudo sed '/user1/s/user1/ubuntu/' -i /etc/gdm3/custom.conf
gsettings set org.gnome.desktop.screensaver lock-enabled false
But i never work, i must typing the password
- Issue.
By first start, their popup the window. see screenshort
How can i deactivating these one?
I take these Configuration, but still don´t work:
sudo bash -c 'echo "Hidden=true" >> /etc/xdg/autostart/update-notifier.desktop'
gsettings set com.ubuntu.update-notifier show-livepatch-status-icon false
gsettings set org.gnome.desktop.notifications show-banners false
sudo ubuntu-report send no
sudo sed '/Exec/s/Exec/#Exec/' -i /etc/xdg/autostart/gnome-initial-setup-first-login.desktop
sudo bash -c 'echo "X-GNOME-Autostart-enabled=false" >> /etc/xdg/autostart/gnome-initial-setup-first-login.desktop'
#sudo snap run canonical-livepatch disable
sudo canonical-livepatch disable
ubuntu-advantage disable-livepatch
sudo sed 's/\[daemon\]/\#[daemon\]/' -i /etc/gdm3/custom.conf
sudo sh -c 'printf "[daemon]\nInitialSetupEnable=False\n" >> /etc/gdm3/custom'