1. Modify / etc / lightdm under lightdm.conf file, if not then create this file:
sudo vi /etc/lightdm/lightdm.conf
Add or comment out the following: (pi is your user name)
[SeatDefaults]
autologin-user=pi
2. The command line or in direct mode: the sudo raspi-config command to open the visualization configuration interface Boot Options
for configuration.