It seems that the Invalid MIT-MAGIC-COOKIE-1 key message doesn’t pop up at all when using lightdm
.
To switch to lightdm
, run:
sudo apt -y install lightdm
Once that installs, run the following, and select lightdm
:
sudo dpkg-reconfigure lightdm
Then reboot.