Trying to find TF version and getting "Invalid MIT-MAGIC-COOKIE-1..."

ok, what is lightdm and why does it work and why isn’t installed? (just curious)