sudo apt install lightdm
sudo nano /usr/share/lightdm/lightdm.conf.d/50-disable-guest.conf
sudo reboot
sudo mkdir /etc/skel/.config/
sudo cp /home/admininfo/.config/gnome-initial-setup-done /etc/skel/.config/
sudo ln -s /home/invite /etc/guest-session/skel
sudo nano /etc/guest-session/skel/.profile
sudo nano /etc/lightdm/lightdm.conf.d/50-show-manual-login.conf
sudo nano /var/lib/AccountsService/users/invite
sudo reboot
sudo nano /etc/guest-session/prepare.sh
sudo nano /etc/guest-session/choose-language-wrapper.sh
sudo chmod +x /etc/guest-session/choose-language-wrapper.sh
sudo nano /etc/guest-session/choose-language-wrapper.sh
sudo nano /usr/share/lightdm/guest-session/skel/.config/autostart/guest-session-startup.desktop
sudo nano /usr/lib/lightdm/guest-session-auto.sh
sudo nano /etc/lightdm/lightdm.conf.d/50-choose-guest-language.conf
sudo apt update && sudo apt upgrade -y && sudo apt dist-upgrade -y && sudo apt autoremove && sudo apt clean && sudo df -h
sudo ls -la /usr/share/lightdm/guest-session/
sudo ls -la /usr/share/lightdm/guest-session/skel/
sudo ls -la /usr/share/lightdm/guest-session/skel/.config/
sudo ls -la /usr/share/lightdm/guest-session/skel/.config/autostart/
sudo ls -la /usr/share/lightdm/guest-session/skel/.config/autostart/guest-session-startup.desktop

/etc/guest-session/choose-language-wrapper.sh

#!/bin/sh -e
# show zenity dialog only when launched from greeter
ONLYGUEST=true
for U in $(users); do
if [ "${U%%-*}" != 'guest' ]; then
ONLYGUEST=false
break
fi
done
if $ONLYGUEST && [ -x /usr/bin/zenity ]; then
guestlang=$( zenity --list --title 'Select language' \
--text 'Select language for the guest session' --radiolist \
--column 'Pick' --column '' TRUE 'English' FALSE 'French' )
if [ "$guestlang" = 'English' ]; then
echo 'export LANGUAGE=en_US' >> "$HOME/.profile"
echo 'export LANG=en_US.UTF-8' >> "$HOME/.profile"
elif [ "$guestlang" = 'French' ]; then
echo 'export LANGUAGE=fr' >> "$HOME/.profile"
echo 'export LANG=fr_FR.UTF-8' >> "$HOME/.profile"
fi
fi
exec /usr/lib/lightdm/lightdm-guest-session "$@"

/usr/share/lightdm/guest-session/skel/.config/autostart/guest-session-startup.desktop

[Desktop Entry]
Name=Custom startup commands for LightDM guest session
Type=Application
NoDisplay=true
Exec=/usr/lib/lightdm/guest-session-auto.sh
X-Ubuntu-Gettext-Domain=lightdm

{{ :tmp:guest-session-auto.sh.doc |}}