Had some headaches figuring out how to automatically login with lightdm. Wasn't covered very well on the net and decided to post about it here for others. In case like me you have a tendency to binge drink and are an impatient person by nature. :P
Anyway it turned out to be simple and straightforward. Opened the /etc/lightdm/lightdm.conf file with root or sudo privileges and scrolled down to a section in the file called [SeatDefaults], uncommented the line for autologin-user= and added my username, ... autologin-user=myusername.
There's another entry further up in the lightdm.conf file for autologin-user= and that threw me off for awhile, tried uncommenting it and no joy, no automatic login, shrugs.
Next edited a file named Default Xsession, on this OS "Trollinger" there was no file named "lightdm-xsessions.desktop" found in /usr/share/xsessions. Just the aforementioned Default Xsession file.
Changed it to be this to launch openbox. By way of example ...
[Desktop Entry]
Version=1.0
Name=Openbox Session
Exec=openbox-session
Icon=
Type=Application
That's about all I'd wanted to babble about and hopefully help another nixer on the interwebs tame autologin with lightdm. At least this is what worked for me ...
VlLBBQ ! ;)