/usr/share/auto-upgrade-tester/scripts/prepare_lts_desktop is in auto-upgrade-tester 1:0.166.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | #!/bin/sh
# Setup Autologin
cat > /etc/gdm/custom.conf <<EOF
[daemon]
TimedLoginEnable=false
AutomaticLoginEnable=true
TimedLogin=ubuntu
AutomaticLogin=ubuntu
TimedLoginDelay=30
DefaultSession=gnome
EOF
# Execute User setup script
USERSETUP="/upgrade-tester/data/prepare_lts_user"
TARGETUSER="ubuntu"
if [ -f "$USERSETUP" ]; then
chmod +x $USERSETUP
sudo -i -u $TARGETUSER sh $USERSETUP
fi
|